Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pytest fixture for creating a database with polling until db is operational #14

Closed
ckunki opened this issue Apr 22, 2024 · 0 comments · Fixed by #27
Closed

Create pytest fixture for creating a database with polling until db is operational #14

ckunki opened this issue Apr 22, 2024 · 0 comments · Fixed by #27
Assignees
Labels
feature Product feature

Comments

@ckunki
Copy link
Collaborator

ckunki commented Apr 22, 2024

This ticket requests to create a python fixture for creating a database in an Exasol SaaS account and interacting with it.

The fixture should

  • poll the newly created database and only return when the database has started and can be queried.
  • use a timeout with python library tenacity
  • remove the database after executing the test cases or in case of an exception during test execution

See also #13.

@ckunki ckunki added the feature Product feature label Apr 22, 2024
@ckunki ckunki changed the title Create a python context for interacting with a database Create pytest fixture for creating a database with polling Apr 30, 2024
@ckunki ckunki changed the title Create pytest fixture for creating a database with polling Create pytest fixture for creating a database with polling until db is operational Apr 30, 2024
@ckunki ckunki closed this as completed in #27 May 8, 2024
ckunki added a commit that referenced this issue May 8, 2024
* Added fixture waiting until SaaS database is running
* Added project short tag and user name to resources in Exasol Saas with max length
* replaced os.getlogin() by getpass.getuser()
* Added log messages for deleting the database
* Make pytest display log output of tests cases in CI build
* Added sleep before deleting the database
* Added log message for creating a database
* Added parameter region for create_database()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant