Repository: exasol/integration-test-docker-environment (language: python)

Issue:
Rename test environment variable
## Background

We used the environment variable `GOOGLE_CLOUD_BUILD` for the Google Cloud Ci builds. However, as we switched to AWS recently, this name is quit confusing. 
The variable is used to create the temp directory within the current working directory. This could be still useful in the future when we need to run tests again within another container. So, we should rename the variable to a more generic name, which indicates also the purpose of the variable

## Acceptance

Rename all occurences of `GOOGLE_CLOUD_BUILD` to `RUN_SLC_TESTS_WITHIN_CONTAINER`


Discussion / hints:

Fix patch:
diff --git a/doc/changes/changelog.md b/doc/changes/changelog.md
index c17e8838a..2901fac12 100644
--- a/doc/changes/changelog.md
+++ b/doc/changes/changelog.md
@@ -1,5 +1,6 @@
 # Changes
 
+* [1.7.0](changes_1.7.0.md)
 * [1.6.0](changes_1.6.0.md)
 * [1.5.0](changes_1.5.0.md)
 * [1.4.0](changes_1.4.0.md)
@@ -26,6 +27,7 @@
 ---
 hidden:
 ---
+changes_1.7.0
 changes_1.6.0
 changes_1.5.0
 changes_1.4.0
diff --git a/doc/changes/changes_1.6.0.md b/doc/changes/changes_1.6.0.md
index de1ba09ae..e79e1814e 100644
--- a/doc/changes/changes_1.6.0.md
+++ b/doc/changes/changes_1.6.0.md
@@ -20,6 +20,6 @@ If you need further versions, please open an issue.
  - #294: Fixed that the client logging config gets overwritten
  - #295: Fixed that the test_container_content parameter pollutes the logs
  - #300: Fixed BucketFS uploads during reusing of an environment
+ - #241: Renamed test environment variable GOOGLE_CLOUD_BUILD to RUN_SLC_TESTS_WITHIN_CONTAINER
  - #310: Fixed that using run_task with log_level duplicates log entries
  - #291: Fixed that test container gets rebuild when force_rebuild is true
- - #316: Removed setup.py and updated poetry(1.4.0) in actions
diff --git a/doc/changes/changes_1.7.0.md b/doc/changes/changes_1.7.0.md
new file mode 100644
index 000000000..36ef89b52
--- /dev/null
+++ b/doc/changes/changes_1.7.0.md
@@ -0,0 +1,19 @@
+# Integration-Test-Docker-Environment 1.7.0, released T.B.D
+
+## Summary
+
+ T.B.D
+
+### Supported Exasol Versions
+
+* **7.0**: up to 7.0.20, **except 7.0.5**
+* **7.1**: up to 7.1.17
+
+If you need further versions, please open an issue.
+
+## Internal
+
+
+## Changes
+
+ - #316: Removed setup.py and updated poetry (1.4.0) in actions
diff --git a/pyproject.toml b/pyproject.toml
index 90eea861e..ff3d9ca44 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ packages = [
     { include = "exasol_integration_test_docker_environment" },
     { include = "pytest_itde" }
 ]
-version = "1.6.0"
+version = "1.7.0"
 description = "Integration Test Docker Environment for Exasol"
 
 license = "MIT"
@@ -60,4 +60,3 @@ invokees = "^0.1.0"
 
 [tool.poetry.scripts]
 itde = 'exasol_integration_test_docker_environment.main:main'
-


Test patch:
diff --git a/exasol_integration_test_docker_environment/testing/exaslct_test_environment.py b/exasol_integration_test_docker_environment/testing/exaslct_test_environment.py
index 8974de901..bb0f7ce06 100644
--- a/exasol_integration_test_docker_environment/testing/exaslct_test_environment.py
+++ b/exasol_integration_test_docker_environment/testing/exaslct_test_environment.py
@@ -39,10 +39,10 @@ def __init__(self, test_object, executable="./exaslct", clean_images_at_close=Tr
         self.flavor_path = self.get_test_flavor()
         self.name = self.test_class.__name__
         self._docker_repository_name = default_docker_repository_name(self.name)
-        if "GOOGLE_CLOUD_BUILD" in os.environ:
+        if "RUN_SLC_TESTS_WITHIN_CONTAINER" in os.environ:
             # We need to put the output directories into the workdir,
             # because only this is shared between the current container and
-            # host. Only path within this shared directory can be mounted
+            # host. Only paths within this shared directory can be mounted
             # to docker container started by exaslct
             temp_dir_prefix_path = Path("./temp_outputs")
             temp_dir_prefix_path.mkdir(exist_ok=True)
@@ -154,8 +154,8 @@ def spawn_docker_test_environments(self, name: str, additional_parameter: List[s
                 environment_info = EnvironmentInfo.from_json(f.read())
                 on_host_parameter.environment_info = environment_info
         on_host_parameter.clean_up = functools.partial(_cleanup, on_host_parameter.name)
-        if "GOOGLE_CLOUD_BUILD" in os.environ:
-            google_cloud_parameter = ExaslctDockerTestEnvironment(
+        if "RUN_SLC_TESTS_WITHIN_CONTAINER" in os.environ:
+            slc_test_run_parameter = ExaslctDockerTestEnvironment(
                 name=on_host_parameter.name,
                 database_host="localhost",
                 db_username=on_host_parameter.db_username,
@@ -169,13 +169,13 @@ def spawn_docker_test_environments(self, name: str, additional_parameter: List[s
             )
 
             with ContextDockerClient() as docker_client:
-                db_container = docker_client.containers.get(f"db_container_{google_cloud_parameter.name}")
+                db_container = docker_client.containers.get(f"db_container_{slc_test_run_parameter.name}")
                 cloudbuild_network = docker_client.networks.get("cloudbuild")
                 cloudbuild_network.connect(db_container)
                 db_container.reload()
-                google_cloud_parameter.database_host = \
+                slc_test_run_parameter.database_host = \
                     db_container.attrs["NetworkSettings"]["Networks"][cloudbuild_network.name]["IPAddress"]
-                return SpawnedTestEnvironments(on_host_parameter, google_cloud_parameter)
+                return SpawnedTestEnvironments(on_host_parameter, slc_test_run_parameter)
         else:
             return SpawnedTestEnvironments(on_host_parameter, None)
 
diff --git a/exasol_integration_test_docker_environment/testing/spawned_test_environments.py b/exasol_integration_test_docker_environment/testing/spawned_test_environments.py
index 78ee57845..5d2b22247 100644
--- a/exasol_integration_test_docker_environment/testing/spawned_test_environments.py
+++ b/exasol_integration_test_docker_environment/testing/spawned_test_environments.py
@@ -6,9 +6,9 @@
 
 class SpawnedTestEnvironments:
     def __init__(self, on_host_environment: ExaslctDockerTestEnvironment,
-                 google_cloud_environment: Optional[ExaslctDockerTestEnvironment]):
+                 slc_test_run_environment: Optional[ExaslctDockerTestEnvironment]):
         self.on_host_docker_environment = on_host_environment
-        self.google_cloud_environment = google_cloud_environment
+        self.slc_test_run_environment = slc_test_run_environment
 
     def __enter__(self):
         pass
@@ -20,5 +20,5 @@ def close(self):
         if self.on_host_docker_environment is not None:
             self.on_host_docker_environment.close()
 
-        if self.google_cloud_environment is not None:
-            self.google_cloud_environment.close()
+        if self.slc_test_run_environment is not None:
+            self.slc_test_run_environment.close()