Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add index for auth creds #3562

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading