diff --git a/scheme/cca/store_handler_test.go b/scheme/cca/store_handler_test.go index 82908813..f97809e0 100644 --- a/scheme/cca/store_handler_test.go +++ b/scheme/cca/store_handler_test.go @@ -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) }