-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(testdata): enable seeding via configMap, remove consortia files (#…
…241) Refs: #205 Reviewed-By: Evelyn Gurschler <evelyn.gurschler@bmw.de> Co-authored-by: Evelyn Gurschler <evelyn.gurschler@bmw.de>
- Loading branch information
Showing
19 changed files
with
129 additions
and
55 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
68 changes: 68 additions & 0 deletions
68
charts/ssi-credential-issuer/templates/configmap-seeding-testdata.yaml
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,68 @@ | ||
{{- /* | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* | ||
* 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.seedTestData.useDefault -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "issuer.fullname" . }}-default-testdata | ||
namespace: {{ .Release.Namespace }} | ||
data: | ||
use_cases.defaulttest.json: |- | ||
[ | ||
{ | ||
"id": "1aacde78-35ec-4df3-ba1e-f988cddcbbd9", | ||
"name": "None", | ||
"shortname": "None" | ||
} | ||
] | ||
verified_credential_external_type_detail_versions.defaulttest.json: |- | ||
[ | ||
{ | ||
"id": "d0f05b79-792c-4cb8-9b8d-6e476ac2e926", | ||
"verified_credential_external_type_id": 2, | ||
"version": "0.0", | ||
"template": "https://catena-x.net/fileadmin/user_upload/04_Einfuehren_und_umsetzen/Governance_Framework/231016_Catena-X_Use_Case_Framework_PCF.pdf", | ||
"valid_from": "2023-01-01 00:00:00.000000 +00:00", | ||
"expiry": "2023-12-31 00:00:00.000000 +00:00" | ||
}, | ||
{ | ||
"id": "2d17a933-f65f-49cd-84a9-cff299a79f85", | ||
"verified_credential_external_type_id": 11, | ||
"version": "1.0", | ||
"template": "https://catena-x.net/fileadmin/user_upload/04_Einfuehren_und_umsetzen/Governance_Framework/example.pdf", | ||
"valid_from": "2024-10-16 00:00:00.000000 +00:00", | ||
"expiry": "2025-10-16 00:00:00.000000 +00:00" | ||
} | ||
] | ||
verified_credential_type_assigned_external_types.defaulttest.json: |- | ||
[ | ||
{ | ||
"verified_credential_external_type_id": 11, | ||
"verified_credential_type_id": 11 | ||
} | ||
] | ||
verified_credential_type_assigned_use_cases.defaulttest.json: |- | ||
[ | ||
{ | ||
"verified_credential_type_id": 11, | ||
"use_case_id": "1aacde78-35ec-4df3-ba1e-f988cddcbbd9" | ||
} | ||
] | ||
{{- 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
7 changes: 0 additions & 7 deletions
7
src/database/SsiCredentialIssuer.Migrations/Seeder/Data/use_cases.consortia.json
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...r.Migrations/Seeder/Data/verified_credential_external_type_detail_versions.consortia.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...er.Migrations/Seeder/Data/verified_credential_type_assigned_external_types.consortia.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...lIssuer.Migrations/Seeder/Data/verified_credential_type_assigned_use_cases.consortia.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions
6
...entialIssuer.DbAccess.Tests/Seeder/Data/verified_credential_type_assigned_kinds.test.json
This file was deleted.
Oops, something went wrong.
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