Skip to content

Commit

Permalink
fixup! Improve gw command and test
Browse files Browse the repository at this point in the history
  • Loading branch information
strokyl committed Aug 5, 2024
1 parent 628151b commit 7327d31
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
54 changes: 54 additions & 0 deletions docker/initializerGw.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,60 @@
}
}
},
{
"httpRequest": {
"method": "Get",
"path": "/gateway/v2/gateway-groups",
"headers": {
"Authorization": "Basic YWRtaW46Y29uZHVrdG9y"
}
},
"httpResponse": {
"statusCode": 200,
"body": "[]",
"headers": {
"Content-Type": [
"application/json"
]
}
}
},
{
"httpRequest": {
"method": "Get",
"path": "/gateway/v2/gateway-groups/g1",
"headers": {
"Authorization": "Basic YWRtaW46Y29uZHVrdG9y"
}
},
"httpResponse": {
"statusCode": 200,
"body": "{ \"metadata\": { \"name\":\"g1\" }, \"spec\":{} }",
"headers": {
"Content-Type": [
"application/json"
]
}
}
},
{
"httpRequest": {
"method": "Get",
"path": "/gateway/v2/vclusters",
"headers": {
"Authorization": "Basic YWRtaW46Y29uZHVrdG9y"
}
},
"httpResponse": {
"statusCode": 200,
"body": "[]",
"headers": {
"Content-Type": [
"application/json"
]
}
}
},
{
"httpRequest": {
"method": "Put",
Expand Down
3 changes: 3 additions & 0 deletions test_final_exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ main() {
# Gateway
docker compose -f docker/docker-compose.yml run --rm conduktor apply -f /test_resource_gw.yml
docker compose -f docker/docker-compose.yml run --rm conduktor delete VClusters vcluster1
docker compose -f docker/docker-compose.yml run --rm conduktor get VClusters
docker compose -f docker/docker-compose.yml run --rm conduktor get VClusters vcluster1
docker compose -f docker/docker-compose.yml run --rm conduktor get GatewayGroups
docker compose -f docker/docker-compose.yml run --rm conduktor get GatewayGroups g1
docker compose -f docker/docker-compose.yml run --rm conduktor get AliasTopics --show-defaults --name=yo --vcluster=mycluster1
docker compose -f docker/docker-compose.yml run --rm conduktor get ConcentrationRules --show-defaults --name=yo --vcluster=mycluster1
docker compose -f docker/docker-compose.yml run --rm conduktor get ServiceAccounts --show-defaults --name=yo --vcluster=mycluster1
Expand Down

0 comments on commit 7327d31

Please sign in to comment.