Skip to content

Commit

Permalink
add index for auth creds (#3564)
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst authored Nov 18, 2024
1 parent 3ace17f commit 862ae71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions vcr/assets/assets/default.index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ indices:
- name: index_issuer
parts:
- iriPath: ["https://www.w3.org/2018/credentials#issuer"]
- name: index_subject
parts:
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject"]
- name: index_organization
parts:
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject", "http://schema.org/organization", "http://schema.org/legalname"]
Expand All @@ -20,3 +17,8 @@ indices:
parts:
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject"]
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject", "https://nuts.nl/credentials/v1#subject"]
- name: index_auth_subject_purpose_resources
parts:
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject"]
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject", "https://nuts.nl/credentials/v1#purposeOfUse"]
- iriPath: ["https://www.w3.org/2018/credentials#credentialSubject", "https://nuts.nl/credentials/v1#resources", "https://nuts.nl/credentials/v1#path"]
2 changes: 1 addition & 1 deletion vcr/vcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func TestVCR_Start(t *testing.T) {
}
assert.NotNil(t, mainBucket.Bucket([]byte("index_id")))
assert.NotNil(t, mainBucket.Bucket([]byte("index_issuer")))
assert.NotNil(t, mainBucket.Bucket([]byte("index_subject")))
assert.NotNil(t, mainBucket.Bucket([]byte("index_organization")))
assert.NotNil(t, mainBucket.Bucket([]byte("index_auth_subject_purpose_resources")))

return nil
})
Expand Down

0 comments on commit 862ae71

Please sign in to comment.