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

Fix integration tests #4964

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Fix integration tests #4964

merged 3 commits into from
Jun 19, 2024

Conversation

vstarostin
Copy link
Member

@vstarostin vstarostin commented Jun 18, 2024

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.

  • Tests
  • Documentation

@vstarostin
Copy link
Member Author

/it-go

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Comment on lines +31 to +33
Mounts: testcontainers.Mounts(
testcontainers.BindMount(dir, "/data"),
),
Copy link
Member Author

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)
Copy link
Member Author

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

@vstarostin vstarostin marked this pull request as ready for review June 19, 2024 06:15
@vstarostin vstarostin requested a review from a team as a code owner June 19, 2024 06:15
@vstarostin vstarostin merged commit c3ec3d6 into master Jun 19, 2024
12 checks passed
@vstarostin vstarostin deleted the fix-integration-tests branch June 19, 2024 06:42
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
* Commit

* Fix integration tests

* Fix integration tests
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