Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Update simple testing suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Oct 4, 2023
1 parent ceabefb commit 415623f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
5 changes: 3 additions & 2 deletions testing/simple/config-template.json
Expand Up @@ -11,8 +11,9 @@
"spn": {
"publicHub": {
"name": "test-$HUBNAME",
"transports": ["http:80", "tcp:17"],
"allowUnencrypted": true
"transports": ["http:80", "http:8080", "tcp:17"],
"allowUnencrypted": true,
"bindToAdvertised": true
}
}
}
2 changes: 1 addition & 1 deletion testing/simple/inject-intel.sh
Expand Up @@ -2,7 +2,7 @@

cd "$( dirname "${BASH_SOURCE[0]}" )"

MAIN_INTEL_FILE="main-intel.json"
MAIN_INTEL_FILE="intel-testnet.json"

if [[ ! -f $MAIN_INTEL_FILE ]]; then
echo "missing $MAIN_INTEL_FILE"
Expand Down
25 changes: 25 additions & 0 deletions testing/simple/intel-client.yaml
@@ -0,0 +1,25 @@
# Get current list of IDs from test net:
# curl http://127.0.0.1:817/api/v1/spn/map/test/pins | jq ".[] | .ID"
# Then import into test client with:
# curl -X POST --upload-file intel-client.yaml http://127.0.0.1:817/api/v1/spn/map/test/intel/update
Hubs:
Zwm48YWWFGdwXjhE1MyEkWfqxPr9DiUBoXpusTZ1FMQnuK:
Trusted: true
Zwu5LkkbfCbAcYxWG3vtWF1VvWjgWpc1GJfkwRdLFNtytV:
Trusted: true
ZwuQpz5CqYmYoLnt9KXQ8oxnmosBzfrCYwCGhxT4fsG1Dz:
Trusted: true
ZwwmC3dHzr7J6XW9mc2KD6FDNuXwPVJUFi9dLnDSNMyjLk:
Trusted: true
ZwxSBdvqtJyz8zRWKZe6QyK51KH9av6VFay2GQvpFrWKHq:
Trusted: true
ZwxnuL6zMLj4AxJX8Bj369w2tNrVtYxzffVcXZuMxdxbGj:
Trusted: true
ZwyXdnC8JkC7m796skGD7QWGoYycByR3KVntkXMY8CxRZQ:
Trusted: true
Zwz7AHiH1EevD9eYFqvQQPbVWyBBcksTRxxafbRx5Cvc4F:
Trusted: true
ZwzMtc65t9XBMwmLm2xNSL69FvqHGPLiqeNBZ3eEN5a9sS:
Trusted: true
ZwzjnCUNGsuWnkYmN3QEj8JPLxU6V1QQFk9b47AigmPKiH:
Trusted: true
File renamed without changes.
4 changes: 2 additions & 2 deletions testing/simple/stop.sh
Expand Up @@ -2,8 +2,8 @@

cd "$( dirname "${BASH_SOURCE[0]}" )"

docker-compose -p spn-test-simple stop
docker-compose -p spn-test-simple rm
docker compose -p spn-test-simple stop
docker compose -p spn-test-simple rm

oldnet=$(docker network ls | grep spn-test-simple | cut -d" " -f1)
if [[ $oldnet != "" ]]; then
Expand Down

0 comments on commit 415623f

Please sign in to comment.