mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-30 12:51:33 +00:00
Remove secrets in favor of from_secret (#4363)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com> Co-authored-by: Robert Kaussow <xoxys@rknet.org> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
@@ -284,7 +284,9 @@ func TestCompilerCompile(t *testing.T) {
|
||||
Name: "step",
|
||||
Image: "bash",
|
||||
Commands: []string{"env"},
|
||||
Secrets: []string{"missing"},
|
||||
Environment: yaml_base_types.EnvironmentMap{
|
||||
"MISSING": map[string]any{"from_secret": "missing"},
|
||||
},
|
||||
}}}},
|
||||
backConf: nil,
|
||||
expectedErr: "secret \"missing\" not found",
|
||||
@@ -306,7 +308,7 @@ func TestCompilerCompile(t *testing.T) {
|
||||
backConf, err := compiler.Compile(test.fronConf)
|
||||
if test.expectedErr != "" {
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, err.Error(), test.expectedErr)
|
||||
assert.Equal(t, test.expectedErr, err.Error())
|
||||
} else {
|
||||
// we ignore uuids in steps and only check if global env got set ...
|
||||
for _, st := range backConf.Stages {
|
||||
|
||||
Reference in New Issue
Block a user