-
Notifications
You must be signed in to change notification settings - Fork 593
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
Fix integration tests #4964
Fix integration tests #4964
Conversation
/it-go |
Quality Gate passedIssues Measures |
Mounts: testcontainers.Mounts( | ||
testcontainers.BindMount(dir, "/data"), | ||
), |
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.
modification needed due to changes introduced in the new version of the testcontainers
//ToDo: we may set up a tmp directory and mount it in addition, e.g. for runtime artifacts ... | ||
} | ||
|
||
testContainer, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{ | ||
ContainerRequest: req, | ||
Started: true, | ||
}) | ||
assert.NoError(t, err) | ||
require.NoError(t, err) |
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.
if fails to run a container, doesn't make sense to continue test
* Commit * Fix integration tests * Fix integration tests
Changes
integration tests fail: https://github.com/SAP/jenkins-library/actions/runs/9570076133
reason is testcontainers-go package. Piper uses very old version of the package.
This pull request upgrades the library version and as a result, changes to the codebase are required to accommodate the modifications introduced in the new version of the library.