Skip to content

Commit

Permalink
Merge pull request #149 from catenax-ng/release/v1.4.0-automate-testd…
Browse files Browse the repository at this point in the history
…ata-registration

[ 1° ] - Release/v1.4.0 automate testdata registration: prepare and refactor shell scripts to automate testdata registration/deletion
  • Loading branch information
saudkhan116 authored Dec 14, 2023
2 parents f492e49 + c48b701 commit a1117a4
Show file tree
Hide file tree
Showing 59 changed files with 3,090 additions and 2,267 deletions.
51 changes: 51 additions & 0 deletions deployment/infrastructure/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!--
Catena-X - Product Passport Consumer Application
Copyright (c) 2022, 2023 BASF SE, BMW AG, Henkel AG & Co. KGaA
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 govern in permissions and limitations
under the License.
SPDX-License-Identifier: Apache-2.0
-->

# Test data Uploader
## TL;DR

- Configure the following script parameters (shown in below table) in `upload-testdata.sh` script.
- The `testdata-payload.json` file contains structured data for the edc policy and digital twins.
- Run the following script to upload test data to the provider setup:
```bash
./upload-testdata.sh
```

#### Script Parameters:
| Parameter | Description | Example value | Required/Optionl |
| :---: | :--- | :--- | :---: |
| -s | Submodel server URL | https://materialpass.dev.demo.catena-x.net/provider_backend | Required |
| -e | Provider control plane URL | https://materialpass.dev.demo.catena-x.net/BPNL000000000000 | Required |
| -a | AAS registry URL | https://materialpass.dev.demo.catena-x.net/semantics/registry/api/v3.0 | Required |
| -k | EDC API Key | xxxxxxxx | Required |
| -f | input JSON testdata file | ./testdata/testdata-payload.json | Required |
| | | | |


### Delete test data

Use the following script to remove all test data from the provider edc and registry:
```bash
./delete-testdata.sh -e <provider-edc-url> -a <aas-registry-url> -k <edc-api-key>
```


206 changes: 0 additions & 206 deletions deployment/infrastructure/delete-provider-dtr.sh

This file was deleted.

Loading

0 comments on commit a1117a4

Please sign in to comment.