Skip to content

Commit

Permalink
Update test to match lazy eval labels test (GoogleContainerTools#4067)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul van der Bles committed Oct 7, 2024
1 parent 1109172 commit 6385257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public void testLazyEvalForEnvironment() {
BuildResult showEnvironment = testProject.build("showenvironment", "-Djib.console=plain");
assertThat(showEnvironment.getOutput())
.contains(
"environment contains values [var1:val1updated, var2:val2updated]");
"environment contains values [var1:updated-first-environment-var, var2:updated-second-environment-var]");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ project.afterEvaluate {
project.ext.getCustomPermissions = { -> return ['/updated': '755'] }
project.ext.jibCreationTime = '2022-07-19T10:23:42Z'
project.ext.jibFilesModificationTime = '2022-07-19T11:23:42Z'
project.ext.jibEnvrionment = [
"var1": "val1updated",
"var2": "val2updated"
]
}

jib {
Expand All @@ -46,7 +42,12 @@ jib {
]
}
entrypoint = project.provider { [project.ext.value] }
environment = project.provider { project.ext.jibEnvrionment }
environment = project.provider {
[
var1 : project.ext.value + '-first-environment-var',
var2: project.ext.value + '-second-environment-var'
]
}
creationTime = project.provider { project.ext.jibCreationTime }
filesModificationTime = project.provider { project.ext.jibFilesModificationTime }
mainClass = project.provider { project.ext.value }
Expand Down

0 comments on commit 6385257

Please sign in to comment.