From 8a8d9866296eda7fe61ded2c2be37c9c86a7e77f Mon Sep 17 00:00:00 2001 From: Laurent LAPORTE Date: Mon, 20 Feb 2023 15:50:46 +0100 Subject: [PATCH] test: definitively remove the end_to_end tests --- Makefile | 5 ---- pytest.ini | 1 - tests/end_to_end/__init__.py | 0 tests/end_to_end/config.md | 40 ----------------------------- tests/end_to_end/configuration.yaml | 0 tests/end_to_end/ssh_config.json | 8 ------ tests/end_to_end/test_end_to_end.py | 0 7 files changed, 54 deletions(-) delete mode 100644 tests/end_to_end/__init__.py delete mode 100644 tests/end_to_end/config.md delete mode 100644 tests/end_to_end/configuration.yaml delete mode 100644 tests/end_to_end/ssh_config.json delete mode 100644 tests/end_to_end/test_end_to_end.py diff --git a/Makefile b/Makefile index ee0f860..065a00a 100644 --- a/Makefile +++ b/Makefile @@ -54,11 +54,6 @@ test-unit: test-integration: pytest -m integration_test -# help: test-end-to-end - run end to end tests -.PHONY: test-end-to-end -test-end-to-end: - pytest -m end_to_end_test - # help: doc - generate documentation in doc/build .PHONY: doc doc: diff --git a/pytest.ini b/pytest.ini index a771605..babd8e1 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,4 +2,3 @@ markers = unit_test integration_test - end_to_end_test \ No newline at end of file diff --git a/tests/end_to_end/__init__.py b/tests/end_to_end/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/end_to_end/config.md b/tests/end_to_end/config.md deleted file mode 100644 index 832072b..0000000 --- a/tests/end_to_end/config.md +++ /dev/null @@ -1,40 +0,0 @@ -# End-to-end Configuration for integration tests - -## Configuration file templates - -The configuration is defined by two file. In this directory, you can find the templates that must be customized -according to your needs: - -- The application configuration file: [configuration.yaml](configuration.yaml) -- The SSH configuration file: [ssh_config.json](ssh_config.json) files. - -## Default configuration directory - -Those files can be stored in the following locations: - -- On Windows: `C:\Users\{username}\AppData\Local\RTE`, -- On Mac: `~/Library/Preferences`, -- On Linux: `~/.config` (set by the `XDG_CONFIG_HOME` environment variable). - -To run the end-to-end test, you can do: - -```shell -cd ~/workspace/antares-launcher -pytest -v --basetemp=target/pytest/ tests/end_to_end/ -``` - -## Custom configuration directory - -An alternative is to use a custom location by setting the `ANTARES_LAUNCHER_CONFIG_PATH` environment variable. -This path should point to the `configuration.yaml` file. - -In this situation, to run the end-to-end test, you can do: - -```shell -export ANTARES_LAUNCHER_CONFIG_PATH=target/config_dir/configuration.yaml -cd ~/workspace/antares-launcher -pytest -v --basetemp=target/pytest/ tests/end_to_end/ -``` - -> **NOTE:** if the configuration file is not found, end-to-end tests are ignored -> and a warning message is printed on the console. diff --git a/tests/end_to_end/configuration.yaml b/tests/end_to_end/configuration.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/tests/end_to_end/ssh_config.json b/tests/end_to_end/ssh_config.json deleted file mode 100644 index 8a4e6f6..0000000 --- a/tests/end_to_end/ssh_config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "username": "john.doe", - "hostname": "localhost", - "port": 22, - "private_key_file": "path/to/private.key", - "key_password": "key_password", - "password": "S3Cr3T" -} \ No newline at end of file diff --git a/tests/end_to_end/test_end_to_end.py b/tests/end_to_end/test_end_to_end.py deleted file mode 100644 index e69de29..0000000