mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-24 20:59:16 +00:00
Fix unit test relative imports, and permissions for included collection requirements (#29)
* Fix Hetzner firewall unit test imports.
* Make sure tests can actually access collections.
* Fix more relative imports.
* Fix more relative imports.
* Fix more includes.
* Fix more tests.
* One more.
* Fix syntax error in sanity import tests (invalid escape sequence "\$" caused by non-raw docs block)
* Fix permissions of ansible-test parts for sanity tests.
* Revert "Fix permissions of ansible-test parts for sanity tests."
This reverts commit c2713f0a12.
This commit is contained in:
parent
676bec5484
commit
c012d0fba7
202 changed files with 239 additions and 233 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
|
||||
from ansible_collections.community.general.plugins.modules.cloud.google._gcp_forwarding_rule import _build_global_forwarding_rule_dict
|
||||
from ansible_collections.community.general.plugins.modules.cloud.google.gcp_forwarding_rule import _build_global_forwarding_rule_dict
|
||||
|
||||
|
||||
class TestGCPFowardingRule(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
|
||||
from ansible_collections.community.general.plugins.modules.cloud.google._gcp_url_map import _build_path_matchers, _build_url_map_dict
|
||||
from ansible_collections.community.general.plugins.modules.cloud.google.gcp_url_map import _build_path_matchers, _build_url_map_dict
|
||||
|
||||
|
||||
class TestGCPUrlMap(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ __metaclass__ = type
|
|||
import json
|
||||
import pytest
|
||||
|
||||
from ..common import fake_xenapi_ref
|
||||
from .common import fake_xenapi_ref
|
||||
|
||||
pytestmark = pytest.mark.usefixtures('patch_ansible_module')
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ __metaclass__ = type
|
|||
import json
|
||||
import pytest
|
||||
|
||||
from ..common import fake_xenapi_ref
|
||||
from .common import fake_xenapi_ref
|
||||
|
||||
|
||||
testcase_set_powerstate = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue