Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner committed Nov 14, 2021
1 parent 405e77d commit 642a571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/analysis/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,15 +476,15 @@ func Test_extractValueFromRollout(t *testing.T) {
},
"should fail returning a label using accessor notation": {
path: "metadata.labels['app']",
wantErr: "parsing error: metadata.labels['app']\t:1:17 - 1:22 could not parse string: invalid syntax",
wantErr: "invalid path metadata.labels['app'] in rollout",
},
"should return a status value": {
path: "status.pauseConditions[0].reason",
want: "test-reason",
},
"should return an empty string when path is inavlid": {
path: "some.invalid[2].non.existing.path",
wantErr: "unknown parameter some.invalid",
wantErr: "invalid path some.invalid[2].non.existing.path in rollout",
},
}
for name, tt := range tests {
Expand Down

0 comments on commit 642a571

Please sign in to comment.