atc: structure: fix some tests
@@ -29,7 +29,7 @@ var _ = Describe("Re-retrieval of secrets on retryable errors", func() {
It("should retry receiving a parameter in case of retryable error", func() {
flakySecretManager := makeFlakySecretManager(3)
retryableSecretManager := creds.NewRetryableSecrets(flakySecretManager, creds.SecretRetryConfig{Attempts: 5, Interval: time.Millisecond})
- varDef := vars.VariableDefinition{Ref: vars.VariableReference{Name: "somevar"}}
+ varDef := vars.VariableDefinition{Ref: vars.VariableReference{Path: "somevar"}}
value, found, err := creds.NewVariables(retryableSecretManager, "team", "pipeline", false).Get(varDef)
Expect(value).To(BeEquivalentTo("received value"))
Expect(found).To(BeTrue())
@@ -39,7 +39,7 @@ var _ = Describe("Re-retrieval of secrets on retryable errors", func() {
It("should not receive a parameter if the number of retryable errors exceeded the number of allowed attempts", func() {
flakySecretManager := makeFlakySecretManager(10)
retryableSecretManager := creds.NewRetryableSecrets(flakySecretManager, creds.SecretRetryConfig{Attempts: 5, Interval: time.Millisecond})
- varDef := vars.VariableDefinition{Ref: vars.VariableReference{Name: "somevar"}}
+ varDef := vars.VariableDefinition{Ref: vars.VariableReference{Path: "somevar"}}
value, found, err := creds.NewVariables(retryableSecretManager, "team", "pipeline", false).Get(varDef)
Expect(value).To(BeNil())
Expect(found).To(BeFalse())
