From e6d2fe0631ded743ba651133e838ec7ec3b516bf Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Fri, 15 Nov 2024 14:46:44 +0100 Subject: [PATCH 1/2] add index --- vcr/assets/assets/default.index.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vcr/assets/assets/default.index.yaml b/vcr/assets/assets/default.index.yaml index eb2ac6c4a8..7454b11699 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 From 43b62a675ff1552c49d4a49fe3e19464d69e009d Mon Sep 17 00:00:00 2001 From: Wout Slakhorst Date: Fri, 15 Nov 2024 14:59:00 +0100 Subject: [PATCH 2/2] test fix --- vcr/vcr_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcr/vcr_test.go b/vcr/vcr_test.go index 195b99ccd6..d4833943a9 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 })