-
Notifications
You must be signed in to change notification settings - Fork 21
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
Clean up around TestInfrahubDockerClient #5550
base: stable
Are you sure you want to change the base?
Conversation
0f5ffd6
to
fea8fab
Compare
CodSpeed Performance ReportMerging #5550 will not alter performanceComparing Summary
|
|
||
from .container import PROJECT_ENV_VARIABLES, InfrahubDockerCompose | ||
DEFAULT_INFRAHUB_SERVER_VERSION = "latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a placeholder, I am not sure we should use latest
here. It could be importlib.metadata.version("infrahub-testcontainers")
instead so it corresponds to a close infrahub version to the sdk one.
fea8fab
to
b998165
Compare
@@ -28,6 +28,9 @@ class Namespace(str, Enum): | |||
TEST = "test" | |||
|
|||
|
|||
LOCAL_BUILD_DEFAULT_IMAGE_NAME = "local.build/opsmill/infrahub" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a different name than registry.opsmill.io/opsmill/infrahub
to make explicit the image is not pulled from the registry
Prior PR before sdk changes allowing sdk tests to run against multiple versions of infrahub. It contains some cleanup and should simplify / make explicit which version / image-tag we use while using
TestInfrahubDockerClient
. So:infrahub_version
of a given test.INFRAHUB_TESTING_IMAGE_TAG
(formerINFRAHUB_TESTING_IMAGE_VER
) to specify which version to use from CI.It also adds a
check_skip
so we can specify for specific tests whether they should be skipped depending on tested infrahub version.