1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

Run MBT Image as root user in IT (#2676)

* Run CI Jobs on Ubuntu 18.04

* Run test container as root

* Revert "Run CI Jobs on Ubuntu 18.04"

This reverts commit 3af11a8834f54e8bb6b3ea24e10df2cc5e078abf.

* Update integration_maven_test.go

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
Florian Wilhelm 2021-03-10 08:12:55 +01:00 committed by GitHub
parent e1ea56076f
commit 58421c5815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ func TestMavenProject(t *testing.T) {
t.Parallel()
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
Image: "devxci/mbtci:latest",
User: "mta",
User: "root",
TestDir: []string{"testdata", "TestMtaIntegration", "maven"},
})
@ -30,7 +30,7 @@ func TestMavenSpringProject(t *testing.T) {
t.Parallel()
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
Image: "devxci/mbtci:latest",
User: "mta",
User: "root",
TestDir: []string{"testdata", "TestMtaIntegration", "maven-spring"},
})
@ -50,7 +50,7 @@ func TestNPMProject(t *testing.T) {
t.Parallel()
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
Image: "devxci/mbtci:latest",
User: "mta",
User: "root",
TestDir: []string{"testdata", "TestMtaIntegration", "npm"},
})
@ -66,7 +66,7 @@ func TestNPMProjectInstallsDevDependencies(t *testing.T) {
t.Parallel()
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
Image: "devxci/mbtci:latest",
User: "mta",
User: "root",
TestDir: []string{"testdata", "TestMtaIntegration", "npm-install-dev-dependencies"},
})