mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 10:19:51 +02:00
@@ -261,6 +261,9 @@ func Test_targetStage(t *testing.T) {
|
||||
FROM scratch AS second
|
||||
COPY --from=0 /hi /hi2
|
||||
|
||||
FROM scratch AS UPPER_CASE
|
||||
COPY --from=0 /hi /hi2
|
||||
|
||||
FROM scratch
|
||||
COPY --from=second /hi2 /hi3
|
||||
`
|
||||
@@ -280,10 +283,16 @@ func Test_targetStage(t *testing.T) {
|
||||
targetIndex: 1,
|
||||
shouldErr: false,
|
||||
},
|
||||
{
|
||||
name: "test valid upper case target",
|
||||
target: "UPPER_CASE",
|
||||
targetIndex: 2,
|
||||
shouldErr: false,
|
||||
},
|
||||
{
|
||||
name: "test no target",
|
||||
target: "",
|
||||
targetIndex: 2,
|
||||
targetIndex: 3,
|
||||
shouldErr: false,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user