-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from catenax-ng/release/v1.4.0-automate-testd…
…ata-registration [ 1° ] - Release/v1.4.0 automate testdata registration: prepare and refactor shell scripts to automate testdata registration/deletion
- Loading branch information
Showing
59 changed files
with
3,090 additions
and
2,267 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,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> | ||
``` | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.