This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
E2E Test Setup
Liguang Xie edited this page Oct 28, 2020
·
1 revision
curl -X GET --header "Accept: */*" "http://127.0.0.1:9001/project/3dda2801-d675-4688-a63f-dcda8d327f50/vpcs"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{
\"network\": {
\"admin_state_up\": true,
\"revision_number\": 0,
\"cidr\": \"10.0.0.0/16\",
\"default\": true,
\"description\": \"vpc\",
\"dns_domain\": \"domain\",
\"id\": \"9192a4d4-ffff-4ece-b3f0-8d36e3d88038\",
\"is_default\": true,
\"mtu\": 1500,
\"name\": \"sample_vpc\",
\"port_security_enabled\": true,
\"project_id\": \"3dda2801-d675-4688-a63f-dcda8d327f50\"
}
}" "http://127.0.0.1:9001/project/3dda2801-d675-4688-a63f-dcda8d327f50/vpcs"
curl -X GET --header "Accept: */*" "http://127.0.0.1:9001/project/3dda2801-d675-4688-a63f-dcda8d327f50/vpcs"
curl -X GET --header "Accept: */*" "http://127.0.0.1:9002/project/3dda2801-d675-4688-a63f-dcda8d327f50/subnets"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{
\"subnet\": {
\"cidr\": \"10.0.0.0/24\",
\"id\": \"9192a4d4-ffff-4ece-b3f0-8d36e3d88000\",
\"ip_version\": 4,
\"network_id\": \"9192a4d4-ffff-4ece-b3f0-8d36e3d88038\"
}
}" "http://127.0.0.1:9002/project/3dda2801-d675-4688-a63f-dcda8d327f50/subnets"
curl -X POST --header "Content-Type: application/json" --header "Accept: */*" -d "{
\"subnet\": {
\"cidr\": \"10.0.1.0/24\",
\"id\": \"9192a4d4-ffff-4ece-b3f0-8d36e3d88001\",
\"ip_version\": 4,
\"network_id\": \"9192a4d4-ffff-4ece-b3f0-8d36e3d88038\"
}
}" "http://127.0.0.1:9002/project/3dda2801-d675-4688-a63f-dcda8d327f50/subnets"
curl -X GET --header "Accept: */*" "http://127.0.0.1:9002/project/3dda2801-d675-4688-a63f-dcda8d327f50/subnets"