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

sig#779 - Enable configMap to seed test data #207

Closed
evegufy opened this issue Jul 16, 2024 · 0 comments · Fixed by #241
Closed

sig#779 - Enable configMap to seed test data #207

evegufy opened this issue Jul 16, 2024 · 0 comments · Fixed by #241
Labels
enhancement New feature or request
Milestone

Comments

@evegufy
Copy link
Contributor

evegufy commented Jul 16, 2024

Description

Enable helm chart to seed test data with configmap and move default seeding path and processidentity userid out of values file, into migrations job, as changing those values isn't intuitive.

Example for configmap:

apiVersion: v1
kind: ConfigMap
metadata:
  name: example-config
  namespace: {{ .Release.Namespace }}
data:
  addresses.test.json: |-
    [
      {
        "id": "b4db3945-19a7-4a50-97d6-e66e8dfd04fc",
        "date_created": "2022-03-24 18:01:33.306000 +00:00",
        "date_last_changed": "2022-03-24 18:01:33.306000 +00:00",
        "city": "Munich",
        "region": null,
        "streetadditional": null,
        "streetname": "Street",
        "streetnumber": "1",
        "zipcode": "00001",
        "country_alpha2code": "DE"
      }
    ]
  companies.test.json: |-
    [
      {
        "id": "2dc4249f-b5ca-4d42-bef1-7a7a950a4f88",
        "date_created": "2022-03-24 18:01:33.306000 +00:00",
        "business_partner_number": "BPNL00000003CRHL",
        "name": "CX-Test-Access",
        "shortname": "CX-Test-Access",
        "company_status_id": 2,
        "address_id": "b4db3945-19a7-4a50-97d6-e66e8dfd04fe",
        "self_description_document_id": "f90962ee-a358-4381-8947-c56268ff32c7"
      }
    ]

Additional Information

analog change as for portal-backend

relates to #205 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
1 participant