diff --git a/vcr/assets/assets/default.index.yaml b/vcr/assets/assets/default.index.yaml index eb2ac6c4a..7454b1169 100644 --- a/vcr/assets/assets/default.index.yaml +++ b/vcr/assets/assets/default.index.yaml @@ -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"] @@ -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"] \ No newline at end of file diff --git a/vcr/vcr_test.go b/vcr/vcr_test.go index 195b99ccd..d4833943a 100644 --- a/vcr/vcr_test.go +++ b/vcr/vcr_test.go @@ -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 })