Skip to content

Commit

Permalink
resolve ambiguous selector
Browse files Browse the repository at this point in the history
  • Loading branch information
dandersonsw committed Jul 26, 2024
1 parent ae91430 commit d8cb71a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,16 @@ meta:
})

Convey("can grab a single value using an environment variable in the reference", func() {
os.Setenv("SUB_KEY", "subkey")
r, err := op.Run(ev, []*Expr{
ref("key.$SUB_KEY.value"),
})
So(err, ShouldBeNil)
So(r, ShouldNotBeNil)
os.Setenv("SUB_KEY", "subkey")
r, err := op.Run(ev, []*Expr{
ref("key.$SUB_KEY.value"),
})
So(err, ShouldBeNil)
So(r, ShouldNotBeNil)

So(r.Type, ShouldEqual, Replace)
So(r.Value.(string), ShouldEqual, "found it")
})
So(r.Type, ShouldEqual, Replace)
So(r.Value.(string), ShouldEqual, "found it")
})

Convey("can grab a single list value", func() {
r, err := op.Run(ev, []*Expr{
Expand Down Expand Up @@ -2018,8 +2018,8 @@ meta:
}, ssmErr
}

parameterstoreClient = mock
secretsManagerClient = mock
parameterstoreClient = mock.SSMAPI
secretsManagerClient = mock.SecretsManagerAPI

Convey("in shared logic", func() {
Convey("should return error if no key given", func() {
Expand Down

0 comments on commit d8cb71a

Please sign in to comment.