diff --git a/.gitignore b/.gitignore index 3a25ebd88..6fca92897 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ nohup.out test/mocks __debug_bin* .DS_Store +report.xml diff --git a/auth/claimrule/claim_rule_test.go b/auth/claimrule/claim_rule_test.go index ee429750f..3907cfe1b 100644 --- a/auth/claimrule/claim_rule_test.go +++ b/auth/claimrule/claim_rule_test.go @@ -186,6 +186,28 @@ func getDataSets() map[string]dataSet { }}, err: true, }, + "eq-regex-no-match-substring-claim": { + tokenClaims: map[string]interface{}{ + "field": "val", + }, + rules: ClaimRules{{ + Value: "val1", + Path: "field", + Op: "eq", + }}, + err: true, + }, + "eq-regex-no-match-substring-rule": { + tokenClaims: map[string]interface{}{ + "field": "val23", + }, + rules: ClaimRules{{ + Value: "val2", + Path: "field", + Op: "eq", + }}, + err: true, + }, "in-regex-match": { tokenClaims: map[string]interface{}{ "field": []string{"val1", "val2"},