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

Refactor "server" tests in /tests/kola #626

Open
kelvinfan001 opened this issue Aug 11, 2021 · 0 comments
Open

Refactor "server" tests in /tests/kola #626

kelvinfan001 opened this issue Aug 11, 2021 · 0 comments

Comments

@kelvinfan001
Copy link
Member

Kolet can now easily start a HTTP server with the httpd command. This is especially useful for Zincati tests where we would like to have a mock Cincinnati server and mock OSTree repo server.

An Ignition file has been added in the tests/ directory with instructions on how to make use of it to conveniently create new integration tests.

Example usage can be found at e.g. https://github.com/coreos/zincati/blob/0e7aff5a26a7198dcd7bdf86a83b8fdd89c9488e/tests/kola/server/test-marker-file-strategy.sh

Actual test files under tests/server/ are quite long because they still need to create a mock Cincinnati graph to serve. Possibly create a test library to house functions to help create mock Cincinnati graphs to make the code in these test files less repetitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant