generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(seeding): add initial wallet seeding
- Loading branch information
Showing
14 changed files
with
165 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{{- /* | ||
* Copyright (c) 2024 BMW Group AG | ||
* Copyright 2024 SAP SE or an SAP affiliate company and ssi-dim-middle-layer contributors. | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/}} | ||
|
||
{{- if .Values.migrations.seeding.testData.useDefault -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "dim.fullname" . }}-default-testdata | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
tenants.defaulttest.json: |- | ||
[ | ||
{ | ||
"id": "5c9a4f56-0609-49a5-ab86-dd8f93dfd3fa", | ||
"company_name": "Catena-X", | ||
"bpn": "{{ .Values.dim.bpn }}", | ||
"did_document_location": "{{ .Values.dim.didDocumentLocationAddress }}", | ||
"process_id": "dd371565-9489-4907-a2e4-b8cbfe7a8cd1", | ||
"is_issuer": true, | ||
"operator_id": "a7444c10-5b07-430d-a3c1-c52675c4fa5a" | ||
} | ||
] | ||
processes.defaulttest.json: |- | ||
[ | ||
{ | ||
"id": "dd371565-9489-4907-a2e4-b8cbfe7a8cd1", | ||
"process_type_id" : 1, | ||
"lock_expiry_date" : "2023-03-01 00:00:00.000000 +00:00", | ||
"version" : "deadbeef-dead-beef-dead-beefdeadbeef" | ||
} | ||
] | ||
process_steps.defaulttest.json: |- | ||
[ | ||
{ | ||
"id": "5c9a4f56-0609-49a5-ab86-dd8f93dfd3fa", | ||
"process_step_type_id": 1, | ||
"process_step_status_id": 1, | ||
"process_id": "dd371565-9489-4907-a2e4-b8cbfe7a8cd1", | ||
"date_created": "2023-02-21 08:15:20.479000 +00:00", | ||
"date_last_changed": null | ||
} | ||
] | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/database/Dim.Migrations/Seeder/Data/process_steps.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"id": "5c9a4f56-0609-49a5-ab86-dd8f93dfd3fa", | ||
"process_step_type_id": 1, | ||
"process_step_status_id": 1, | ||
"process_id": "dd371565-9489-4907-a2e4-b8cbfe7a8cd1", | ||
"date_created": "2023-02-21 08:15:20.479000 +00:00", | ||
"date_last_changed": null | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"id": "dd371565-9489-4907-a2e4-b8cbfe7a8cd1", | ||
"process_type_id" : 1, | ||
"lock_expiry_date" : "2023-03-01 00:00:00.000000 +00:00", | ||
"version" : "deadbeef-dead-beef-dead-beefdeadbeef" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"id": "5c9a4f56-0609-49a5-ab86-dd8f93dfd3fa", | ||
"company_name": "Catena-X", | ||
"bpn": "BPNL00000003CRHK", | ||
"did_document_location": "https://portal-backend.int.catena-x.net/api/administration/staticdata/did/BPNL00000003CRHK/did.json", | ||
"process_id": "dd371565-9489-4907-a2e4-b8cbfe7a8cd1", | ||
"is_issuer": true, | ||
"operator_id": "a7444c10-5b07-430d-a3c1-c52675c4fa5a" | ||
} | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters