Skip to content

Commit

Permalink
Updates Canis Major workflow test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
asmataamallah25 committed Dec 6, 2024
1 parent 5fc76ea commit 481b382
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions validator/Tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Canis Major serves as a blockchain adaptor within the FIWARE ecosystem, providin
After r unning the integartion tests, create an entity by sending this POST request to Canis Major:

```bash
curl --location 'http://46.17.108.147:4000/ngsi-ld/v1/entities/' \
curl --location 'http://<Canis Major>:4000/ngsi-ld/v1/entities/' \
--header 'Link: <https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
--header 'Wallet-Type: vault' \
--header 'Wallet-Token: vault-plaintext-root-token' \
Expand Down Expand Up @@ -34,7 +34,7 @@ curl --location 'http://46.17.108.147:4000/ngsi-ld/v1/entities/' \

To retrieve the available entity types in the context broker run the following command:
```bash
curl -L 'http://46.17.108.147:1026/ngsi-ld/v1/types' \
curl -L 'http://<Canis Major>:1026/ngsi-ld/v1/types' \
-H 'Link: <https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'NGSILD-Tenant: orion'
```
Expand All @@ -50,15 +50,15 @@ To verify which entities are created in the context broker use the following com
To verify that the created entities is correctly saved in the context broker having the type DLTtxReceipt, use the following command:

```bash
curl -L 'http://46.17.108.147:1026/ngsi-ld/v1/entities/?type=DLTtxReceipt' \
curl -L 'http://<Canis Major>:1026/ngsi-ld/v1/entities/?type=DLTtxReceipt' \
-H 'Link: <https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'NGSILD-Tenant: orion'
```

To ask Canis Major about receipts for a specific building use the following command:

```bash
curl -L 'http://46.17.108.147:4000/entity/urn:ngsi-ld:Building:farm002' \
curl -L 'http://<Canis Major>:4000/entity/urn:ngsi-ld:Building:farm002' \
-H 'Accept: application/json'
```

Expand All @@ -85,7 +85,7 @@ Each transaction contains detailed blockchain information including block hashes
To ask the context brker Orion-LD about the receipt of a specific building use the following command:
```bash
curl -L 'http://46.17.108.147:1026/ngsi-ld/v1/entities/?type=DLTtxReceipt&q=refEntity%3D%3D%22urn%3Angsi-ld%3ABuilding%3Afarm002%22&attrs=TxReceipts' \
curl -L 'http://<Canis Major>:1026/ngsi-ld/v1/entities/?type=DLTtxReceipt&q=refEntity%3D%3D%22urn%3Angsi-ld%3ABuilding%3Afarm002%22&attrs=TxReceipts' \
-H 'Link: <https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'NGSILD-Tenant: orion'
```
Expand Down

0 comments on commit 481b382

Please sign in to comment.