Skip to content

Commit

Permalink
Remove Linter
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed May 31, 2024
1 parent f38b230 commit 124403f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scheme/cca/store_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,16 @@ func Test_SynthKeysFromRefValue_ok(t *testing.T) {
func Test_GetReferenceIDs_ok(t *testing.T) {
var ta []string
var claims map[string]interface{}
expectedRefValID := []string{
"CCA_SSD://1/AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyA=",
"CCA_SSD://1/Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",
}
evidenceBytes, err := os.ReadFile("test/extracted-claims.json")
require.NoError(t, err)
err = json.Unmarshal(evidenceBytes, &claims)
require.NoError(t, err)
scheme := &StoreHandler{}
_, err = scheme.GetRefValueIDs("1", ta, claims)
refValID, err := scheme.GetRefValueIDs("1", ta, claims)
require.NoError(t, err)
assert.Equal(t, expectedRefValID, refValID)
}

0 comments on commit 124403f

Please sign in to comment.