Skip to content

Move all tests to volatile environment and use per-test individual registry key - #8

Merged
nobu merged 1 commit into
masterfrom
paralleltest2
Oct 17, 2024
Merged

nobu merged 1 commit into
masterfrom
paralleltest2

Conversation

@larskanis

Copy link
Copy Markdown
Collaborator

Per conversation in #6:

This allows to run all tests in parallel. Usage of File methods is avoided. Since all tests are executed in the volatile environment of the registry, the dedicated 'create_volatile' test is removed now. Also add some documentation to the test setup.

Downside of this use of the "Volatile Environment" is that we can not use or test the create method with default options. This is because within this path only keys with option REG_OPTION_VOLATILE are allowed.

…gistry key

This allows to run all tests in parallel.
Usage of `File` methods is avoided.
Since all tests are executed in the volatile environment of the registry,
the dedicated 'create_volatile' test is removed now.
Also add some documentation to the test setup.

Downside of this use of the "Volatile Environment" is that we can not use or test
the `create` method with default options.
This is because within this path only keys with option `REG_OPTION_VOLATILE` are allowed.
Comment on lines +26 to +27
# @createopts - Required parameters (desired, opt) for create method in
# the volatile environment of the registry.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above two are per test, but this options seems invariant.
Why not a constant?

@nobu
nobu merged commit 494b32e into master Oct 17, 2024
@nobu
nobu deleted the paralleltest2 branch October 17, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants