Loading tests/edgecloud/__init__.py 0 → 100644 +0 −0 Empty file added. tests/test_edgecloud_clients.py→tests/edgecloud/test_i2edge.py +7 −5 Original line number Original line Diff line number Diff line Loading @@ -63,7 +63,9 @@ def test_get_edge_cloud_zones(client_name, base_url): ####################################### ####################################### # ARTIFACT MANAGEMENT (only for i2Edge) # ARTIFACT MANAGEMENT (only for i2Edge) ####################################### ####################################### artefact_id = "hello-world-from-sdk" artefact_id = "hello-world-from-sdk-2" artefact_name = "hello-word-2" repo_name = "dummy-repo-2" @pytest.mark.parametrize("client_name, base_url", test_cases) @pytest.mark.parametrize("client_name, base_url", test_cases) Loading @@ -76,8 +78,8 @@ def test_create_artefact_success(client_name, base_url): try: try: edgecloud_platform._create_artefact( edgecloud_platform._create_artefact( artefact_id=artefact_id, artefact_id=artefact_id, artefact_name="hello-world", artefact_name=artefact_name, repo_name="dummy-repo", repo_name=repo_name, repo_type="PUBLICREPO", repo_type="PUBLICREPO", repo_url="https://helm.github.io/examples", repo_url="https://helm.github.io/examples", password=None, password=None, Loading @@ -98,8 +100,8 @@ def test_create_artefact_failure(client_name, base_url): with pytest.raises(I2EdgeError): with pytest.raises(I2EdgeError): edgecloud_platform._create_artefact( edgecloud_platform._create_artefact( artefact_id=artefact_id, artefact_id=artefact_id, artefact_name="test-artefact", artefact_name=artefact_name, repo_name="test-repo", repo_name=repo_name, repo_type="PUBLICREPO", repo_type="PUBLICREPO", repo_url="http://invalid.url", repo_url="http://invalid.url", password=None, password=None, Loading tests/network/__init__.py 0 → 100644 +0 −0 Empty file added. Loading
tests/test_edgecloud_clients.py→tests/edgecloud/test_i2edge.py +7 −5 Original line number Original line Diff line number Diff line Loading @@ -63,7 +63,9 @@ def test_get_edge_cloud_zones(client_name, base_url): ####################################### ####################################### # ARTIFACT MANAGEMENT (only for i2Edge) # ARTIFACT MANAGEMENT (only for i2Edge) ####################################### ####################################### artefact_id = "hello-world-from-sdk" artefact_id = "hello-world-from-sdk-2" artefact_name = "hello-word-2" repo_name = "dummy-repo-2" @pytest.mark.parametrize("client_name, base_url", test_cases) @pytest.mark.parametrize("client_name, base_url", test_cases) Loading @@ -76,8 +78,8 @@ def test_create_artefact_success(client_name, base_url): try: try: edgecloud_platform._create_artefact( edgecloud_platform._create_artefact( artefact_id=artefact_id, artefact_id=artefact_id, artefact_name="hello-world", artefact_name=artefact_name, repo_name="dummy-repo", repo_name=repo_name, repo_type="PUBLICREPO", repo_type="PUBLICREPO", repo_url="https://helm.github.io/examples", repo_url="https://helm.github.io/examples", password=None, password=None, Loading @@ -98,8 +100,8 @@ def test_create_artefact_failure(client_name, base_url): with pytest.raises(I2EdgeError): with pytest.raises(I2EdgeError): edgecloud_platform._create_artefact( edgecloud_platform._create_artefact( artefact_id=artefact_id, artefact_id=artefact_id, artefact_name="test-artefact", artefact_name=artefact_name, repo_name="test-repo", repo_name=repo_name, repo_type="PUBLICREPO", repo_type="PUBLICREPO", repo_url="http://invalid.url", repo_url="http://invalid.url", password=None, password=None, Loading