Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Jan 28, 2025
1 parent 1ec46e9 commit 934872e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions test/test_docker_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ def setUpClass(cls):
cls.test_environment = exaslct_utils.ExaslctTestEnvironmentWithCleanUp(
cls, exaslct_utils.EXASLCT_DEFAULT_BIN
)
cls.itde_test_environment = exaslct_utils.ExaslctTestEnvironmentWithCleanUp(
cls, exaslct_utils.ITDE_DEFAULT_BIN
)
cls.test_environment.clean_images()

cls.docker_environment_name = cls.__name__
cls.docker_environments = cls.test_environment.spawn_docker_test_environments(
cls.docker_environment_name
cls.docker_environments = (
cls.itde_test_environment.spawn_docker_test_environments(
cls.docker_environment_name
)
)
if "GOOGLE_CLOUD_BUILD" in os.environ:
cls.docker_environment = cls.docker_environments.google_cloud_environment
Expand Down
9 changes: 7 additions & 2 deletions test/test_run_db_test_external_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ def setUp(self):
self.test_environment = exaslct_utils.ExaslctTestEnvironmentWithCleanUp(
self, exaslct_utils.EXASLCT_DEFAULT_BIN
)
self.itde_test_environment = exaslct_utils.ExaslctTestEnvironmentWithCleanUp(
self, exaslct_utils.ITDE_DEFAULT_BIN
)
self.test_environment.clean_images()
self.docker_environment_name = self.__class__.__name__
self.docker_environments = self.test_environment.spawn_docker_test_environments(
self.docker_environment_name
self.docker_environments = (
self.itde_test_environment.spawn_docker_test_environments(
self.docker_environment_name
)
)
# localhost gets translated in exaslct to the Gateway address of the docker environment network,
# because thats typically the IP Adress of the bridge to the host,
Expand Down
1 change: 1 addition & 0 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
TEST_CONTAINER_ROOT_DIRECTORY = RESOURCES_DIRECTORY / "test_container"
FLAVORS_ROOT_DIRECTORY = RESOURCES_DIRECTORY / "flavors"
EXASLCT_DEFAULT_BIN = "exaslct"
ITDE_DEFAULT_BIN = "itde"


class ExaslctApiTestEnvironmentWithCleanup:
Expand Down

0 comments on commit 934872e

Please sign in to comment.