diff --git a/bubble-server/src/test/java/bubble/test/live/LaunchSageTest.java b/bubble-server/src/test/java/bubble/test/live/LaunchSageTest.java index 091b0e20..f85585e8 100644 --- a/bubble-server/src/test/java/bubble/test/live/LaunchSageTest.java +++ b/bubble-server/src/test/java/bubble/test/live/LaunchSageTest.java @@ -1,14 +1,21 @@ package bubble.test.live; +import bubble.cloud.CloudServiceDriver; +import bubble.cloud.dns.godaddy.GoDaddyDnsDriver; import org.junit.Test; +import static bubble.ApiConstants.getBubbleDefaultDomain; + public class LaunchSageTest extends LiveTestBase { + @Override protected String getManifest() { return "manifest-live"; } + + @Override protected Class getPublicDnsDriver() { return GoDaddyDnsDriver.class; } + @Override protected String getTestSageFqdn() { return null; } @Override protected boolean shouldStopSage() { return false; } + @Override public String getDefaultDomain() { return getBubbleDefaultDomain(); } - @Override protected String getManifest() { return "manifest-live"; } - - @Test public void testLaunchSage () throws Exception {} + @Test public void testLaunchSage () {} } diff --git a/bubble-server/src/test/resources/models/include/add_approved_contact.json b/bubble-server/src/test/resources/models/include/add_approved_contact.json index 1fef9835..0a3952aa 100644 --- a/bubble-server/src/test/resources/models/include/add_approved_contact.json +++ b/bubble-server/src/test/resources/models/include/add_approved_contact.json @@ -21,7 +21,7 @@ "connection": {"name": "<>"}, "request": { "session": "<>", - "uri": "users/<>/policy/contacts/<>/<>" + "uri": "users/<>/policy/contacts/<>/<>" }, "response": { "store": "existingContact", @@ -71,7 +71,7 @@ "connection": {"name": "<>"}, "request": { "session": "<>", - "uri": "debug/inbox/<>/<>?type=request&action=verify&target=account" + "uri": "debug/inbox/<>/<>?type=request&action=verify&target=account" }, "response": { "store": "<>Inbox", diff --git a/bubble-server/src/test/resources/models/include/fork.json b/bubble-server/src/test/resources/models/include/fork.json index dd36486a..a539314a 100644 --- a/bubble-server/src/test/resources/models/include/fork.json +++ b/bubble-server/src/test/resources/models/include/fork.json @@ -5,15 +5,13 @@ "params": { "rootUsername": "root", "rootPassword": "password", - "username": "user-<>", - "password": "<>", "email": "user-<>@example.com", "planVar": "plan", - "hostname": "api-<>", + "forkHost": "api-<>", "network": "_required", "domain": "{{defaultDomain}}", "locale": "en_US", - "timezone": "EST", + "timezone": "America/New_York", "plan": "bubble", "networkVar": "newNetwork", "networkConnectionVar": "newNetworkConnection", @@ -23,6 +21,41 @@ } }, + { + "comment": "add email contact for root user", + "include": "add_approved_contact", + "params": { + "username": "root", + "userSession": "rootSession", + "contactInfo": "<>", + "contactLookup": "<>" + } + }, + + { + "comment": "add an ssh key", + "request": { + "uri": "me/keys", + "method": "put", + "entity": { + "name": "root SSH key", + "sshPublicKey": "{{serverConfig.environment.TEST_SSH_KEY}}" + } + }, + "response": { + "store": "sshKey" + } + }, + + { + "comment": "get payment methods, tokenize a credit card", + "request": { "uri": "paymentMethods" }, + "response": { + "store": "paymentMethods" + }, + "after": "stripe_tokenize_card" + }, + { "comment": "add plan", "request": { @@ -34,7 +67,12 @@ "locale": "<>", "timezone": "<>", "plan": "<>", - "footprint": "<>" + "footprint": "<>", + "sshKey": "{{sshKey.uuid}}", + "paymentMethodObject": { + "paymentMethodType": "credit", + "paymentInfo": "{{stripeToken}}" + } } }, "response": { @@ -45,7 +83,7 @@ { "comment": "fork the system; sets up the first node, which does the rest", "request": { - "uri": "me/networks/<>/actions/fork/<>.<>.<>?cloud=<>®ion=<>", + "uri": "me/networks/<>/actions/fork/<>.<>.<>?cloud=<>®ion=<>", "method": "put" }, "response": { @@ -54,10 +92,10 @@ }, { - "before": "await_url me/networks/<>/dns/find?type=A&name=<>.<>.<> 30m 10s await_json.length > 0", + "before": "await_url me/networks/<>/dns/find?type=A&name=<>.<>.<> 30m 10s await_json.length > 0", "comment": "list DNS for the forked network, should now see a DNS A record for new instance", "request": { - "uri": "me/networks/<>/dns/find?type=A&name=<>.<>.<>" + "uri": "me/networks/<>/dns/find?type=A&name=<>.<>.<>" }, "response": { "store": "dnsRecords", @@ -68,11 +106,11 @@ }, { - "before": "await_url https://<>.<>.<>:{{serverConfig.nginxPort}}/api/.bubble 40m 20s", + "before": "await_url https://<>.<>.<>:{{serverConfig.nginxPort}}/api/.bubble 40m 20s", "comment": "call API of deployed node, ensure it is running", "connection": { "name": "<>", - "baseUri": "https://<>.<>.<>:{{serverConfig.nginxPort}}/api" + "baseUri": "https://<>.<>.<>:{{serverConfig.nginxPort}}/api" }, "request": { "uri" : ".bubble" }, "response": { diff --git a/bubble-server/src/test/resources/models/system/bubblePlan.json b/bubble-server/src/test/resources/models/system/bubblePlan.json index f794eddd..c08d0274 100644 --- a/bubble-server/src/test/resources/models/system/bubblePlan.json +++ b/bubble-server/src/test/resources/models/system/bubblePlan.json @@ -1,16 +1,15 @@ -[ - { - "name": "bubble", - "chargeName": "BubbleStd", - "computeSizeType": "small", - "nodesIncluded": 1, - "additionalPerNodePrice": 1200, - "price": 1200, - "storageGbIncluded": 15, - "additionalStoragePerGbPrice": 2, - "bandwidthGbIncluded": 500, - "additionalBandwidthPerGbPrice": 2 - }, { +[{ + "name": "bubble", + "chargeName": "BubbleVPN", + "computeSizeType": "small", + "nodesIncluded": 1, + "additionalPerNodePrice": 1200, + "price": 1200, + "storageGbIncluded": 15, + "additionalStoragePerGbPrice": 2, + "bandwidthGbIncluded": 500, + "additionalBandwidthPerGbPrice": 2 +}, { "name": "bubble_plus", "chargeName": "BubblePlus", "computeSizeType": "medium", @@ -21,6 +20,17 @@ "additionalStoragePerGbPrice": 2, "bandwidthGbIncluded": 1000, "additionalBandwidthPerGbPrice": 2 +}, { + "name": "bubble_big", + "chargeName": "BubbleBig", + "computeSizeType": "large", + "nodesIncluded": 1, + "additionalPerNodePrice": 2800, + "price": 2800, + "storageGbIncluded": 70, + "additionalStoragePerGbPrice": 2, + "bandwidthGbIncluded": 4000, + "additionalBandwidthPerGbPrice": 2 }//, // { // "name": "bubble_pro",