-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pytest plugin and prepare release
* Add basic pytest plugin setup * Update change-log * Update dependencies * Bump version number
- Loading branch information
Showing
18 changed files
with
2,234 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Integration-Test-Docker-Environment 1.5.0, released 2023-03-21 | ||
|
||
## Summary | ||
|
||
Added pytest plugin and fixed itde cli command | ||
|
||
### 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. | ||
|
||
## Feature | ||
- Added pytest plugin and fixtures | ||
|
||
- Show settings related to itde plugin | ||
|
||
```shell | ||
pytest --help | grep "itde\|exasol\|bucketfs" | ||
``` | ||
- Show fixtures related to itde | ||
|
||
```shell | ||
pytest --fixtures | grep pytest_itde -A 3 | ||
``` | ||
|
||
- Use itde to setup a test db etc. for a test | ||
|
||
```python | ||
# In order to use itde, just request it as fixture | ||
# ATTENTION: initial startup may be up to ~1-2 minutes | ||
# (Somtimes even longer if images must be fetched for the first time) | ||
def test_smoke_test_plugin(itde): | ||
db = itde.exasol_config, | ||
bucketfs = itde.bucketfs_config, | ||
itde_cfg = itde.itde_config, | ||
ctrl_connection = itde.connection, | ||
assert True | ||
``` | ||
|
||
## Changes | ||
- Fixed `itde` cli command and subcommands | ||
- Provide all available subcommands in help | ||
- Provide examples and basic doc string for commands | ||
- Fix subcommand imports | ||
- Example Usage: | ||
|
||
```shell | ||
$ itde spawn-test-environment --environment-name test \\ | ||
--database-port-forward 8888 --bucketfs-port-forward 6666 \\ | ||
--docker-db-image-version 7.1.9 --db-mem-size 4GB | ||
``` | ||
|
||
## Internal | ||
- Updated dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
exasol_integration_test_docker_environment/cli/commands/health.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
183 changes: 116 additions & 67 deletions
183
exasol_integration_test_docker_environment/cli/commands/spawn_test_environment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
exasol_integration_test_docker_environment/lib/api/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
from .health import health | ||
from .build_test_container import build_test_container | ||
from .push_test_container import push_test_container | ||
from .spawn_test_environment import spawn_test_environment | ||
from .spawn_test_environment_with_test_container import spawn_test_environment_with_test_container | ||
from exasol_integration_test_docker_environment.lib.api.health import health | ||
from exasol_integration_test_docker_environment.lib.api.build_test_container import build_test_container | ||
from exasol_integration_test_docker_environment.lib.api.push_test_container import push_test_container | ||
from exasol_integration_test_docker_environment.lib.api.spawn_test_environment import spawn_test_environment | ||
from exasol_integration_test_docker_environment.lib.api.spawn_test_environment_with_test_container import spawn_test_environment_with_test_container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
#! /usr/bin/env python3 | ||
# | ||
from exasol_integration_test_docker_environment.cli.cli import cli | ||
import exasol_integration_test_docker_environment.cli.commands | ||
|
||
|
||
def main(): | ||
# required so the cli will print the available subcommands | ||
from exasol_integration_test_docker_environment.cli.commands import ( | ||
health, | ||
spawn_test_environment | ||
) | ||
cli() | ||
|
||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.