tags = sgTags.getTags();
+ assertEquals(2, tags.size());
+ assertEquals("tag1", tags.get(0));
+ }
+
+ @Test
+ public void replaceTags() {
+ String jsonResponse = "{\"tags\": [\"newTag1\", \"newTag2\"]}";
+ respondWith(200, jsonResponse);
+ NeutronResourceTag sgTags = new NeutronResourceTag();
+ sgTags.addTag("newTag1");
+ sgTags.addTag("newTag2");
+ NeutronResourceTag newTags = osv3().networking().resourceTags().replace(Resource.NETWORK, "1", sgTags);
+
+ assertEquals(sgTags.getTags(), newTags.getTags());
+ }
+
+ @Test
+ public void deleteAllTags() {
+ respondWith(204);
+ ActionResponse delete = osv3().networking().resourceTags().deleteAll(Resource.NETWORK, "1");
+ System.out.println(delete.getCode());
+ assertTrue(delete.isSuccess());
+ }
+
+ @Test
+ public void checkTag() {
+ respondWith(204);
+ ActionResponse check = osv3().networking().resourceTags().check(Resource.NETWORK, "1", "tag1");
+ assertTrue(check.isSuccess());
+ }
+
+ @Test
+ public void addTag() {
+ respondWith(204);
+ ActionResponse check = osv3().networking().resourceTags().addSingle(Resource.NETWORK, "1", "tag");
+ assertTrue(check.isSuccess());
+ }
+
+ @Test
+ public void deleteTag() {
+ respondWith(204);
+ ActionResponse delete = osv3().networking().resourceTags().delete(Resource.NETWORK, "1", "tag1");
+ assertTrue(delete.isSuccess());
+ }
+
+ @Override
+ protected Service service() {
+ return Service.NETWORK;
+ }
+
+}
diff --git a/core-test/src/main/java/org/openstack4j/api/network/PortTests.java b/core-test/src/main/java/org/openstack4j/api/network/PortTests.java
index 2c61516ab..0495b41e5 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/PortTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/PortTests.java
@@ -4,15 +4,14 @@
import org.openstack4j.api.Builders;
import org.openstack4j.model.network.Port;
import org.testng.annotations.Test;
+
import java.util.ArrayList;
import java.util.List;
import static org.testng.Assert.assertEquals;
/**
- *
* @author Rizwan Qamar
- *
*/
@Test(suiteName = "Port")
public class PortTests extends AbstractTest {
diff --git a/core-test/src/main/java/org/openstack4j/api/network/SecurityGroupTests.java b/core-test/src/main/java/org/openstack4j/api/network/SecurityGroupTests.java
index 197b658ab..e3348941b 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/SecurityGroupTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/SecurityGroupTests.java
@@ -12,7 +12,7 @@
/**
* Tests the Compute -> Network API against the mock webserver and spec based
* json responses
- *
+ *
* Created by Ayberk CAL on 20.03.2017.
*/
@Test(suiteName = "SecurityGroup")
diff --git a/core-test/src/main/java/org/openstack4j/api/network/ServiceFunctionChainTests.java b/core-test/src/main/java/org/openstack4j/api/network/ServiceFunctionChainTests.java
index 8b80d165d..d561f09c3 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/ServiceFunctionChainTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/ServiceFunctionChainTests.java
@@ -1,28 +1,21 @@
package org.openstack4j.api.network;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.InputStreamReader;
-import java.util.List;
-
+import com.google.common.base.Objects;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.core.transport.ObjectMapperSingleton;
import org.openstack4j.model.common.ActionResponse;
-import org.openstack4j.model.network.ext.Ethertype;
-import org.openstack4j.model.network.ext.FlowClassifier;
-import org.openstack4j.model.network.ext.PortChain;
-import org.openstack4j.model.network.ext.PortPair;
-import org.openstack4j.model.network.ext.PortPairGroup;
+import org.openstack4j.model.network.ext.*;
import org.openstack4j.openstack.networking.domain.ext.NeutronFlowClassifier;
import org.openstack4j.openstack.networking.domain.ext.NeutronPortChain;
import org.openstack4j.openstack.networking.domain.ext.NeutronPortPair;
import org.openstack4j.openstack.networking.domain.ext.NeutronPortPairGroup;
import org.testng.annotations.Test;
-import com.google.common.base.Objects;
+import java.io.InputStreamReader;
+import java.util.List;
+
+import static org.testng.Assert.*;
@Test(suiteName = "ServiceFunctionChain")
public class ServiceFunctionChainTests extends AbstractTest {
@@ -74,7 +67,7 @@ public void testFlowClassifiersList() throws Exception {
assertNotNull(flowClassifiers.get(1).getL7Parameters());
assertNotNull(flowClassifiers.get(1).getL7Parameters().get(PARAM_KEY_B));
assertEquals(flowClassifiers.get(1).getL7Parameters().get(PARAM_KEY_B), PARAM_VALUE_B);
-}
+ }
@Test
public void testGetFlowClassifier() throws Exception {
@@ -95,7 +88,7 @@ public void testGetFlowClassifier() throws Exception {
public void testCreateFlowClassifier() throws Exception {
FlowClassifier original = ObjectMapperSingleton.getContext(NeutronFlowClassifier.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_FLOW_CLASSIFIER)),
- NeutronFlowClassifier.class);
+ NeutronFlowClassifier.class);
respondWith(JSON_FLOW_CLASSIFIER);
FlowClassifier returned = osv3().sfc().flowclassifiers().create(original);
server.takeRequest();
@@ -107,7 +100,7 @@ public void testCreateFlowClassifier() throws Exception {
public void testUpdateFlowClassifier() throws Exception {
FlowClassifier original = ObjectMapperSingleton.getContext(NeutronFlowClassifier.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_FLOW_CLASSIFIER)),
- NeutronFlowClassifier.class);
+ NeutronFlowClassifier.class);
respondWith(JSON_FLOW_CLASSIFIER);
FlowClassifier returned = osv3().sfc().flowclassifiers().update(FC_ID, original);
server.takeRequest();
@@ -119,7 +112,7 @@ public void testUpdateFlowClassifier() throws Exception {
public void testDeleteFlowClassifier() throws Exception {
FlowClassifier original = ObjectMapperSingleton.getContext(NeutronFlowClassifier.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_FLOW_CLASSIFIER)),
- NeutronFlowClassifier.class);
+ NeutronFlowClassifier.class);
respondWith(200);
ActionResponse response = osv3().sfc().flowclassifiers().delete(FC_ID);
server.takeRequest();
@@ -163,7 +156,7 @@ public void testGetPortPair() throws Exception {
public void testCreatePortPair() throws Exception {
PortPair original = ObjectMapperSingleton.getContext(NeutronPortPair.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_PAIR)),
- NeutronPortPair.class);
+ NeutronPortPair.class);
respondWith(JSON_PORT_PAIR);
PortPair returned = osv3().sfc().portpairs().create(original);
server.takeRequest();
@@ -175,7 +168,7 @@ public void testCreatePortPair() throws Exception {
public void testUpdatePortPair() throws Exception {
PortPair original = ObjectMapperSingleton.getContext(NeutronPortPair.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_PAIR)),
- NeutronPortPair.class);
+ NeutronPortPair.class);
respondWith(JSON_PORT_PAIR);
PortPair returned = osv3().sfc().portpairs().update(FC_ID, original);
server.takeRequest();
@@ -215,7 +208,7 @@ public void testGetPortPairGroup() throws Exception {
public void testCreatePortPairGroup() throws Exception {
PortPairGroup original = ObjectMapperSingleton.getContext(NeutronPortPairGroup.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_PAIR_GROUP)),
- NeutronPortPairGroup.class);
+ NeutronPortPairGroup.class);
respondWith(JSON_PORT_PAIR_GROUP);
PortPairGroup returned = osv3().sfc().portpairgroups().create(original);
server.takeRequest();
@@ -227,7 +220,7 @@ public void testCreatePortPairGroup() throws Exception {
public void testUpdatePortPairGroup() throws Exception {
PortPairGroup original = ObjectMapperSingleton.getContext(NeutronPortPairGroup.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_PAIR_GROUP)),
- NeutronPortPairGroup.class);
+ NeutronPortPairGroup.class);
respondWith(JSON_PORT_PAIR_GROUP);
PortPairGroup returned = osv3().sfc().portpairgroups().update(FC_ID, original);
server.takeRequest();
@@ -297,7 +290,7 @@ public void testGetPortChain() throws Exception {
public void testCreatePortChain() throws Exception {
PortChain original = ObjectMapperSingleton.getContext(NeutronPortChain.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_CHAIN)),
- NeutronPortChain.class);
+ NeutronPortChain.class);
respondWith(JSON_PORT_CHAIN);
PortChain returned = osv3().sfc().portchains().create(original);
server.takeRequest();
@@ -309,7 +302,7 @@ public void testCreatePortChain() throws Exception {
public void testUpdatePortChain() throws Exception {
PortChain original = ObjectMapperSingleton.getContext(NeutronPortChain.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_CHAIN)),
- NeutronPortChain.class);
+ NeutronPortChain.class);
respondWith(JSON_PORT_CHAIN);
PortChain returned = osv3().sfc().portchains().update(FC_ID, original);
server.takeRequest();
@@ -329,7 +322,7 @@ public void testDeletePortChain() throws Exception {
public void testPortChainBuilder() throws Exception {
PortChain original = ObjectMapperSingleton.getContext(NeutronPortChain.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_CHAIN)),
- NeutronPortChain.class);
+ NeutronPortChain.class);
PortChain built = Builders.portChain()
.id(original.getId())
.name(original.getName())
@@ -348,7 +341,7 @@ public void testPortChainBuilder() throws Exception {
public void testPortPairGroupBuilder() throws Exception {
PortPairGroup original = ObjectMapperSingleton.getContext(NeutronPortPairGroup.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_PAIR_GROUP)),
- NeutronPortPairGroup.class);
+ NeutronPortPairGroup.class);
PortPairGroup built = Builders.portPairGroup()
.id(original.getId())
.name(original.getName())
@@ -365,7 +358,7 @@ public void testPortPairGroupBuilder() throws Exception {
public void testPortPairBuilder() throws Exception {
PortPair original = ObjectMapperSingleton.getContext(NeutronPortPair.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_PORT_PAIR)),
- NeutronPortPair.class);
+ NeutronPortPair.class);
PortPair built = Builders.portPair()
.id(original.getId())
.name(original.getName())
@@ -383,7 +376,7 @@ public void testPortPairBuilder() throws Exception {
public void testFlowClassifierBuilder() throws Exception {
FlowClassifier original = ObjectMapperSingleton.getContext(NeutronFlowClassifier.class)
.readValue(new InputStreamReader(getClass().getResourceAsStream(JSON_FLOW_CLASSIFIER)),
- NeutronFlowClassifier.class);
+ NeutronFlowClassifier.class);
FlowClassifier built = Builders.flowClassifier()
.id(original.getId())
.name(original.getName())
diff --git a/core-test/src/main/java/org/openstack4j/api/network/SubnetTests.java b/core-test/src/main/java/org/openstack4j/api/network/SubnetTests.java
index 3e183e75c..a4f21c1ce 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/SubnetTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/SubnetTests.java
@@ -1,40 +1,40 @@
package org.openstack4j.api.network;
-import static org.testng.Assert.assertEquals;
-
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.network.Ipv6AddressMode;
import org.openstack4j.model.network.Ipv6RaMode;
import org.openstack4j.model.network.Subnet;
import org.testng.annotations.Test;
+import static org.testng.Assert.assertEquals;
+
/**
* Tests the Neutron -> Subnet API against the mock webserver and spec based
* json responses
- *
- * @author Taemin
+ *
+ * @author Taemin
*/
@Test(suiteName = "subnet")
public class SubnetTests extends AbstractTest {
- private static final String JSON_GET_SUBNET = "/network/subnet_ipv6.json";
-
- private static final String SUBNET_NAME = "sub1";
- private static final String SUBNET_ID = "3b80198d-4f7b-4f77-9ef5-774d54e17126";
-
- @Test
- public void getSubnetIpV6() throws Exception {
- respondWith(JSON_GET_SUBNET);
- Subnet n = osv3().networking().subnet().get(SUBNET_ID);
- server.takeRequest();
- assertEquals(n.getName(), SUBNET_NAME);
- assertEquals(n.getIpv6AddressMode(), Ipv6AddressMode.DHCPV6_STATEFUL);
- assertEquals(n.getIpv6RaMode(), Ipv6RaMode.DHCPV6_STATEFUL);
- }
+ private static final String JSON_GET_SUBNET = "/network/subnet_ipv6.json";
+
+ private static final String SUBNET_NAME = "sub1";
+ private static final String SUBNET_ID = "3b80198d-4f7b-4f77-9ef5-774d54e17126";
+
+ @Test
+ public void getSubnetIpV6() throws Exception {
+ respondWith(JSON_GET_SUBNET);
+ Subnet n = osv3().networking().subnet().get(SUBNET_ID);
+ server.takeRequest();
+ assertEquals(n.getName(), SUBNET_NAME);
+ assertEquals(n.getIpv6AddressMode(), Ipv6AddressMode.DHCPV6_STATEFUL);
+ assertEquals(n.getIpv6RaMode(), Ipv6RaMode.DHCPV6_STATEFUL);
+ }
@Override
protected Service service() {
return Service.NETWORK;
}
-
+
}
diff --git a/core-test/src/main/java/org/openstack4j/api/network/VipTests.java b/core-test/src/main/java/org/openstack4j/api/network/VipTests.java
index 65db080e6..84ea5ab92 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/VipTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/VipTests.java
@@ -1,9 +1,5 @@
package org.openstack4j.api.network;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -13,101 +9,106 @@
import org.openstack4j.model.network.ext.VipUpdate;
import org.testng.annotations.Test;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
/**
- *
* @author liujunpeng
- *
*/
-@Test(suiteName="Network/vip", enabled=false)
-public class VipTests extends AbstractTest{
- public void testListVip(){
- List extends Vip> list = osv3().networking().loadbalancers().vip().list();
- System.out.println("test lb vip List"+list);
- assertEquals(1, list.size());
- }
- public void testListVipFilter(){
- Map map = new HashMap();
- map.put("name", "vip");
- List extends Vip> list = osv3().networking().loadbalancers().vip().list(map);
- System.out.println("test lb vip List filter"+list);
- assertEquals(1, list.size());
- }
- public void testGetVip(){
- String id = "dfc5c198-dceb-4f99-8ed7-5ebfdf46946d";
- Vip vip = osv3().networking().loadbalancers().vip().get(id);
- System.out.println("test get a vip"+vip);
- assertEquals(id, vip.getId());
+@Test(suiteName = "Network/vip", enabled = false)
+public class VipTests extends AbstractTest {
+ public void testListVip() {
+ List extends Vip> list = osv3().networking().loadbalancers().vip().list();
+ System.out.println("test lb vip List" + list);
+ assertEquals(1, list.size());
+ }
+
+ public void testListVipFilter() {
+ Map map = new HashMap();
+ map.put("name", "vip");
+ List extends Vip> list = osv3().networking().loadbalancers().vip().list(map);
+ System.out.println("test lb vip List filter" + list);
+ assertEquals(1, list.size());
+ }
+
+ public void testGetVip() {
+ String id = "dfc5c198-dceb-4f99-8ed7-5ebfdf46946d";
+ Vip vip = osv3().networking().loadbalancers().vip().get(id);
+ System.out.println("test get a vip" + vip);
+ assertEquals(id, vip.getId());
+
+ }
+
+ public void testCreateVip() {
+ String address = "100.2.12.48";
+ String name = "createVip";
+ String poolId = "db083bf7-c455-4758-b1ad-203cf441a73a";
+ String subnetId = "7d1dab60-cf8a-4f75-af5c-44aab98b0c42";
+ String tenantId = "d7fd03242ffa4933863bc528ed884fb6";
+ Integer port = 80;
+ Vip create = Builders.vip().address(address).adminStateUp(true)
+ .connectionLimit(100)
+ .description("vip")
+ .name(name)
+ .poolId(poolId)
+ .protocol(Protocol.HTTP)
+ .protocolPort(port)
+ .sessionPersistence(Builders
+ .sessionPersistence()
+ .cookieName("cookie")
+ .type(SessionPersistenceType.APP_COOKIE)
+ .build())
+ .subnetId(subnetId)
+ .tenantId(tenantId)
+ .build();
+ Vip result = osv3().networking().loadbalancers().vip().create(create);
+ System.out.println(result);
+ assertEquals(address, result.getAddress());
+ assertEquals(name, result.getName());
+ assertEquals(Protocol.HTTP, result.getProtocol());
+ assertEquals(port, result.getProtocolPort());
+ }
+
+ public void testUpdateVip() {
+ String vipId = "cb1d7958-232d-4daa-a5f5-16ba91a6362b";
+ String name = "updateVip";
+ String poolId = "db083bf7-c455-4758-b1ad-203cf441a73a";
+ Integer connectionLimit = 101;
+ VipUpdate update = Builders.vipUpdate().adminStateUp(true)
+ .connectionLimit(connectionLimit)
+ .description("vip")
+ .name(name)
+ .poolId(poolId)
+ .sessionPersistence(Builders
+ .sessionPersistence()
+ .type(SessionPersistenceType.SOURCE_IP)
+ .build())
+ .description("description update")
+ .build();
+ Vip result = osv3().networking().loadbalancers().vip().update(vipId, update);
+ System.out.println(result);
+ assertEquals(poolId, result.getPoolId());
+ assertEquals(connectionLimit, result.getConnectionLimit());
+ assertEquals(name, result.getName());
+ assertEquals(SessionPersistenceType.SOURCE_IP, result
+ .getSessionPersistence().getType());
+
+ }
+
+ public void testDeleteVip() {
+ String id = "50cbd265-fe4f-4c9c-b25c-bb6c773d0366";
+ ActionResponse result = osv3().networking().loadbalancers().vip().delete(id);
+ assertTrue(result.isSuccess());
+
+ }
- }
-
- public void testCreateVip(){
- String address = "100.2.12.48";
- String name = "createVip";
- String poolId = "db083bf7-c455-4758-b1ad-203cf441a73a";
- String subnetId = "7d1dab60-cf8a-4f75-af5c-44aab98b0c42";
- String tenantId = "d7fd03242ffa4933863bc528ed884fb6";
- Integer port = 80;
- Vip create = Builders.vip().address(address).adminStateUp(true)
- .connectionLimit(100)
- .description("vip")
- .name(name)
- .poolId(poolId)
- .protocol(Protocol.HTTP)
- .protocolPort(port)
- .sessionPersistence(Builders
- .sessionPersistence()
- .cookieName("cookie")
- .type(SessionPersistenceType.APP_COOKIE)
- .build())
- .subnetId(subnetId)
- .tenantId(tenantId)
- .build();
- Vip result = osv3().networking().loadbalancers().vip().create(create);
- System.out.println(result);
- assertEquals(address, result.getAddress());
- assertEquals(name, result.getName());
- assertEquals(Protocol.HTTP, result.getProtocol());
- assertEquals(port, result.getProtocolPort());
- }
-
- public void testUpdateVip(){
- String vipId = "cb1d7958-232d-4daa-a5f5-16ba91a6362b";
- String name = "updateVip";
- String poolId = "db083bf7-c455-4758-b1ad-203cf441a73a";
- Integer connectionLimit = 101;
- VipUpdate update = Builders.vipUpdate().adminStateUp(true)
- .connectionLimit(connectionLimit)
- .description("vip")
- .name(name)
- .poolId(poolId)
- .sessionPersistence(Builders
- .sessionPersistence()
- .type(SessionPersistenceType.SOURCE_IP)
- .build())
- .description("description update")
- .build();
- Vip result = osv3().networking().loadbalancers().vip().update(vipId, update);
- System.out.println(result);
- assertEquals(poolId, result.getPoolId());
- assertEquals(connectionLimit, result.getConnectionLimit());
- assertEquals(name, result.getName());
- assertEquals(SessionPersistenceType.SOURCE_IP, result
- .getSessionPersistence().getType());
-
- }
-
- public void testDeleteVip(){
- String id = "50cbd265-fe4f-4c9c-b25c-bb6c773d0366";
- ActionResponse result = osv3().networking().loadbalancers().vip().delete(id);
- assertTrue(result.isSuccess());
-
- }
- @Override
- protected Service service() {
- return Service.NETWORK;
- }
+ @Override
+ protected Service service() {
+ return Service.NETWORK;
+ }
}
diff --git a/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallPolicyTests.java b/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallPolicyTests.java
index 4a9e504d2..79825b27b 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallPolicyTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallPolicyTests.java
@@ -1,14 +1,6 @@
package org.openstack4j.api.network.firewalls;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.List;
-import java.util.logging.Logger;
-
+import com.google.common.base.Preconditions;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -17,102 +9,107 @@
import org.openstack4j.openstack.networking.domain.ext.FirewallRuleStrategy.RuleInsertStrategyType;
import org.testng.annotations.Test;
-import com.google.common.base.Preconditions;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+import java.util.logging.Logger;
+
+import static org.testng.Assert.*;
/**
* Test suite for FirewallPolicy As a Service : FirewallPolicy Policy {@link FirewallPolicy} (FwaaS)
- *
+ *
* @author Vishvesh Deshmukh
*/
-@Test(suiteName="Network/FirewallPolicy", enabled = false)
+@Test(suiteName = "Network/FirewallPolicy", enabled = false)
public class FirewallPolicyTests extends AbstractTest {
-
- private static final String FIREWALL_POLICY = "/network/firewalls/firewallpolicy.json";
- private static final String FIREWALL_POLICIES = "/network/firewalls/firewallpolicies.json";
- private static final String FIREWALL_POLICY_RULE = "/network/firewalls/firewallpolicyrule.json";
- private static final String FIREWALL_POLICY_UPDATE = "/network/firewalls/firewallpolicyupdate.json";
-
- public void testListFirewallPolicies() throws IOException {
- respondWith(FIREWALL_POLICIES);
- List extends FirewallPolicy> list = osv3().networking().firewalls().firewallpolicy().list();
- assertEquals(1, list.size());
- Preconditions.checkNotNull(list.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallPolicy from List : "+list.get(0));
- assertEquals(list.get(0).getId(), "c69933c1-b472-44f9-8226-30dc4ffd454c");
- }
-
- public void testGetFirewallPolicy() throws IOException {
- respondWith(FIREWALL_POLICY);
- String id = "c69933c1-b472-44f9-8226-30dc4ffd454c";
- FirewallPolicy firewallPolicy = osv3().networking().firewalls().firewallpolicy().get(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallPolicy by ID : "+firewallPolicy);
- assertNotNull(firewallPolicy);
- assertEquals(firewallPolicy.getId(), id);
-
- List firewallRules = firewallPolicy.getFirewallRuleIds();
- assertNotNull(firewallRules);
- assertNotNull(firewallRules.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallRule from PolicyList : "+firewallRules.get(0));
- assertEquals(firewallRules.get(0), "8722e0e0-9cc9-4490-9660-8c9a5732fbb0");
- }
-
- public void testCreateFirewallPolicy() throws IOException {
- respondWith(FIREWALL_POLICY);
- FirewallPolicy create = Builders.firewallPolicy()
- .name("Test-Firewall-Policy").description("Test-Firewall-Policy")
- .shared(Boolean.TRUE).audited(Boolean.FALSE)
- .tenantId("45977fa2dbd7482098dd68d0d8970117").build();
- FirewallPolicy result = osv3().networking().firewalls().firewallpolicy().create(create);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created FirewallPolicy : "+result);
-
- assertEquals(result.getName(), "Test-Firewall-Policy");
- assertEquals(result.getFirewallRuleIds().size(), 1);
- }
-
- public void testUpdateFirewallPolicy() throws IOException {
- respondWith(FIREWALL_POLICY_UPDATE);
- FirewallPolicyUpdate update = Builders.firewallPolicyUpdate()
- .name("Test-Firewall-Policy-Update").shared(Boolean.FALSE).audited(Boolean.FALSE)
- .firewallRules(Arrays.asList("8722e0e0-9cc9-4490-9660-8c9a5732fbb0"))
- .description("Test-Firewall-Policy-Update").build();
-
- FirewallPolicy result = osv3().networking().firewalls().firewallpolicy().update("c69933c1-b472-44f9-8226-30dc4ffd454c", update);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated FirewallPolicy : "+result);
-
- assertEquals("Test-Firewall-Policy-Update", result.getDescription());
- }
-
- public void testInsertRuleInFirewallPolicy() throws IOException {
- respondWith(FIREWALL_POLICY_RULE);
-
- FirewallPolicy result = osv3().networking().firewalls().firewallpolicy()
- .insertFirewallRuleInPolicy(
- "c69933c1-b472-44f9-8226-30dc4ffd454c", "7bc34b8c-8d3b-4ada-a9c8-1f4c11c65692",
- RuleInsertStrategyType.AFTER, "a08ef905-0ff6-4784-8374-175fffe7dade");
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Inserted Rule FirewallPolicy : "+result);
-
- assertEquals(result.getId(), "c69933c1-b472-44f9-8226-30dc4ffd454c");
- }
-
- public void testRemoveRuleFromFirewallPolicy() throws IOException {
- respondWith(FIREWALL_POLICY_RULE);
-
- FirewallPolicy result = osv3().networking().firewalls().firewallpolicy()
- .removeFirewallRuleFromPolicy("c69933c1-b472-44f9-8226-30dc4ffd454c", "7bc34b8c-8d3b-4ada-a9c8-1f4c11c65692");
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Rule Removed from FirewallPolicy : "+result);
-
- assertEquals(result.getId(), "c69933c1-b472-44f9-8226-30dc4ffd454c");
- }
-
- public void testDeleteFirewallPolicy() {
- respondWith(200);
- ActionResponse result = osv3().networking().firewalls().firewallpolicy().delete("c69933c1-b472-44f9-8226-30dc4ffd454c");
- assertTrue(result.isSuccess());
- }
-
- @Override
- protected Service service() {
- return Service.NETWORK;
- }
+
+ private static final String FIREWALL_POLICY = "/network/firewalls/firewallpolicy.json";
+ private static final String FIREWALL_POLICIES = "/network/firewalls/firewallpolicies.json";
+ private static final String FIREWALL_POLICY_RULE = "/network/firewalls/firewallpolicyrule.json";
+ private static final String FIREWALL_POLICY_UPDATE = "/network/firewalls/firewallpolicyupdate.json";
+
+ public void testListFirewallPolicies() throws IOException {
+ respondWith(FIREWALL_POLICIES);
+ List extends FirewallPolicy> list = osv3().networking().firewalls().firewallpolicy().list();
+ assertEquals(1, list.size());
+ Preconditions.checkNotNull(list.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallPolicy from List : " + list.get(0));
+ assertEquals(list.get(0).getId(), "c69933c1-b472-44f9-8226-30dc4ffd454c");
+ }
+
+ public void testGetFirewallPolicy() throws IOException {
+ respondWith(FIREWALL_POLICY);
+ String id = "c69933c1-b472-44f9-8226-30dc4ffd454c";
+ FirewallPolicy firewallPolicy = osv3().networking().firewalls().firewallpolicy().get(id);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallPolicy by ID : " + firewallPolicy);
+ assertNotNull(firewallPolicy);
+ assertEquals(firewallPolicy.getId(), id);
+
+ List firewallRules = firewallPolicy.getFirewallRuleIds();
+ assertNotNull(firewallRules);
+ assertNotNull(firewallRules.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallRule from PolicyList : " + firewallRules.get(0));
+ assertEquals(firewallRules.get(0), "8722e0e0-9cc9-4490-9660-8c9a5732fbb0");
+ }
+
+ public void testCreateFirewallPolicy() throws IOException {
+ respondWith(FIREWALL_POLICY);
+ FirewallPolicy create = Builders.firewallPolicy()
+ .name("Test-Firewall-Policy").description("Test-Firewall-Policy")
+ .shared(Boolean.TRUE).audited(Boolean.FALSE)
+ .tenantId("45977fa2dbd7482098dd68d0d8970117").build();
+ FirewallPolicy result = osv3().networking().firewalls().firewallpolicy().create(create);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created FirewallPolicy : " + result);
+
+ assertEquals(result.getName(), "Test-Firewall-Policy");
+ assertEquals(result.getFirewallRuleIds().size(), 1);
+ }
+
+ public void testUpdateFirewallPolicy() throws IOException {
+ respondWith(FIREWALL_POLICY_UPDATE);
+ FirewallPolicyUpdate update = Builders.firewallPolicyUpdate()
+ .name("Test-Firewall-Policy-Update").shared(Boolean.FALSE).audited(Boolean.FALSE)
+ .firewallRules(Arrays.asList("8722e0e0-9cc9-4490-9660-8c9a5732fbb0"))
+ .description("Test-Firewall-Policy-Update").build();
+
+ FirewallPolicy result = osv3().networking().firewalls().firewallpolicy().update("c69933c1-b472-44f9-8226-30dc4ffd454c", update);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated FirewallPolicy : " + result);
+
+ assertEquals("Test-Firewall-Policy-Update", result.getDescription());
+ }
+
+ public void testInsertRuleInFirewallPolicy() throws IOException {
+ respondWith(FIREWALL_POLICY_RULE);
+
+ FirewallPolicy result = osv3().networking().firewalls().firewallpolicy()
+ .insertFirewallRuleInPolicy(
+ "c69933c1-b472-44f9-8226-30dc4ffd454c", "7bc34b8c-8d3b-4ada-a9c8-1f4c11c65692",
+ RuleInsertStrategyType.AFTER, "a08ef905-0ff6-4784-8374-175fffe7dade");
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Inserted Rule FirewallPolicy : " + result);
+
+ assertEquals(result.getId(), "c69933c1-b472-44f9-8226-30dc4ffd454c");
+ }
+
+ public void testRemoveRuleFromFirewallPolicy() throws IOException {
+ respondWith(FIREWALL_POLICY_RULE);
+
+ FirewallPolicy result = osv3().networking().firewalls().firewallpolicy()
+ .removeFirewallRuleFromPolicy("c69933c1-b472-44f9-8226-30dc4ffd454c", "7bc34b8c-8d3b-4ada-a9c8-1f4c11c65692");
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Rule Removed from FirewallPolicy : " + result);
+
+ assertEquals(result.getId(), "c69933c1-b472-44f9-8226-30dc4ffd454c");
+ }
+
+ public void testDeleteFirewallPolicy() {
+ respondWith(200);
+ ActionResponse result = osv3().networking().firewalls().firewallpolicy().delete("c69933c1-b472-44f9-8226-30dc4ffd454c");
+ assertTrue(result.isSuccess());
+ }
+
+ @Override
+ protected Service service() {
+ return Service.NETWORK;
+ }
}
diff --git a/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallRuleTests.java b/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallRuleTests.java
index 4719a5311..4adac4df0 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallRuleTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallRuleTests.java
@@ -1,13 +1,6 @@
package org.openstack4j.api.network.firewalls;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.logging.Logger;
-
+import com.google.common.base.Preconditions;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -19,77 +12,81 @@
import org.openstack4j.openstack.networking.domain.ext.NeutronFirewallRule.IPProtocol;
import org.testng.annotations.Test;
-import com.google.common.base.Preconditions;
+import java.io.IOException;
+import java.util.List;
+import java.util.logging.Logger;
+
+import static org.testng.Assert.*;
/**
* Test suite for FirewallRule As a Service : FirewallRule Rule {@link FirewallRule} (FwaaS)
- *
+ *
* @author Vishvesh Deshmukh
*/
-@Test(suiteName="Network/FirewallRule", enabled = false)
+@Test(suiteName = "Network/FirewallRule", enabled = false)
public class FirewallRuleTests extends AbstractTest {
-
- private static final String FIREWALL_RULE = "/network/firewalls/firewallrule.json";
- private static final String FIREWALL_RULES = "/network/firewalls/firewallrules.json";
- private static final String FIREWALL_RULE_UPDATE = "/network/firewalls/firewallruleupdate.json";
-
- public void testListFirewallRules() throws IOException {
- respondWith(FIREWALL_RULES);
- List extends FirewallRule> list = osv3().networking().firewalls().firewallrule().list();
- assertEquals(1, list.size());
- Preconditions.checkNotNull(list.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallRule from List : "+list.get(0));
- assertEquals(list.get(0).getId(), "8722e0e0-9cc9-4490-9660-8c9a5732fbb0");
- }
-
- public void testGetFirewallRule() throws IOException {
- respondWith(FIREWALL_RULE);
- String id = "8722e0e0-9cc9-4490-9660-8c9a5732fbb0";
- FirewallRule firewallRule = osv3().networking().firewalls().firewallrule().get(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallRule by ID : "+firewallRule);
- assertNotNull(firewallRule);
- assertEquals(firewallRule.getId(), id);
- assertEquals(firewallRule.getAction(), NeutronFirewallRule.FirewallRuleAction.ALLOW);
- }
-
- public void testCreateFirewallRule() throws IOException {
- respondWith(FIREWALL_RULE);
- FirewallRule create = Builders.firewallRule()
- .description("Sample-Description").name("Sample-Firewall-Rule-Create")
- .shared(Boolean.TRUE).action(FirewallRuleAction.ALLOW)
- .sourceIpAddress("50.0.0.5").destinationIpAddress("5.0.0.10")
- .sourcePort("50").destinationPort("80").name("ALLOW_HTTP")
- .enabled(Boolean.TRUE).protocol(IPProtocol.TCP).ipVersion(IPVersionType.V4)
- .tenantId("45977fa2dbd7482098dd68d0d8970117").build();
- FirewallRule result = osv3().networking().firewalls().firewallrule().create(create);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created FirewallRule : "+result);
-
- assertEquals(result.getName(), "ALLOW_HTTP");
- assertEquals(result.getAction(), NeutronFirewallRule.FirewallRuleAction.ALLOW);
- }
-
- public void testUpdateFirewallRule() throws IOException {
- respondWith(FIREWALL_RULE_UPDATE);
- FirewallRuleUpdate update = Builders.firewallRuleUpdate()
- .shared(Boolean.FALSE).enabled(Boolean.FALSE)
- .description("Test-Firewall-Update").build();
-
- FirewallRule result = osv3().networking().firewalls().firewallrule().update("8722e0e0-9cc9-4490-9660-8c9a5732fbb0", update);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated FirewallRule : "+result);
-
- assertEquals("Sample-Firewall-Rule-Update", result.getDescription());
- assertEquals(result.getAction(), NeutronFirewallRule.FirewallRuleAction.DENY);
- }
-
- public void testDeleteFirewallRule() {
- respondWith(200);
- ActionResponse result = osv3().networking().firewalls().firewallrule().delete("8722e0e0-9cc9-4490-9660-8c9a5732fbb0");
- assertTrue(result.isSuccess());
- }
- @Override
- protected Service service() {
- return Service.NETWORK;
- }
+ private static final String FIREWALL_RULE = "/network/firewalls/firewallrule.json";
+ private static final String FIREWALL_RULES = "/network/firewalls/firewallrules.json";
+ private static final String FIREWALL_RULE_UPDATE = "/network/firewalls/firewallruleupdate.json";
+
+ public void testListFirewallRules() throws IOException {
+ respondWith(FIREWALL_RULES);
+ List extends FirewallRule> list = osv3().networking().firewalls().firewallrule().list();
+ assertEquals(1, list.size());
+ Preconditions.checkNotNull(list.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallRule from List : " + list.get(0));
+ assertEquals(list.get(0).getId(), "8722e0e0-9cc9-4490-9660-8c9a5732fbb0");
+ }
+
+ public void testGetFirewallRule() throws IOException {
+ respondWith(FIREWALL_RULE);
+ String id = "8722e0e0-9cc9-4490-9660-8c9a5732fbb0";
+ FirewallRule firewallRule = osv3().networking().firewalls().firewallrule().get(id);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : FirewallRule by ID : " + firewallRule);
+ assertNotNull(firewallRule);
+ assertEquals(firewallRule.getId(), id);
+ assertEquals(firewallRule.getAction(), NeutronFirewallRule.FirewallRuleAction.ALLOW);
+ }
+
+ public void testCreateFirewallRule() throws IOException {
+ respondWith(FIREWALL_RULE);
+ FirewallRule create = Builders.firewallRule()
+ .description("Sample-Description").name("Sample-Firewall-Rule-Create")
+ .shared(Boolean.TRUE).action(FirewallRuleAction.ALLOW)
+ .sourceIpAddress("50.0.0.5").destinationIpAddress("5.0.0.10")
+ .sourcePort("50").destinationPort("80").name("ALLOW_HTTP")
+ .enabled(Boolean.TRUE).protocol(IPProtocol.TCP).ipVersion(IPVersionType.V4)
+ .tenantId("45977fa2dbd7482098dd68d0d8970117").build();
+ FirewallRule result = osv3().networking().firewalls().firewallrule().create(create);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created FirewallRule : " + result);
+
+ assertEquals(result.getName(), "ALLOW_HTTP");
+ assertEquals(result.getAction(), NeutronFirewallRule.FirewallRuleAction.ALLOW);
+ }
+
+ public void testUpdateFirewallRule() throws IOException {
+ respondWith(FIREWALL_RULE_UPDATE);
+ FirewallRuleUpdate update = Builders.firewallRuleUpdate()
+ .shared(Boolean.FALSE).enabled(Boolean.FALSE)
+ .description("Test-Firewall-Update").build();
+
+ FirewallRule result = osv3().networking().firewalls().firewallrule().update("8722e0e0-9cc9-4490-9660-8c9a5732fbb0", update);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated FirewallRule : " + result);
+
+ assertEquals("Sample-Firewall-Rule-Update", result.getDescription());
+ assertEquals(result.getAction(), NeutronFirewallRule.FirewallRuleAction.DENY);
+ }
+
+ public void testDeleteFirewallRule() {
+ respondWith(200);
+ ActionResponse result = osv3().networking().firewalls().firewallrule().delete("8722e0e0-9cc9-4490-9660-8c9a5732fbb0");
+ assertTrue(result.isSuccess());
+ }
+
+ @Override
+ protected Service service() {
+ return Service.NETWORK;
+ }
}
diff --git a/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallTests.java b/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallTests.java
index 1522c73ce..0a118bc9f 100644
--- a/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/network/firewalls/FirewallTests.java
@@ -1,14 +1,6 @@
package org.openstack4j.api.network.firewalls;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertFalse;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.logging.Logger;
-
+import com.google.common.base.Preconditions;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -17,73 +9,77 @@
import org.openstack4j.openstack.networking.domain.ext.NeutronFirewall.FirewallStatus;
import org.testng.annotations.Test;
-import com.google.common.base.Preconditions;
+import java.io.IOException;
+import java.util.List;
+import java.util.logging.Logger;
+
+import static org.testng.Assert.*;
/**
* Test suite for Firewall As a Service : Firewall {@link Firewall} (FwaaS)
- *
+ *
* @author Vishvesh Deshmukh
*/
-@Test(suiteName="Network/Firewall", enabled = false)
+@Test(suiteName = "Network/Firewall", enabled = false)
public class FirewallTests extends AbstractTest {
-
- private static final String FIREWALL = "/network/firewalls/firewall.json";
- private static final String FIREWALLS = "/network/firewalls/firewalls.json";
- private static final String FIREWALL_UPDATE = "/network/firewalls/firewallupdate.json";
-
- public void testListFirewalls() throws IOException {
- respondWith(FIREWALLS);
- List extends Firewall> list = osv3().networking().firewalls().firewall().list();
- assertEquals(1, list.size());
- Preconditions.checkNotNull(list.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Firewall from List : "+list.get(0));
- assertEquals(list.get(0).getId(), "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977");
- }
-
- public void testGetFirewall() throws IOException {
- respondWith(FIREWALL);
- String id = "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977";
- Firewall firewall = osv3().networking().firewalls().firewall().get(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Firewall by ID : "+firewall);
- assertNotNull(firewall);
- assertEquals(id, firewall.getId());
- assertEquals(FirewallStatus.ACTIVE, firewall.getStatus());
- }
-
- public void testCreateFirewall() throws IOException {
- respondWith(FIREWALL);
- Firewall create = Builders.firewall().adminStateUp(true)
- .description("Sample-Description").name("Sample-Firewall")
- .policy("c69933c1-b472-44f9-8226-30dc4ffd454c").shared(true)
- .tenantId("45977fa2dbd7482098dd68d0d8970117").build();
- Firewall result = osv3().networking().firewalls().firewall().create(create);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Firewall : "+result);
-
- assertEquals("Sample-Firewall", result.getName());
- assertEquals(Boolean.TRUE, result.isAdminStateUp());
- }
-
- public void testUpdateFirewall() throws IOException {
- respondWith(FIREWALL_UPDATE);
- FirewallUpdate update = Builders.firewallUpdate().adminStateUp(false)
- .description("Test-Firewall-Update").build();
-
- Firewall result = osv3().networking().firewalls().firewall().update("3b0ef8f4-82c7-44d4-a4fb-6177f9a21977", update);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated Firewall : "+result);
-
- assertEquals("Test-Firewall-Update", result.getDescription());
- assertFalse(result.isAdminStateUp());
- }
-
- public void testDeleteFirewall() {
- respondWith(200);
- ActionResponse result = osv3().networking().firewalls().firewall().delete("3b0ef8f4-82c7-44d4-a4fb-6177f9a21977");
- assertTrue(result.isSuccess());
- }
- @Override
- protected Service service() {
- return Service.NETWORK;
- }
+ private static final String FIREWALL = "/network/firewalls/firewall.json";
+ private static final String FIREWALLS = "/network/firewalls/firewalls.json";
+ private static final String FIREWALL_UPDATE = "/network/firewalls/firewallupdate.json";
+
+ public void testListFirewalls() throws IOException {
+ respondWith(FIREWALLS);
+ List extends Firewall> list = osv3().networking().firewalls().firewall().list();
+ assertEquals(1, list.size());
+ Preconditions.checkNotNull(list.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Firewall from List : " + list.get(0));
+ assertEquals(list.get(0).getId(), "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977");
+ }
+
+ public void testGetFirewall() throws IOException {
+ respondWith(FIREWALL);
+ String id = "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977";
+ Firewall firewall = osv3().networking().firewalls().firewall().get(id);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Firewall by ID : " + firewall);
+ assertNotNull(firewall);
+ assertEquals(id, firewall.getId());
+ assertEquals(FirewallStatus.ACTIVE, firewall.getStatus());
+ }
+
+ public void testCreateFirewall() throws IOException {
+ respondWith(FIREWALL);
+ Firewall create = Builders.firewall().adminStateUp(true)
+ .description("Sample-Description").name("Sample-Firewall")
+ .policy("c69933c1-b472-44f9-8226-30dc4ffd454c").shared(true)
+ .tenantId("45977fa2dbd7482098dd68d0d8970117").build();
+ Firewall result = osv3().networking().firewalls().firewall().create(create);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Firewall : " + result);
+
+ assertEquals("Sample-Firewall", result.getName());
+ assertEquals(Boolean.TRUE, result.isAdminStateUp());
+ }
+
+ public void testUpdateFirewall() throws IOException {
+ respondWith(FIREWALL_UPDATE);
+ FirewallUpdate update = Builders.firewallUpdate().adminStateUp(false)
+ .description("Test-Firewall-Update").build();
+
+ Firewall result = osv3().networking().firewalls().firewall().update("3b0ef8f4-82c7-44d4-a4fb-6177f9a21977", update);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated Firewall : " + result);
+
+ assertEquals("Test-Firewall-Update", result.getDescription());
+ assertFalse(result.isAdminStateUp());
+ }
+
+ public void testDeleteFirewall() {
+ respondWith(200);
+ ActionResponse result = osv3().networking().firewalls().firewall().delete("3b0ef8f4-82c7-44d4-a4fb-6177f9a21977");
+ assertTrue(result.isSuccess());
+ }
+
+ @Override
+ protected Service service() {
+ return Service.NETWORK;
+ }
}
diff --git a/core-test/src/main/java/org/openstack4j/api/octavia/HealthMonitorV2Tests.java b/core-test/src/main/java/org/openstack4j/api/octavia/HealthMonitorV2Tests.java
index ccc0779f5..5ebbead61 100644
--- a/core-test/src/main/java/org/openstack4j/api/octavia/HealthMonitorV2Tests.java
+++ b/core-test/src/main/java/org/openstack4j/api/octavia/HealthMonitorV2Tests.java
@@ -13,16 +13,12 @@
import java.util.List;
import java.util.Map;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
- *
* @author wei
- *
*/
-@Test(suiteName="Octavia/healthMonitor", enabled = true)
+@Test(suiteName = "Octavia/healthMonitor", enabled = true)
public class HealthMonitorV2Tests extends AbstractTest {
private static final String HEALTHMONITORSV2_JSON = "/octavia/healthmonitorsv2.json";
private static final String HEALTHMONITORV2_JSON = "/octavia/healthmonitorv2.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/octavia/LbPoolV2Tests.java b/core-test/src/main/java/org/openstack4j/api/octavia/LbPoolV2Tests.java
index ef02bec2f..6840bf208 100644
--- a/core-test/src/main/java/org/openstack4j/api/octavia/LbPoolV2Tests.java
+++ b/core-test/src/main/java/org/openstack4j/api/octavia/LbPoolV2Tests.java
@@ -14,17 +14,12 @@
import java.util.List;
import java.util.Map;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertFalse;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
- *
* @author wei
- *
*/
-@Test(suiteName="Octavia/lbpoolv2", enabled=true)
+@Test(suiteName = "Octavia/lbpoolv2", enabled = true)
public class LbPoolV2Tests extends AbstractTest {
private static final String LBPOOLSV2_JSON = "/octavia/lbpoolsv2.json";
private static final String LBPOOLV2_JSON = "/octavia/lbpoolv2.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/octavia/ListenerV2Tests.java b/core-test/src/main/java/org/openstack4j/api/octavia/ListenerV2Tests.java
index 396a9181e..4b60d2c9e 100644
--- a/core-test/src/main/java/org/openstack4j/api/octavia/ListenerV2Tests.java
+++ b/core-test/src/main/java/org/openstack4j/api/octavia/ListenerV2Tests.java
@@ -4,9 +4,9 @@
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
+import org.openstack4j.model.octavia.ListenerProtocol;
import org.openstack4j.model.octavia.ListenerV2;
import org.openstack4j.model.octavia.ListenerV2Update;
-import org.openstack4j.model.octavia.ListenerProtocol;
import org.testng.annotations.Test;
import java.io.IOException;
@@ -14,17 +14,12 @@
import java.util.List;
import java.util.Map;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertFalse;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
- *
* @author wei
- *
*/
-@Test(suiteName="Octavia/listener", enabled = true)
+@Test(suiteName = "Octavia/listener", enabled = true)
public class ListenerV2Tests extends AbstractTest {
private static final String LISTENERSV2_JSON = "/octavia/listenersv2.json";
private static final String LISTENERV2_JSON = "/octavia/listenerv2.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/octavia/LoadBalancerV2Tests.java b/core-test/src/main/java/org/openstack4j/api/octavia/LoadBalancerV2Tests.java
index bbd961d64..b8423cbf0 100644
--- a/core-test/src/main/java/org/openstack4j/api/octavia/LoadBalancerV2Tests.java
+++ b/core-test/src/main/java/org/openstack4j/api/octavia/LoadBalancerV2Tests.java
@@ -15,17 +15,12 @@
import java.util.List;
import java.util.Map;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.*;
/**
- *
* @author wei
- *
*/
-@Test(suiteName="Octavia/loadBalancerV2", enabled = true)
+@Test(suiteName = "Octavia/loadBalancerV2", enabled = true)
public class LoadBalancerV2Tests extends AbstractTest {
private static final String LOADBALANCERSV2_JSON = "/octavia/loadbalancersv2.json";
private static final String LOADBALANCERV2_JSON = "/octavia/loadbalancerv2.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/octavia/MemberV2Tests.java b/core-test/src/main/java/org/openstack4j/api/octavia/MemberV2Tests.java
index 6b3a451f9..a8e34140d 100644
--- a/core-test/src/main/java/org/openstack4j/api/octavia/MemberV2Tests.java
+++ b/core-test/src/main/java/org/openstack4j/api/octavia/MemberV2Tests.java
@@ -1,4 +1,5 @@
package org.openstack4j.api.octavia;
+
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -11,17 +12,12 @@
import java.util.List;
import java.util.Map;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.*;
/**
- *
* @author wei
- *
*/
-@Test(suiteName="Octavia/memberV2", enabled = true)
+@Test(suiteName = "Octavia/memberV2", enabled = true)
public class MemberV2Tests extends AbstractTest {
private static final String MEMBERSV2_JSON = "/octavia/membersv2.json";
private static final String MEMBERV2_JSON = "/octavia/memberv2.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/sahara/ClusterTests.java b/core-test/src/main/java/org/openstack4j/api/sahara/ClusterTests.java
index af2047186..ef871e3fc 100644
--- a/core-test/src/main/java/org/openstack4j/api/sahara/ClusterTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/sahara/ClusterTests.java
@@ -1,25 +1,22 @@
package org.openstack4j.api.sahara;
+import okhttp3.mockwebserver.RecordedRequest;
+import org.openstack4j.api.AbstractTest;
+import org.openstack4j.api.Builders;
import org.openstack4j.model.sahara.Cluster;
import org.openstack4j.model.sahara.NodeGroup;
import org.openstack4j.model.sahara.ServiceConfig;
+import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
-import org.openstack4j.api.AbstractTest;
-import org.openstack4j.api.Builders;
-import org.testng.Assert;
-import org.testng.annotations.Test;
-
-import okhttp3.mockwebserver.RecordedRequest;
-
/**
* Test cases for Server based Services
- *
+ *
* @author Ekasit Kijsipongse
*/
-@Test(suiteName="Sahara/Cluster")
+@Test(suiteName = "Sahara/Cluster")
public class ClusterTests extends AbstractTest {
private static final String JSON_CLUSTER_CREATE_REQUEST = "/sahara/cluster_create_req.json";
@@ -31,36 +28,36 @@ public void createCluster() throws Exception {
// Create a new cluster from node group template
NodeGroup workerGroup = Builders.nodeGroup().name("worker")
- .count(2)
- .flavor("ef7f4d7f-267f-4762-abe2-729fe350256c")
- .nodeGroupTemplateId("f78dda4d-17e1-48cd-ab85-ee56261382ef")
- .build();
+ .count(2)
+ .flavor("ef7f4d7f-267f-4762-abe2-729fe350256c")
+ .nodeGroupTemplateId("f78dda4d-17e1-48cd-ab85-ee56261382ef")
+ .build();
NodeGroup masterGroup = Builders.nodeGroup().name("master")
- .count(1)
- .flavor("ef7f4d7f-267f-4762-abe2-729fe350256c")
- .nodeGroupTemplateId("0febf422-98ee-47e6-a1c5-60f90f1f9c96")
- .build();
+ .count(1)
+ .flavor("ef7f4d7f-267f-4762-abe2-729fe350256c")
+ .nodeGroupTemplateId("0febf422-98ee-47e6-a1c5-60f90f1f9c96")
+ .build();
ServiceConfig hdfsConf = Builders.serviceConfig()
- .set("dfs.replication",1)
- .build();
+ .set("dfs.replication", 1)
+ .build();
ServiceConfig sparkConf = Builders.serviceConfig()
- .set("spark.executor.memory","1g")
- .set("spark.executor.cores",2)
- .build();
+ .set("spark.executor.memory", "1g")
+ .set("spark.executor.cores", 2)
+ .build();
Cluster cluster = Builders.cluster().name("cluster-test-1")
- .hadoopVersion("1.6.2")
- .pluginName("spark")
- .image("f56cc7c5-9588-49fa-8bcd-5c5d5eda5466")
- .keypairName("tester")
- .managementNetworkId("4c065f9c-ad1b-43c4-ba1e-893d330da079")
- .addNodeGroup(workerGroup)
- .addNodeGroup(masterGroup)
- .addServiceConfig("HDFS",hdfsConf)
- .addServiceConfig("Spark",sparkConf)
- .build();
+ .hadoopVersion("1.6.2")
+ .pluginName("spark")
+ .image("f56cc7c5-9588-49fa-8bcd-5c5d5eda5466")
+ .keypairName("tester")
+ .managementNetworkId("4c065f9c-ad1b-43c4-ba1e-893d330da079")
+ .addNodeGroup(workerGroup)
+ .addNodeGroup(masterGroup)
+ .addServiceConfig("HDFS", hdfsConf)
+ .addServiceConfig("Spark", sparkConf)
+ .build();
cluster = osv2().sahara().clusters().create(cluster);
@@ -91,5 +88,4 @@ protected Service service() {
}
-
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ActionServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ActionServiceTest.java
index 6bde62bdd..6e2d07c6c 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ActionServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ActionServiceTest.java
@@ -16,31 +16,33 @@
*
* @author lion
*/
-@Test(suiteName="senlin/action")
+@Test(suiteName = "senlin/action")
public class ActionServiceTest extends AbstractTest {
- private static final String ACTIONS="/senlin/v1/actions.json";
- private static final String ACTION="/senlin/v1/action.json";
+ private static final String ACTIONS = "/senlin/v1/actions.json";
+ private static final String ACTION = "/senlin/v1/action.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListAction() throws Exception{
+ public void testListAction() throws Exception {
respondWith(ACTIONS);
List extends Action> actionList = osv3().senlin().action().list();
assertEquals(4, actionList.size());
Preconditions.checkNotNull(actionList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Action from List : "+ actionList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Action from List : " + actionList.get(0));
assertEquals(actionList.get(0).getId(), "1ac0a47b-06de-44cd-a014-79981f1dec19");
}
+
@Test
- public void testGetAction() throws Exception{
+ public void testGetAction() throws Exception {
respondWith(ACTION);
String actionID = "ffbb9175-d510-4bc1-b676-c6aba2a4ca81";
Action action = osv3().senlin().action().get(actionID);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Action by ID : "+ action);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Action by ID : " + action);
assertNotNull(action);
assertEquals(actionID, action.getId());
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/BuildInfoServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/BuildInfoServiceTest.java
index 77818291a..a5615baef 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/BuildInfoServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/BuildInfoServiceTest.java
@@ -13,20 +13,21 @@
*
* @author lion
*/
-@Test(suiteName="senlin/buildInfo")
+@Test(suiteName = "senlin/buildInfo")
public class BuildInfoServiceTest extends AbstractTest {
- private static final String BUILDINFO="/senlin/v1/build_info.json";
+ private static final String BUILDINFO = "/senlin/v1/build_info.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testGetAction() throws Exception{
+ public void testGetAction() throws Exception {
respondWith(BUILDINFO);
BuildInfo buildInfo = osv3().senlin().buildInfo().get();
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : BuildInfo : "+ buildInfo);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : BuildInfo : " + buildInfo);
assertNotNull(buildInfo);
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterPolicyServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterPolicyServiceTest.java
index 008771a7d..c53c08e4d 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterPolicyServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterPolicyServiceTest.java
@@ -16,32 +16,34 @@
*
* @author lion
*/
-@Test(suiteName="senlin/clusterPolicy")
+@Test(suiteName = "senlin/clusterPolicy")
public class ClusterPolicyServiceTest extends AbstractTest {
- private static final String CLUSTERPOLICYS="/senlin/v1/cluster_policies.json";
- private static final String CLUSTERPOLICY="/senlin/v1/cluster_policy.json";
+ private static final String CLUSTERPOLICYS = "/senlin/v1/cluster_policies.json";
+ private static final String CLUSTERPOLICY = "/senlin/v1/cluster_policy.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListClusterPolicy() throws Exception{
+ public void testListClusterPolicy() throws Exception {
respondWith(CLUSTERPOLICYS);
List extends ClusterPolicy> clusterPolicyList = osv3().senlin().clusterPolicy().list("7d85f602-a948-4a30-afd4-e84f47471c15");
assertEquals(2, clusterPolicyList.size());
Preconditions.checkNotNull(clusterPolicyList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ClusterPolicy from List : "+ clusterPolicyList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ClusterPolicy from List : " + clusterPolicyList.get(0));
assertEquals(clusterPolicyList.get(0).getId(), "06be3a1f-b238-4a96-a737-ceec5714087e");
}
+
@Test
- public void testGetClusterPolicy() throws Exception{
+ public void testGetClusterPolicy() throws Exception {
respondWith(CLUSTERPOLICY);
String clusterID = "7d85f602-a948-4a30-afd4-e84f47471c15";
String policyID = "714fe676-a08f-4196-b7af-61d52eeded15";
ClusterPolicy clusterPolicy = osv3().senlin().clusterPolicy().get(clusterID, policyID);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ClusterPolicy by ID : "+ clusterPolicy);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ClusterPolicy by ID : " + clusterPolicy);
assertNotNull(clusterPolicy);
assertEquals("06be3a1f-b238-4a96-a737-ceec5714087e", clusterPolicy.getId());
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterServiceTest.java
index 7219ee72c..f804b0b74 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ClusterServiceTest.java
@@ -15,46 +15,47 @@
import java.util.List;
import java.util.logging.Logger;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
* Test cases for cluster on Senlin
*
* @author lion
*/
-@Test(suiteName="senlin/cluster")
+@Test(suiteName = "senlin/cluster")
public class ClusterServiceTest extends AbstractTest {
- private static final String CLUSTERS="/senlin/v1/clusters.json";
- private static final String CLUSTER="/senlin/v1/cluster.json";
- private static final String RASPACTION="/senlin/v1/resp_action.json";
- private static final String ID="45edadcb-c73b-4920-87e1-518b2f29f54b";
+ private static final String CLUSTERS = "/senlin/v1/clusters.json";
+ private static final String CLUSTER = "/senlin/v1/cluster.json";
+ private static final String RASPACTION = "/senlin/v1/resp_action.json";
+ private static final String ID = "45edadcb-c73b-4920-87e1-518b2f29f54b";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListCluster() throws Exception{
+ public void testListCluster() throws Exception {
respondWith(CLUSTERS);
List extends Cluster> clusterList = osv3().senlin().cluster().list();
assertEquals(4, clusterList.size());
Preconditions.checkNotNull(clusterList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Cluster from List : "+clusterList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Cluster from List : " + clusterList.get(0));
assertEquals(clusterList.get(0).getId(), "7e0c9843-54bf-4823-b545-d2f6ffb4ed25");
}
+
@Test
- public void testGetCluster() throws Exception{
+ public void testGetCluster() throws Exception {
respondWith(CLUSTER);
Cluster cluster = osv3().senlin().cluster().get(ID);
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Cluster by ID : " + cluster);
assertNotNull(cluster);
assertEquals(ID, cluster.getId());
}
+
@Test
- public void testCreateCluster() throws Exception{
+ public void testCreateCluster() throws Exception {
respondWith(CLUSTER);
String clusterName = "test_cluster";
ClusterCreate newCluster = new SenlinClusterCreate();
@@ -64,8 +65,9 @@ public void testCreateCluster() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Cluster : " + cluster);
assertEquals(clusterName, cluster.getName());
}
+
@Test
- public void testUpdateCluster() throws Exception{
+ public void testUpdateCluster() throws Exception {
respondWith(CLUSTER);
String clusterName = "test_cluster";
ClusterCreate newCluster = new SenlinClusterCreate();
@@ -77,14 +79,16 @@ public void testUpdateCluster() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated Cluster : " + cluster);
assertEquals(clusterName, cluster.getName());
}
+
@Test
public void testDeleteCluster() {
respondWith(200);
ActionResponse result = osv3().senlin().cluster().delete(ID);
assertTrue(result.isSuccess());
}
+
@Test
- public void testNodeAction() throws Exception{
+ public void testNodeAction() throws Exception {
respondWith(RASPACTION);
ClusterActionCreate newClusterAction = new SenlinClusterActionCreate();
newClusterAction.toBuilder().check(new HashMap());
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/EventServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/EventServiceTest.java
index ad9b78499..281e46ab9 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/EventServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/EventServiceTest.java
@@ -16,31 +16,33 @@
*
* @author lion
*/
-@Test(suiteName="senlin/event")
+@Test(suiteName = "senlin/event")
public class EventServiceTest extends AbstractTest {
- private static final String EVENTS="/senlin/v1/events.json";
- private static final String EVENT="/senlin/v1/event.json";
+ private static final String EVENTS = "/senlin/v1/events.json";
+ private static final String EVENT = "/senlin/v1/event.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListEvent() throws Exception{
+ public void testListEvent() throws Exception {
respondWith(EVENTS);
List extends Event> eventList = osv3().senlin().event().list();
assertEquals(4, eventList.size());
Preconditions.checkNotNull(eventList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Event from List : "+ eventList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Event from List : " + eventList.get(0));
assertEquals(eventList.get(0).getId(), "b6d7b823-1811-492b-8a54-fb15a5a0bafe");
}
+
@Test
- public void testGetEvent() throws Exception{
+ public void testGetEvent() throws Exception {
respondWith(EVENT);
String enentID = "2d255b9c-8f36-41a2-a137-c0175ccc29c3";
Event event = osv3().senlin().event().get(enentID);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Event by ID : "+ event);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Event by ID : " + event);
assertNotNull(event);
assertEquals(enentID, event.getId());
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/NodeServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/NodeServiceTest.java
index d2fbc7b2c..872acc89b 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/NodeServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/NodeServiceTest.java
@@ -15,46 +15,47 @@
import java.util.List;
import java.util.logging.Logger;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
* Test cases for node on Senlin
*
* @author lion
*/
-@Test(suiteName="senlin/node")
+@Test(suiteName = "senlin/node")
public class NodeServiceTest extends AbstractTest {
- private static final String NODES="/senlin/v1/nodes.json";
- private static final String NODE="/senlin/v1/node.json";
- private static final String RASPACTION="/senlin/v1/resp_action.json";
- private static final String ID="d5779bb0-f0a0-49c9-88cc-6f078adb5a0b";
+ private static final String NODES = "/senlin/v1/nodes.json";
+ private static final String NODE = "/senlin/v1/node.json";
+ private static final String RASPACTION = "/senlin/v1/resp_action.json";
+ private static final String ID = "d5779bb0-f0a0-49c9-88cc-6f078adb5a0b";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListNode() throws Exception{
+ public void testListNode() throws Exception {
respondWith(NODES);
List extends Node> nodeList = osv3().senlin().node().list();
assertEquals(3, nodeList.size());
Preconditions.checkNotNull(nodeList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Node from List : "+nodeList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Node from List : " + nodeList.get(0));
assertEquals(nodeList.get(0).getId(), "d3451489-708b-4bd0-a147-a0c02dd9cb00");
}
+
@Test
- public void testGetNode() throws Exception{
+ public void testGetNode() throws Exception {
respondWith(NODE);
Node node = osv3().senlin().node().get(ID);
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Node by ID : " + node);
assertNotNull(node);
assertEquals(ID, node.getId());
}
+
@Test
- public void testCreateNode() throws Exception{
+ public void testCreateNode() throws Exception {
respondWith(NODE);
String nodeName = "node1";
NodeCreate newNode = new SenlinNodeCreate();
@@ -64,8 +65,9 @@ public void testCreateNode() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Node : " + node);
assertEquals(nodeName, node.getName());
}
+
@Test
- public void testUpdateNode() throws Exception{
+ public void testUpdateNode() throws Exception {
respondWith(NODE);
String nodeName = "node1";
NodeCreate newNode = new SenlinNodeCreate();
@@ -75,14 +77,16 @@ public void testUpdateNode() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated Node : " + node);
assertEquals(nodeName, node.getName());
}
+
@Test
public void testDeleteNode() {
respondWith(200);
ActionResponse result = osv3().senlin().node().delete(ID);
assertTrue(result.isSuccess());
}
+
@Test
- public void testNodeAction() throws Exception{
+ public void testNodeAction() throws Exception {
respondWith(RASPACTION);
NodeActionCreate newNodeAction = new SenlinNodeActionCreate();
newNodeAction.toBuilder().check(new HashMap());
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyServiceTest.java
index 3a08e5c4d..eda734a13 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyServiceTest.java
@@ -11,45 +11,46 @@
import java.util.List;
import java.util.logging.Logger;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
* Test cases for policy on Senlin
*
* @author lion
*/
-@Test(suiteName="senlin/policy")
+@Test(suiteName = "senlin/policy")
public class PolicyServiceTest extends AbstractTest {
- private static final String POLICYS="/senlin/v1/policies.json";
- private static final String POLICY="/senlin/v1/policy.json";
-
+ private static final String POLICYS = "/senlin/v1/policies.json";
+ private static final String POLICY = "/senlin/v1/policy.json";
+
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListPolicy() throws Exception{
+ public void testListPolicy() throws Exception {
respondWith(POLICYS);
List extends Policy> policyList = osv3().senlin().policy().list();
assertEquals(9, policyList.size());
Preconditions.checkNotNull(policyList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Policy from List : "+policyList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Policy from List : " + policyList.get(0));
assertEquals(policyList.get(0).getId(), "be24729e-c60c-4f06-9ba4-2d3872c23199");
}
+
@Test
- public void testGetPolicy() throws Exception{
+ public void testGetPolicy() throws Exception {
respondWith(POLICY);
String id = "3ad6a92c-f969-4d69-8a83-0301f319fc78";
Policy policy = osv3().senlin().policy().get(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Policy by ID : "+ policy);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Policy by ID : " + policy);
assertNotNull(policy);
assertEquals(id, policy.getId());
}
+
@Test
- public void testCreatePolicy() throws Exception{
+ public void testCreatePolicy() throws Exception {
respondWith(POLICY);
String policyName = "lion-policy123";
PolicyCreate newPolicy = new SenlinPolicyCreate();
@@ -59,19 +60,21 @@ public void testCreatePolicy() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Policy : " + policy);
assertEquals(policyName, policy.getName());
}
+
@Test
- public void testUpdatePolicy() throws Exception{
+ public void testUpdatePolicy() throws Exception {
respondWith(POLICY);
String id = "3ad6a92c-f969-4d69-8a83-0301f319fc78";
String policyName = "lion-policy123";
PolicyCreate newPolicy = new SenlinPolicyCreate();
newPolicy.toBuilder()
.name(policyName);
- Policy policy =osv3().senlin().policy().update(id, newPolicy);
+ Policy policy = osv3().senlin().policy().update(id, newPolicy);
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated Policy : " + policy);
assertEquals(policyName, policy.getName());
}
+
@Test
public void testDeletePolicy() {
respondWith(200);
@@ -80,6 +83,5 @@ public void testDeletePolicy() {
assertTrue(result.isSuccess());
}
-
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyTypeServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyTypeServiceTest.java
index 4d0122a09..974a58823 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyTypeServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/PolicyTypeServiceTest.java
@@ -16,30 +16,32 @@
*
* @author lion
*/
-@Test(suiteName="senlin/policyType")
+@Test(suiteName = "senlin/policyType")
public class PolicyTypeServiceTest extends AbstractTest {
- private static final String POLICYTYPES="/senlin/v1/policy_types.json";
- private static final String POLICYTYPE="/senlin/v1/policy_type.json";
+ private static final String POLICYTYPES = "/senlin/v1/policy_types.json";
+ private static final String POLICYTYPE = "/senlin/v1/policy_type.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListPolicyType() throws Exception{
+ public void testListPolicyType() throws Exception {
respondWith(POLICYTYPES);
List extends PolicyType> policyTypeList = osv3().senlin().policyType().list();
assertEquals(6, policyTypeList.size());
Preconditions.checkNotNull(policyTypeList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : PolicyType from List : "+ policyTypeList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : PolicyType from List : " + policyTypeList.get(0));
assertEquals(policyTypeList.get(0).getName(), "ScalingPolicy");
}
+
@Test
- public void testGetPolicyType() throws Exception{
+ public void testGetPolicyType() throws Exception {
respondWith(POLICYTYPE);
PolicyType policyType = osv3().senlin().policyType().get("senlin.policy.deletion");
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : PolicyType by name : "+ policyType);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : PolicyType by name : " + policyType);
assertNotNull(policyType);
assertEquals("senlin.policy.deletion", policyType.getName());
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileServiceTest.java
index 913ceee96..e7ed795f4 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileServiceTest.java
@@ -11,45 +11,46 @@
import java.util.List;
import java.util.logging.Logger;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
* Test cases for profile on Senlin
*
* @author lion
*/
-@Test(suiteName="senlin/profile")
+@Test(suiteName = "senlin/profile")
public class ProfileServiceTest extends AbstractTest {
- private static final String PROFILES="/senlin/v1/profiles.json";
- private static final String PROFILE="/senlin/v1/profile.json";
- private static final String ID="dc89e919-91f5-4733-81b0-91257c24bba1";
+ private static final String PROFILES = "/senlin/v1/profiles.json";
+ private static final String PROFILE = "/senlin/v1/profile.json";
+ private static final String ID = "dc89e919-91f5-4733-81b0-91257c24bba1";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListProfile() throws Exception{
+ public void testListProfile() throws Exception {
respondWith(PROFILES);
List extends Profile> profileList = osv3().senlin().profile().list();
assertEquals(4, profileList.size());
Preconditions.checkNotNull(profileList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Profile from List : "+profileList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Profile from List : " + profileList.get(0));
assertEquals(profileList.get(0).getId(), "ddf94acb-492a-41cb-a278-9ba7fbb31bb7");
}
+
@Test
- public void testGetProfile() throws Exception{
+ public void testGetProfile() throws Exception {
respondWith(PROFILE);
Profile profile = osv3().senlin().profile().get(ID);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Profile by ID : "+ profile);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Profile by ID : " + profile);
assertNotNull(profile);
assertEquals(ID, profile.getId());
}
+
@Test
- public void testCreateProfile() throws Exception{
+ public void testCreateProfile() throws Exception {
respondWith(PROFILE);
String profileName = "lion-test";
ProfileCreate newProfile = new SenlinProfileCreate();
@@ -59,18 +60,20 @@ public void testCreateProfile() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Profile : " + profile);
assertEquals(profileName, profile.getName());
}
+
@Test
- public void testUpdateProfile() throws Exception{
+ public void testUpdateProfile() throws Exception {
respondWith(PROFILE);
String profileName = "lion-test";
ProfileCreate newProfile = new SenlinProfileCreate();
newProfile.toBuilder()
.name(profileName);
- Profile profile =osv3().senlin().profile().update(ID, newProfile);
+ Profile profile = osv3().senlin().profile().update(ID, newProfile);
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Updated Profile : " + profile);
assertEquals(profileName, profile.getName());
}
+
@Test
public void testDeleteProfile() {
respondWith(200);
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileTypeServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileTypeServiceTest.java
index 2665e2241..4332fdc72 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileTypeServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ProfileTypeServiceTest.java
@@ -16,30 +16,32 @@
*
* @author lion
*/
-@Test(suiteName="senlin/profileType")
+@Test(suiteName = "senlin/profileType")
public class ProfileTypeServiceTest extends AbstractTest {
- private static final String PROFILETYPES="/senlin/v1/profile_types.json";
- private static final String PROFILETYPE="/senlin/v1/profile_type.json";
+ private static final String PROFILETYPES = "/senlin/v1/profile_types.json";
+ private static final String PROFILETYPE = "/senlin/v1/profile_type.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListProfileType() throws Exception{
+ public void testListProfileType() throws Exception {
respondWith(PROFILETYPES);
List extends ProfileType> profileTypeList = osv3().senlin().profileType().list();
assertEquals(3, profileTypeList.size());
Preconditions.checkNotNull(profileTypeList.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ProfileType from List : "+ profileTypeList.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ProfileType from List : " + profileTypeList.get(0));
assertEquals(profileTypeList.get(0).getName(), "os.heat.stack");
}
+
@Test
- public void testGetProfileType() throws Exception{
+ public void testGetProfileType() throws Exception {
respondWith(PROFILETYPE);
ProfileType profileType = osv3().senlin().profileType().get("os.heat.stack");
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ProfileType by name : "+ profileType);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : ProfileType by name : " + profileType);
assertNotNull(profileType);
assertEquals("os.heat.stack", profileType.getName());
}
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ReceiverServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ReceiverServiceTest.java
index d2784d8b3..4a9333ce3 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/ReceiverServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/ReceiverServiceTest.java
@@ -11,28 +11,27 @@
import java.util.List;
import java.util.logging.Logger;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
+import static org.testng.Assert.*;
/**
* Test cases for receiver on Senlin
*
* @author lion
*/
-@Test(suiteName="senlin/receiver")
+@Test(suiteName = "senlin/receiver")
public class ReceiverServiceTest extends AbstractTest {
- private static final String RECEIVERS="/senlin/v1/receivers.json";
- private static final String RECEIVER="/senlin/v1/receiver.json";
- private static final String ID="573aa1ba-bf45-49fd-907d-6b5d6e6adfd3";
+ private static final String RECEIVERS = "/senlin/v1/receivers.json";
+ private static final String RECEIVER = "/senlin/v1/receiver.json";
+ private static final String ID = "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListReceiver() throws Exception{
+ public void testListReceiver() throws Exception {
respondWith(RECEIVERS);
List extends Receiver> receiverList = osv3().senlin().receiver().list();
assertEquals(5, receiverList.size());
@@ -40,16 +39,18 @@ public void testListReceiver() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Receiver from List : " + receiverList.get(0));
assertEquals(receiverList.get(0).getId(), "05f72ca7-d0cd-4e9c-9f84-caec408e7580");
}
+
@Test
- public void testGetReceiver() throws Exception{
+ public void testGetReceiver() throws Exception {
respondWith(RECEIVER);
Receiver receiver = osv3().senlin().receiver().get(ID);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Receiver by ID : "+ receiver);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Receiver by ID : " + receiver);
assertNotNull(receiver);
assertEquals(ID, receiver.getId());
}
+
@Test
- public void testCreateReceiver() throws Exception{
+ public void testCreateReceiver() throws Exception {
respondWith(RECEIVER);
String receiverName = "cluster_inflate";
ReceiverCreate newReceiver = new SenlinReceiverCreate();
@@ -59,6 +60,7 @@ public void testCreateReceiver() throws Exception{
Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Receiver : " + receiver);
assertEquals(receiverName, receiver.getName());
}
+
@Test
public void testDeleteReceiver() {
respondWith(200);
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/VersionServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/VersionServiceTest.java
index f53061a58..de03ca67b 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/VersionServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/VersionServiceTest.java
@@ -15,17 +15,18 @@
*
* @author lion
*/
-@Test(suiteName="senlin/version")
+@Test(suiteName = "senlin/version")
public class VersionServiceTest extends AbstractTest {
- private static final String VERSIONS="/senlin/version.json";
+ private static final String VERSIONS = "/senlin/version.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testListVersion() throws Exception{
+ public void testListVersion() throws Exception {
respondWith(VERSIONS);
List extends Version> versionList = osv3().senlin().version().list();
assertEquals(1, versionList.size());
diff --git a/core-test/src/main/java/org/openstack4j/api/senlin/v1/WebHookServiceTest.java b/core-test/src/main/java/org/openstack4j/api/senlin/v1/WebHookServiceTest.java
index 6fdd1d723..069c0a723 100644
--- a/core-test/src/main/java/org/openstack4j/api/senlin/v1/WebHookServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/senlin/v1/WebHookServiceTest.java
@@ -8,22 +8,24 @@
import java.util.logging.Logger;
import static org.testng.Assert.assertEquals;
+
/**
* Test cases for webhook on Senlin
*
* @author lion
*/
-@Test(suiteName="senlin/webhook")
+@Test(suiteName = "senlin/webhook")
public class WebHookServiceTest extends AbstractTest {
- private static final String RASPACTION="/senlin/v1/resp_action.json";
+ private static final String RASPACTION = "/senlin/v1/resp_action.json";
@Override
protected Service service() {
return Service.CLUSTERING;
}
+
@Test
- public void testWebHook() throws Exception{
+ public void testWebHook() throws Exception {
respondWith(RASPACTION);
ActionID respAction = osv3().senlin().webHook().action("http://127.0.0.1:8778/v1/webhooks/51575fae-a83c-44ac-9214-337663dd04f9/trigger?V=1&count=1");
Preconditions.checkNotNull(respAction);
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/ObjectStorageTests.java b/core-test/src/main/java/org/openstack4j/api/storage/ObjectStorageTests.java
index 1504022ed..526050fe7 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/ObjectStorageTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/ObjectStorageTests.java
@@ -1,28 +1,25 @@
package org.openstack4j.api.storage;
-import static org.openstack4j.model.storage.object.SwiftHeaders.CONTAINER_METADATA_PREFIX;
-import static org.openstack4j.model.storage.object.SwiftHeaders.CONTENT_LENGTH;
-import static org.openstack4j.model.storage.object.SwiftHeaders.CONTENT_TYPE;
-import static org.openstack4j.model.storage.object.SwiftHeaders.ETAG;
-import static org.testng.Assert.*;
-
-import java.util.List;
-import java.util.Map;
-
+import com.google.common.collect.Maps;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.storage.object.SwiftContainer;
import org.openstack4j.model.storage.object.SwiftObject;
import org.testng.annotations.Test;
-import com.google.common.collect.Maps;
+import java.util.List;
+import java.util.Map;
+
+import static org.openstack4j.model.storage.object.SwiftHeaders.*;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertNotNull;
-@Test(suiteName="Object Storage Tests")
+@Test(suiteName = "Object Storage Tests")
public class ObjectStorageTests extends AbstractTest {
private static final String JSON_CONTAINERS = "/storage/containers.json";
private static final String NAME_BOOK = "Book";
private static final String NAME_YEAR = "Year";
-
+
@Override
protected Service service() {
return Service.OBJECT_STORAGE;
@@ -30,27 +27,27 @@ protected Service service() {
public void containerListingTest() throws Exception {
respondWith(JSON_CONTAINERS);
-
+
List extends SwiftContainer> containers = osv3().objectStorage().containers().list();
assertEquals(2, containers.size());
assertEquals(containers.get(0).getTotalSize(), 100);
assertEquals(containers.get(0).getName(), "Test");
assertEquals(containers.get(1).getName(), "marktwain");
}
-
+
public void containerMetadataTest() throws Exception {
respondWith(generateContainerMetadataMap(), 204);
-
+
Map metadata = osv3().objectStorage().containers().getMetadata("Test");
assertNotNull(metadata);
assertEquals(metadata.get(NAME_YEAR), "2000");
assertEquals(metadata.get(NAME_BOOK), "TestBook");
}
-
+
private Map generateContainerMetadataMap() {
Map metadata = Maps.newHashMap();
- metadata.put(CONTAINER_METADATA_PREFIX+NAME_BOOK, "TestBook");
- metadata.put(CONTAINER_METADATA_PREFIX+NAME_YEAR, "2000");
+ metadata.put(CONTAINER_METADATA_PREFIX + NAME_BOOK, "TestBook");
+ metadata.put(CONTAINER_METADATA_PREFIX + NAME_YEAR, "2000");
return metadata;
}
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/SchedulerStatsGetPoolTests.java b/core-test/src/main/java/org/openstack4j/api/storage/SchedulerStatsGetPoolTests.java
index 083719607..711b8a3aa 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/SchedulerStatsGetPoolTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/SchedulerStatsGetPoolTests.java
@@ -6,7 +6,8 @@
import java.util.List;
-import static org.testng.Assert.*;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
/**
@@ -14,7 +15,7 @@
*
* @author Chen guofeng gf.chen40@gmail.com
*/
-@Test(suiteName="SchedulerStatsGetPool")
+@Test(suiteName = "SchedulerStatsGetPool")
public class SchedulerStatsGetPoolTests extends AbstractTest {
private static final String JSON_SCHEDULER_STATS = "/storage/v2/cinder_scheduler-stats.json";
private static final String JSON_SCHEDULER_STATS_DETAIL = "/storage/v2/cinder_scheduler-stats_detail.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/ServiceTests.java b/core-test/src/main/java/org/openstack4j/api/storage/ServiceTests.java
index 39195dd73..d849444b0 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/ServiceTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/ServiceTests.java
@@ -1,41 +1,41 @@
package org.openstack4j.api.storage;
-import static org.testng.Assert.assertEquals;
-
-import java.util.List;
-
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.storage.block.ext.Service.State;
import org.openstack4j.model.storage.block.ext.Service.Status;
import org.testng.annotations.Test;
+import java.util.List;
+
+import static org.testng.Assert.assertEquals;
+
/**
* Test cases for Block Storage Services function
- *
+ *
* @author Taemin
*/
@Test(suiteName = "BlockStorageService")
public class ServiceTests extends AbstractTest {
- private static final String JSON_SERVICES = "/storage/ext/services.json";
+ private static final String JSON_SERVICES = "/storage/ext/services.json";
- public void serviceListingTest() throws Exception {
- respondWith(JSON_SERVICES);
+ public void serviceListingTest() throws Exception {
+ respondWith(JSON_SERVICES);
- List extends org.openstack4j.model.storage.block.ext.Service> services = osv3().blockStorage().services()
- .list();
+ List extends org.openstack4j.model.storage.block.ext.Service> services = osv3().blockStorage().services()
+ .list();
- org.openstack4j.model.storage.block.ext.Service s = services.get(0);
- assertEquals("cinder-scheduler", s.getBinary());
- assertEquals("host1", s.getHost());
- assertEquals(Status.ENABLED, s.getStatus());
- assertEquals(State.UP, s.getState());
- }
+ org.openstack4j.model.storage.block.ext.Service s = services.get(0);
+ assertEquals("cinder-scheduler", s.getBinary());
+ assertEquals("host1", s.getHost());
+ assertEquals(Status.ENABLED, s.getStatus());
+ assertEquals(State.UP, s.getState());
+ }
- @Override
- protected Service service() {
- return Service.BLOCK_STORAGE;
- }
+ @Override
+ protected Service service() {
+ return Service.BLOCK_STORAGE;
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/VolumeBackupTests.java b/core-test/src/main/java/org/openstack4j/api/storage/VolumeBackupTests.java
index 6b6ad5a8e..89d4d28fa 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/VolumeBackupTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/VolumeBackupTests.java
@@ -1,15 +1,6 @@
package org.openstack4j.api.storage;
-import static org.junit.Assert.assertFalse;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import okio.Buffer;
+import okhttp3.mockwebserver.RecordedRequest;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -18,188 +9,193 @@
import org.testng.Reporter;
import org.testng.annotations.Test;
-import okhttp3.mockwebserver.RecordedRequest;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import static org.junit.Assert.assertFalse;
+import static org.testng.Assert.*;
@Test(suiteName = "Block Storage Tests")
public class VolumeBackupTests extends AbstractTest {
- @Override
- protected Service service() {
- return Service.BLOCK_STORAGE;
- }
-
-
- @Test
- public void createVolumeBackupV1() throws Exception {
- respondWith("/storage/v1/volumebackup_create_response.json");
- final String name = "backup1122";
-
- VolumeBackupCreate create = Builders.volumeBackupCreate().volumeId("999b49ff-a813-45cc-aef3-3ec82f089490").container("container123")
- .description("description123").name(name).incremental(false).build();
- VolumeBackup backup = osv3().blockStorage().backups().create(create);
-
- RecordedRequest request = server.takeRequest();
- assertNotNull(request.getHeader("X-Auth-Token"));
- assertTrue(request.getPath().matches("/v[123]/\\p{XDigit}*/backups" ));
- assertEquals( request.getMethod(), "POST");
-
- String requestBody = request.getBody().readUtf8();
- assertTrue(requestBody.contains("\"volume_id\" : \"999b49ff-a813-45cc-aef3-3ec82f089490\""));
-
- assertEquals(backup.getName(), name);
- assertNotNull(backup.getId());
- assertEquals(backup.getId(), "7069c687-c85c-45ca-befa-aa78a971fdfe");
- }
-
- @Test
- public void createVolumeBackupFromSnapshotV1() throws Exception {
- respondWith("/storage/v1/volumebackup_create_response.json");
- final String name = "backup1122";
-
- VolumeBackupCreate create = Builders.volumeBackupCreate().volumeId("999b49ff-a813-45cc-aef3-3ec82f089490").container("container123")
- .description("description123").name(name).incremental(false).snapshotId("b4b3258d-555a-4fce-8f53-69cc2ae96d3c").build();
- VolumeBackup backup = osv3().blockStorage().backups().create(create);
-
- RecordedRequest request = server.takeRequest();
- assertNotNull(request.getHeader("X-Auth-Token"));
- assertTrue(request.getPath().matches("/v[123]/\\p{XDigit}*/backups" ));
- assertEquals( request.getMethod(), "POST");
-
- String requestBody = request.getBody().readUtf8();
- assertTrue(requestBody.contains("\"volume_id\" : \"999b49ff-a813-45cc-aef3-3ec82f089490\""));
- assertTrue(requestBody.contains("\"snapshot_id\" : \"b4b3258d-555a-4fce-8f53-69cc2ae96d3c\""));
-
- assertEquals(backup.getName(), name);
- assertNotNull(backup.getId());
- assertEquals(backup.getId(), "7069c687-c85c-45ca-befa-aa78a971fdfe");
- }
-
-
- @Test
- public void deleteVolumeBackupV1() throws Exception {
- respondWith(202);
- String backupId = "1edd8704-a15a-4f44-8a70-49ffc3b1ec3a";
- ActionResponse response = osv3().blockStorage().backups().delete(backupId);
-
- RecordedRequest request = server.takeRequest();
- assertNotNull(request.getHeader("X-Auth-Token"));
- assertTrue(request.getPath().matches("/v[123]/\\p{XDigit}*/backups/" + backupId ));
- assertEquals( request.getMethod(), "DELETE");
- //Reporter.log( request.getPath() , true );
-
- assertTrue(response.isSuccess());
- }
-
-
- @Test
- public void listVolumeBackupsV1() throws Exception {
- // Check list volumes
- respondWith("/storage/v1/volumebackups.json");
- List extends VolumeBackup> backups = osv3().blockStorage().backups().list();
- assertEquals(backups.size(), 3);
-
- // Check that the list request is the one we expect
- RecordedRequest listRequest = server.takeRequest();
- assertNotNull(listRequest.getHeader("X-Auth-Token"));
-
- Reporter.log( listRequest.getPath() , true );
- assertTrue(listRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/detail"));
-
- assertEquals(backups.get(0).getContainer(), "container1122");
- assertEquals(backups.get(0).getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backups.get(0).getName(), "backup1122");
- assertEquals(backups.get(0).getStatus(), VolumeBackup.Status.AVAILABLE);
- assertEquals(backups.get(0).getSize(), 1);
- assertEquals(backups.get(0).getObjectCount(), 22);
- assertEquals(backups.get(0).getZone(), "nova");
- assertNotNull(backups.get(0).getCreated());
- assertFalse(backups.get(0).hasDependent());
- assertFalse(backups.get(0).isIncremental());
-
- }
-
- @Test
- public void listVolumeBackupsV1WithFilter() throws Exception {
- // Check list volumes
- respondWith("/storage/v1/volumebackups_filtered.json");
-
- final String backupName = "backup1122";
+ @Override
+ protected Service service() {
+ return Service.BLOCK_STORAGE;
+ }
+
+
+ @Test
+ public void createVolumeBackupV1() throws Exception {
+ respondWith("/storage/v1/volumebackup_create_response.json");
+ final String name = "backup1122";
+
+ VolumeBackupCreate create = Builders.volumeBackupCreate().volumeId("999b49ff-a813-45cc-aef3-3ec82f089490").container("container123")
+ .description("description123").name(name).incremental(false).build();
+ VolumeBackup backup = osv3().blockStorage().backups().create(create);
+
+ RecordedRequest request = server.takeRequest();
+ assertNotNull(request.getHeader("X-Auth-Token"));
+ assertTrue(request.getPath().matches("/v[123]/\\p{XDigit}*/backups"));
+ assertEquals(request.getMethod(), "POST");
+
+ String requestBody = request.getBody().readUtf8();
+ assertTrue(requestBody.contains("\"volume_id\" : \"999b49ff-a813-45cc-aef3-3ec82f089490\""));
+
+ assertEquals(backup.getName(), name);
+ assertNotNull(backup.getId());
+ assertEquals(backup.getId(), "7069c687-c85c-45ca-befa-aa78a971fdfe");
+ }
+
+ @Test
+ public void createVolumeBackupFromSnapshotV1() throws Exception {
+ respondWith("/storage/v1/volumebackup_create_response.json");
+ final String name = "backup1122";
+
+ VolumeBackupCreate create = Builders.volumeBackupCreate().volumeId("999b49ff-a813-45cc-aef3-3ec82f089490").container("container123")
+ .description("description123").name(name).incremental(false).snapshotId("b4b3258d-555a-4fce-8f53-69cc2ae96d3c").build();
+ VolumeBackup backup = osv3().blockStorage().backups().create(create);
+
+ RecordedRequest request = server.takeRequest();
+ assertNotNull(request.getHeader("X-Auth-Token"));
+ assertTrue(request.getPath().matches("/v[123]/\\p{XDigit}*/backups"));
+ assertEquals(request.getMethod(), "POST");
+
+ String requestBody = request.getBody().readUtf8();
+ assertTrue(requestBody.contains("\"volume_id\" : \"999b49ff-a813-45cc-aef3-3ec82f089490\""));
+ assertTrue(requestBody.contains("\"snapshot_id\" : \"b4b3258d-555a-4fce-8f53-69cc2ae96d3c\""));
+
+ assertEquals(backup.getName(), name);
+ assertNotNull(backup.getId());
+ assertEquals(backup.getId(), "7069c687-c85c-45ca-befa-aa78a971fdfe");
+ }
+
+
+ @Test
+ public void deleteVolumeBackupV1() throws Exception {
+ respondWith(202);
+ String backupId = "1edd8704-a15a-4f44-8a70-49ffc3b1ec3a";
+ ActionResponse response = osv3().blockStorage().backups().delete(backupId);
+
+ RecordedRequest request = server.takeRequest();
+ assertNotNull(request.getHeader("X-Auth-Token"));
+ assertTrue(request.getPath().matches("/v[123]/\\p{XDigit}*/backups/" + backupId));
+ assertEquals(request.getMethod(), "DELETE");
+ //Reporter.log( request.getPath() , true );
+
+ assertTrue(response.isSuccess());
+ }
+
+
+ @Test
+ public void listVolumeBackupsV1() throws Exception {
+ // Check list volumes
+ respondWith("/storage/v1/volumebackups.json");
+ List extends VolumeBackup> backups = osv3().blockStorage().backups().list();
+ assertEquals(backups.size(), 3);
+
+ // Check that the list request is the one we expect
+ RecordedRequest listRequest = server.takeRequest();
+ assertNotNull(listRequest.getHeader("X-Auth-Token"));
+
+ Reporter.log(listRequest.getPath(), true);
+ assertTrue(listRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/detail"));
+
+ assertEquals(backups.get(0).getContainer(), "container1122");
+ assertEquals(backups.get(0).getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backups.get(0).getName(), "backup1122");
+ assertEquals(backups.get(0).getStatus(), VolumeBackup.Status.AVAILABLE);
+ assertEquals(backups.get(0).getSize(), 1);
+ assertEquals(backups.get(0).getObjectCount(), 22);
+ assertEquals(backups.get(0).getZone(), "nova");
+ assertNotNull(backups.get(0).getCreated());
+ assertFalse(backups.get(0).hasDependent());
+ assertFalse(backups.get(0).isIncremental());
+
+ }
+
+ @Test
+ public void listVolumeBackupsV1WithFilter() throws Exception {
+ // Check list volumes
+ respondWith("/storage/v1/volumebackups_filtered.json");
+
+ final String backupName = "backup1122";
Map filters = new HashMap();
filters.put("name", backupName);
-
- List extends VolumeBackup> backups = osv3().blockStorage().backups().list(filters);
- assertEquals(backups.size(), 1);
-
- // Check that the list request is the one we expect
- RecordedRequest listRequest = server.takeRequest();
- assertNotNull(listRequest.getHeader("X-Auth-Token"));
- assertTrue(listRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/detail\\?name=" + backupName));
-
- assertEquals(backups.get(0).getContainer(), "container1122");
- assertEquals(backups.get(0).getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backups.get(0).getName(), backupName);
- assertEquals(backups.get(0).getStatus(), VolumeBackup.Status.AVAILABLE);
- assertEquals(backups.get(0).getSize(), 1);
- assertEquals(backups.get(0).getObjectCount(), 22);
- assertEquals(backups.get(0).getZone(), "nova");
- assertNotNull(backups.get(0).getCreated());
- assertFalse(backups.get(0).hasDependent());
- assertFalse(backups.get(0).isIncremental());
-
- }
-
- @Test
- public void getVolumeBackupV1() throws Exception {
- // Check get volume
- respondWith("/storage/v1/volumebackup.json");
- String id="735359d5-9584-4046-94d3-5ffc47be84f5";
- VolumeBackup backup = osv3().blockStorage().backups().get(id);
-
- RecordedRequest getRequest = server.takeRequest();
- assertNotNull(getRequest.getHeader("X-Auth-Token"));
- assertTrue(getRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/"+id));
-
- assertEquals(backup.getId(), "735359d5-9584-4046-94d3-5ffc47be84f5");
- assertEquals(backup.getContainer(), "test999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backup.getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backup.getName(), "backup999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backup.getStatus(), VolumeBackup.Status.AVAILABLE);
- assertEquals(backup.getSize(), 1);
- assertEquals(backup.getObjectCount(), 22);
- assertEquals(backup.getZone(), "nova");
- assertNotNull(backup.getCreated());
- assertEquals(backup.getDescription(), "by API999b49ff-a813-45cc-aef3-3ec82f089490");
- assertFalse(backup.hasDependent());
- assertFalse(backup.isIncremental());
-
- }
-
-
- @Test
- public void getVolumeBackupFromSnapshotV1() throws Exception {
- // Check get volume
- respondWith("/storage/v1/volumebackup_from_snapshot.json");
- String id="735359d5-9584-4046-94d3-5ffc47be84f5";
- VolumeBackup backup = osv3().blockStorage().backups().get(id);
-
- RecordedRequest getRequest = server.takeRequest();
- assertNotNull(getRequest.getHeader("X-Auth-Token"));
- assertTrue(getRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/"+id));
-
- assertEquals(backup.getId(), "735359d5-9584-4046-94d3-5ffc47be84f5");
- assertEquals(backup.getContainer(), "test999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backup.getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backup.getName(), "backup999b49ff-a813-45cc-aef3-3ec82f089490");
- assertEquals(backup.getSnapshotId(), "b4b3258d-555a-4fce-8f53-69cc2ae96d3c");
- assertEquals(backup.getStatus(), VolumeBackup.Status.AVAILABLE);
- assertEquals(backup.getSize(), 1);
- assertEquals(backup.getObjectCount(), 22);
- assertEquals(backup.getZone(), "nova");
- assertNotNull(backup.getCreated());
- assertEquals(backup.getDescription(), "by API999b49ff-a813-45cc-aef3-3ec82f089490");
- assertFalse(backup.hasDependent());
- assertFalse(backup.isIncremental());
-
- }
+
+ List extends VolumeBackup> backups = osv3().blockStorage().backups().list(filters);
+ assertEquals(backups.size(), 1);
+
+ // Check that the list request is the one we expect
+ RecordedRequest listRequest = server.takeRequest();
+ assertNotNull(listRequest.getHeader("X-Auth-Token"));
+ assertTrue(listRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/detail\\?name=" + backupName));
+
+ assertEquals(backups.get(0).getContainer(), "container1122");
+ assertEquals(backups.get(0).getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backups.get(0).getName(), backupName);
+ assertEquals(backups.get(0).getStatus(), VolumeBackup.Status.AVAILABLE);
+ assertEquals(backups.get(0).getSize(), 1);
+ assertEquals(backups.get(0).getObjectCount(), 22);
+ assertEquals(backups.get(0).getZone(), "nova");
+ assertNotNull(backups.get(0).getCreated());
+ assertFalse(backups.get(0).hasDependent());
+ assertFalse(backups.get(0).isIncremental());
+
+ }
+
+ @Test
+ public void getVolumeBackupV1() throws Exception {
+ // Check get volume
+ respondWith("/storage/v1/volumebackup.json");
+ String id = "735359d5-9584-4046-94d3-5ffc47be84f5";
+ VolumeBackup backup = osv3().blockStorage().backups().get(id);
+
+ RecordedRequest getRequest = server.takeRequest();
+ assertNotNull(getRequest.getHeader("X-Auth-Token"));
+ assertTrue(getRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/" + id));
+
+ assertEquals(backup.getId(), "735359d5-9584-4046-94d3-5ffc47be84f5");
+ assertEquals(backup.getContainer(), "test999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backup.getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backup.getName(), "backup999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backup.getStatus(), VolumeBackup.Status.AVAILABLE);
+ assertEquals(backup.getSize(), 1);
+ assertEquals(backup.getObjectCount(), 22);
+ assertEquals(backup.getZone(), "nova");
+ assertNotNull(backup.getCreated());
+ assertEquals(backup.getDescription(), "by API999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertFalse(backup.hasDependent());
+ assertFalse(backup.isIncremental());
+
+ }
+
+
+ @Test
+ public void getVolumeBackupFromSnapshotV1() throws Exception {
+ // Check get volume
+ respondWith("/storage/v1/volumebackup_from_snapshot.json");
+ String id = "735359d5-9584-4046-94d3-5ffc47be84f5";
+ VolumeBackup backup = osv3().blockStorage().backups().get(id);
+
+ RecordedRequest getRequest = server.takeRequest();
+ assertNotNull(getRequest.getHeader("X-Auth-Token"));
+ assertTrue(getRequest.getPath().matches("/v[123]/\\p{XDigit}*/backups/" + id));
+
+ assertEquals(backup.getId(), "735359d5-9584-4046-94d3-5ffc47be84f5");
+ assertEquals(backup.getContainer(), "test999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backup.getVolumeId(), "999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backup.getName(), "backup999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertEquals(backup.getSnapshotId(), "b4b3258d-555a-4fce-8f53-69cc2ae96d3c");
+ assertEquals(backup.getStatus(), VolumeBackup.Status.AVAILABLE);
+ assertEquals(backup.getSize(), 1);
+ assertEquals(backup.getObjectCount(), 22);
+ assertEquals(backup.getZone(), "nova");
+ assertNotNull(backup.getCreated());
+ assertEquals(backup.getDescription(), "by API999b49ff-a813-45cc-aef3-3ec82f089490");
+ assertFalse(backup.hasDependent());
+ assertFalse(backup.isIncremental());
+
+ }
}
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/VolumeSnapshotTests.java b/core-test/src/main/java/org/openstack4j/api/storage/VolumeSnapshotTests.java
index 4e3621d15..424b2488a 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/VolumeSnapshotTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/VolumeSnapshotTests.java
@@ -1,39 +1,36 @@
package org.openstack4j.api.storage;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
import okhttp3.mockwebserver.RecordedRequest;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.storage.block.VolumeSnapshot;
import org.testng.annotations.Test;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import static org.testng.Assert.*;
-@Test(suiteName="Block Storage Tests")
+@Test(suiteName = "Block Storage Tests")
public class VolumeSnapshotTests extends AbstractTest {
@Override
protected Service service() {
return Service.BLOCK_STORAGE;
}
-
+
public void listVolumeSnaphotsV1() throws Exception {
// Check list volumes
respondWith("/storage/v1/volumesnapshots.json");
List extends VolumeSnapshot> volumes = osv3().blockStorage().snapshots().list();
assertEquals(volumes.size(), 2);
-
+
// Check that the list request is the one we expect
RecordedRequest listRequest = server.takeRequest();
assertNotNull(listRequest.getHeader("X-Auth-Token"));
assertTrue(listRequest.getPath().matches("/v[12]/\\p{XDigit}*/snapshots"));
-
+
// Check list volumes with filters
respondWith("/storage/v1/volumesnapshots_filtered.json");
final String volName = "snap-vol-test-1";
@@ -41,11 +38,11 @@ public void listVolumeSnaphotsV1() throws Exception {
filters.put("display_name", volName);
List extends VolumeSnapshot> filteredVolumes = osv3().blockStorage().snapshots().list(filters);
assertEquals(filteredVolumes.size(), 1);
-
+
// Check that the list request is the one we expect
RecordedRequest filteredListRequest = server.takeRequest();
assertNotNull(filteredListRequest.getHeader("X-Auth-Token"));
assertTrue(filteredListRequest.getPath().matches("/v[12]/\\p{XDigit}*/snapshots\\?display_name=" + volName));
}
-
+
}
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/VolumeTests.java b/core-test/src/main/java/org/openstack4j/api/storage/VolumeTests.java
index 5596dcf24..2049bd587 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/VolumeTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/VolumeTests.java
@@ -1,32 +1,28 @@
package org.openstack4j.api.storage;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
import okhttp3.mockwebserver.RecordedRequest;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
-import org.openstack4j.api.SkipTest;
import org.openstack4j.model.storage.block.Volume;
import org.openstack4j.model.storage.block.VolumeAttachment;
import org.openstack4j.model.storage.block.builder.VolumeBuilder;
import org.testng.annotations.Test;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import static org.testng.Assert.*;
-@Test(suiteName="Block Storage Tests")
+@Test(suiteName = "Block Storage Tests")
public class VolumeTests extends AbstractTest {
@Override
protected Service service() {
return Service.BLOCK_STORAGE;
}
-
+
@Test
public void listVolumesV1() throws Exception {
// Check list volumes
@@ -34,12 +30,12 @@ public void listVolumesV1() throws Exception {
List extends Volume> volumes = osv3().blockStorage().volumes().list();
assertEquals(volumes.size(), 3);
assertEquals(volumes.get(0).getTenantId(), "b0b5ed7ae06049688349fe43737796d4");
-
+
// Check that the list request is the one we expect
RecordedRequest listRequest = server.takeRequest();
assertNotNull(listRequest.getHeader("X-Auth-Token"));
assertTrue(listRequest.getPath().matches("/v[12]/\\p{XDigit}*/volumes/detail"));
-
+
// Check list volumes with filters
respondWith("/storage/v1/volumes_filtered.json");
final String volName = "vol-test-1";
@@ -47,23 +43,23 @@ public void listVolumesV1() throws Exception {
filters.put("display_name", volName);
List extends Volume> filteredVolumes = osv3().blockStorage().volumes().list(filters);
assertEquals(filteredVolumes.size(), 2);
-
+
// Check that the list request is the one we expect
RecordedRequest filteredListRequest = server.takeRequest();
assertNotNull(filteredListRequest.getHeader("X-Auth-Token"));
assertTrue(filteredListRequest.getPath().matches("/v[12]/\\p{XDigit}*/volumes/detail\\?display_name=" + volName));
}
-
+
@SuppressWarnings("unchecked")
@Test
public void getVolumeV1() throws Exception {
// Check get volume
respondWith("/storage/v1/volume.json");
Volume volume = osv3().blockStorage().volumes().get("8a9287b7-4f4d-4213-8d75-63470f19f27c");
-
+
RecordedRequest getRequest = server.takeRequest();
assertTrue(getRequest.getPath().matches("/v[12]/\\p{XDigit}*/volumes/8a9287b7-4f4d-4213-8d75-63470f19f27c"));
-
+
assertEquals(volume.getId(), "8a9287b7-4f4d-4213-8d75-63470f19f27c");
assertEquals(volume.getDisplayName(), "vol-test");
assertEquals(volume.getDisplayDescription(), "a description");
@@ -74,12 +70,12 @@ public void getVolumeV1() throws Exception {
assertEquals(volume.getSnapshotId(), "22222222-2222-2222-2222-222222222222");
assertEquals(volume.getSourceVolid(), "11111111-1111-1111-1111-111111111111");
assertEquals(volume.getVolumeType(), "Gold");
-
+
assertNotNull(volume.getMetaData());
Map metadata = volume.getMetaData();
assertEquals(metadata.get("readonly"), "False");
assertEquals(metadata.get("attached_mode"), "rw");
-
+
assertNotNull(volume.getAttachments());
List attachments = (List) volume.getAttachments();
assertEquals(attachments.get(0).getDevice(), "/dev/vdd");
@@ -90,17 +86,17 @@ public void getVolumeV1() throws Exception {
assertEquals(volume.getTenantId(), "b0b5ed7ae06049688349fe43737796d4");
}
-
+
@SuppressWarnings("unchecked")
@Test
public void getVolumeV2() throws Exception {
// Check get volume
respondWith("/storage/v2/volume.json");
Volume volume = osv3().blockStorage().volumes().get("8a9287b7-4f4d-4213-8d75-63470f19f27c");
-
+
RecordedRequest getRequest = server.takeRequest();
assertTrue(getRequest.getPath().matches("/v[12]/\\p{XDigit}*/volumes/8a9287b7-4f4d-4213-8d75-63470f19f27c"));
-
+
assertEquals(volume.getId(), "8a9287b7-4f4d-4213-8d75-63470f19f27c");
assertEquals(volume.getName(), "test-volume");
assertEquals(volume.getDescription(), "a description");
@@ -111,12 +107,12 @@ public void getVolumeV2() throws Exception {
assertEquals(volume.getSnapshotId(), "22222222-2222-2222-2222-222222222222");
assertEquals(volume.getSourceVolid(), "11111111-1111-1111-1111-111111111111");
assertEquals(volume.getVolumeType(), "Gold");
-
+
assertNotNull(volume.getMetaData());
Map metadata = volume.getMetaData();
assertEquals(metadata.get("readonly"), "False");
assertEquals(metadata.get("attached_mode"), "rw");
-
+
assertNotNull(volume.getAttachments());
List attachments = (List) volume.getAttachments();
assertEquals(attachments.get(0).getDevice(), "/dev/vdd");
@@ -125,8 +121,8 @@ public void getVolumeV2() throws Exception {
assertEquals(attachments.get(0).getServerId(), "eaa6a54d-35c1-40ce-831d-bb61f991e1a9");
assertEquals(attachments.get(0).getVolumeId(), "8a9287b7-4f4d-4213-8d75-63470f19f27c");
}
-
-
+
+
@Test
public void testVolumesWithBootableAndEncyrpted() throws Exception {
// Check list volumes
@@ -136,30 +132,30 @@ public void testVolumesWithBootableAndEncyrpted() throws Exception {
assertEquals(volumes.get(0).getTenantId(), "b0b5ed7ae06049688349fe43737796d4");
assertEquals(volumes.get(0).bootable(), false);
assertEquals(volumes.get(0).encrypted(), false);
-
+
assertEquals(volumes.get(1).getTenantId(), "b0b5ed7ae06049688349fe43737796d4");
assertEquals(volumes.get(1).bootable(), true);
assertEquals(volumes.get(1).encrypted(), true);
-
-
+
+
}
-
-
+
+
@Test
public void CreateVolumeV2WithMultiattach() throws Exception {
respondWith("/storage/v2/createVolume-muitiattach.json");
-
+
VolumeBuilder volumeBuilder = Builders.volume();
- volumeBuilder.size(10);
- volumeBuilder.name("test_openstack4j");
- volumeBuilder.description("test");
- volumeBuilder.multiattach(true);
- Volume volume = osv2().blockStorage().volumes().create(volumeBuilder.build());
-
- server.takeRequest();
-
- assertEquals(volume.getSize(), 10);
- assertEquals(volume.multiattach(), Boolean.TRUE);
+ volumeBuilder.size(10);
+ volumeBuilder.name("test_openstack4j");
+ volumeBuilder.description("test");
+ volumeBuilder.multiattach(true);
+ Volume volume = osv2().blockStorage().volumes().create(volumeBuilder.build());
+
+ server.takeRequest();
+
+ assertEquals(volume.getSize(), 10);
+ assertEquals(volume.multiattach(), Boolean.TRUE);
}
}
diff --git a/core-test/src/main/java/org/openstack4j/api/storage/VolumeTypeTests.java b/core-test/src/main/java/org/openstack4j/api/storage/VolumeTypeTests.java
index bfb1ff7b5..cd42164c8 100644
--- a/core-test/src/main/java/org/openstack4j/api/storage/VolumeTypeTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/storage/VolumeTypeTests.java
@@ -1,16 +1,16 @@
package org.openstack4j.api.storage;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.storage.block.VolumeType;
import org.testng.annotations.Test;
+import java.io.IOException;
+
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertTrue;
+
@Test(suiteName = "Block Storage Tests")
public class VolumeTypeTests extends AbstractTest {
diff --git a/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVimTests.java b/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVimTests.java
index 1086ef33b..a2d7848a6 100644
--- a/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVimTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVimTests.java
@@ -1,13 +1,6 @@
package org.openstack4j.api.tacker.v1;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.logging.Logger;
-
+import com.google.common.base.Preconditions;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.api.exceptions.ServerResponseException;
@@ -18,103 +11,106 @@
import org.testng.Assert;
import org.testng.annotations.Test;
-import com.google.common.base.Preconditions;
+import java.io.IOException;
+import java.util.List;
+import java.util.logging.Logger;
+
+import static org.testng.Assert.*;
/**
- *
* @author Vishvesh Deshmukh
* @date Sep 14, 2016
*/
@Test(suiteName = "tacker/vnim")
public class TackerVimTests extends AbstractTest {
- private static final String TACKER_VIM = "/tacker/v1/vim.json";
- private static final String TACKER_VIMS = "/tacker/v1/vims.json";
-
- @Override
- protected Service service() {
- return Service.TACKER;
- }
-
- @Test
- public void testListVims() throws Exception {
- respondWith(TACKER_VIMS);
- List extends Vim> vims = osv3().tacker().vim().list();
- assertEquals(1, vims.size());
- Preconditions.checkNotNull(vims.get(0));
- Logger.getLogger(getClass().getName())
- .info(getClass().getName() + " : Tacker VIM from List : " + vims.get(0));
- assertEquals(vims.get(0).getName(), "test-vim");
- }
-
- public void testGetVim() throws IOException {
- respondWith(TACKER_VIM);
- String id = "bad2f397-7436-4fc7-8043-726e173c5d30";
- Vim vim = osv3().tacker().vim().show(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Tacker VIM by ID : "+vim);
- assertNotNull(vim);
- assertEquals(id, vim.getId());
- assertEquals("test-vim", vim.getName());
- }
-
- public void testRegisterVim() throws IOException {
- respondWith(TACKER_VIM);
- VimProject vimProject = VimProject.create().name("admin").projectDomainName("default");
-
- AuthCredentials authCredentials = AuthCredentials.create()
- .username("admin")
- .password("password")
- .userDomainName("default");
-
- Vim vim = Builders.tacker().vim()
- .name("test-vim")
- .description("test-vim-description")
- .authUrl("http://openstack.os4j.com:35357/v3")
- .isDefault(Boolean.TRUE)
- .type("openstack")
- .vimProject(vimProject)
- .authCredentials(authCredentials)
- .build();
-
- vim = osv3().tacker().vim().register(vim);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Tacker Vim : "+vim);
-
- assertEquals("test-vim", vim.getName());
- }
-
- @Test(expectedExceptions = ServerResponseException.class)
- public void testRegisterVimWithTackerError() throws IOException {
- String jsonResponse = "{\"TackerError\": {"
+ private static final String TACKER_VIM = "/tacker/v1/vim.json";
+ private static final String TACKER_VIMS = "/tacker/v1/vims.json";
+
+ @Override
+ protected Service service() {
+ return Service.TACKER;
+ }
+
+ @Test
+ public void testListVims() throws Exception {
+ respondWith(TACKER_VIMS);
+ List extends Vim> vims = osv3().tacker().vim().list();
+ assertEquals(1, vims.size());
+ Preconditions.checkNotNull(vims.get(0));
+ Logger.getLogger(getClass().getName())
+ .info(getClass().getName() + " : Tacker VIM from List : " + vims.get(0));
+ assertEquals(vims.get(0).getName(), "test-vim");
+ }
+
+ public void testGetVim() throws IOException {
+ respondWith(TACKER_VIM);
+ String id = "bad2f397-7436-4fc7-8043-726e173c5d30";
+ Vim vim = osv3().tacker().vim().show(id);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Tacker VIM by ID : " + vim);
+ assertNotNull(vim);
+ assertEquals(id, vim.getId());
+ assertEquals("test-vim", vim.getName());
+ }
+
+ public void testRegisterVim() throws IOException {
+ respondWith(TACKER_VIM);
+ VimProject vimProject = VimProject.create().name("admin").projectDomainName("default");
+
+ AuthCredentials authCredentials = AuthCredentials.create()
+ .username("admin")
+ .password("password")
+ .userDomainName("default");
+
+ Vim vim = Builders.tacker().vim()
+ .name("test-vim")
+ .description("test-vim-description")
+ .authUrl("http://openstack.os4j.com:35357/v3")
+ .isDefault(Boolean.TRUE)
+ .type("openstack")
+ .vimProject(vimProject)
+ .authCredentials(authCredentials)
+ .build();
+
+ vim = osv3().tacker().vim().register(vim);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Tacker Vim : " + vim);
+
+ assertEquals("test-vim", vim.getName());
+ }
+
+ @Test(expectedExceptions = ServerResponseException.class)
+ public void testRegisterVimWithTackerError() throws IOException {
+ String jsonResponse = "{\"TackerError\": {"
+ "\"message\": \"'project_domain_name' is missing.\", "
+ "\"code\": 500}}";
-
- respondWith(500, jsonResponse);
-
- VimProject vimProject = VimProject.create().name("admin");
-
- AuthCredentials authCredentials = AuthCredentials.create()
- .username("admin")
- .password("password")
- .userDomainName("default");
-
- Vim vim = Builders.tacker().vim()
- .name("test-vim")
- .description("test-vim-description")
- .authUrl("http://openstack.os4j.com:35357/v3")
- .isDefault(Boolean.TRUE)
- .type("openstack")
- .vimProject(vimProject)
- .authCredentials(authCredentials)
- .build();
-
- vim = osv3().tacker().vim().register(vim);
- System.out.println("THROWING EXCEPTIONNNNNNNNN");
- Assert.fail("Exception should have been thrown.");
- }
-
- public void testDeleteVim() throws IOException {
- respondWith(200);
- ActionResponse result = osv3().tacker().vim().delete("bad2f397-7436-4fc7-8043-726e173c5d30");
- assertTrue(result.isSuccess());
- }
+
+ respondWith(500, jsonResponse);
+
+ VimProject vimProject = VimProject.create().name("admin");
+
+ AuthCredentials authCredentials = AuthCredentials.create()
+ .username("admin")
+ .password("password")
+ .userDomainName("default");
+
+ Vim vim = Builders.tacker().vim()
+ .name("test-vim")
+ .description("test-vim-description")
+ .authUrl("http://openstack.os4j.com:35357/v3")
+ .isDefault(Boolean.TRUE)
+ .type("openstack")
+ .vimProject(vimProject)
+ .authCredentials(authCredentials)
+ .build();
+
+ vim = osv3().tacker().vim().register(vim);
+ System.out.println("THROWING EXCEPTIONNNNNNNNN");
+ Assert.fail("Exception should have been thrown.");
+ }
+
+ public void testDeleteVim() throws IOException {
+ respondWith(200);
+ ActionResponse result = osv3().tacker().vim().delete("bad2f397-7436-4fc7-8043-726e173c5d30");
+ assertTrue(result.isSuccess());
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfTests.java b/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfTests.java
index aaf1fe018..133d67ff8 100644
--- a/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfTests.java
@@ -1,13 +1,6 @@
package org.openstack4j.api.tacker.v1;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.logging.Logger;
-
+import com.google.common.base.Preconditions;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -17,76 +10,79 @@
import org.openstack4j.openstack.tacker.domain.VnfUpdateAttributes;
import org.testng.annotations.Test;
-import com.google.common.base.Preconditions;
+import java.io.IOException;
+import java.util.List;
+import java.util.logging.Logger;
+
+import static org.testng.Assert.*;
/**
- *
* @author Vishvesh Deshmukh
* @date Sep 6, 2016
*/
@Test(suiteName = "tacker/vnf")
public class TackerVnfTests extends AbstractTest {
- private static final String TACKER_VNFS = "/tacker/v1/vnfs.json";
- private static final String TACKER_VNF_GET = "/tacker/v1/vnf-get.json";
- private static final String TACKER_VNF_CREATE = "/tacker/v1/vnf-create.json";
- private static final String TACKER_VNF_UPDATE = "/tacker/v1/vnf-update.json";
+ private static final String TACKER_VNFS = "/tacker/v1/vnfs.json";
+ private static final String TACKER_VNF_GET = "/tacker/v1/vnf-get.json";
+ private static final String TACKER_VNF_CREATE = "/tacker/v1/vnf-create.json";
+ private static final String TACKER_VNF_UPDATE = "/tacker/v1/vnf-update.json";
+
+ @Override
+ protected Service service() {
+ return Service.TACKER;
+ }
+
+ @Test
+ public void testListVnfs() throws Exception {
+ respondWith(TACKER_VNFS);
+ List extends Vnf> vnfs = osv3().tacker().vnf().list();
+ assertEquals(1, vnfs.size());
+ Preconditions.checkNotNull(vnfs.get(0));
+ Logger.getLogger(getClass().getName())
+ .info(getClass().getName() + " : Tacker VNF from List : " + vnfs.get(0));
+ assertEquals(vnfs.get(0).getName(), "test-vnf");
+ }
+
+ public void testGetVnf() throws IOException {
+ respondWith(TACKER_VNF_GET);
+ String id = "afbbf7f4-59c2-45ed-b158-8c4e2e1d9104";
+ Vnf vnf = osv3().tacker().vnf().get(id);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Tacker VNF by ID : " + vnf);
+ assertNotNull(vnf);
+ assertEquals(id, vnf.getId());
+ assertEquals("test-vnf", vnf.getName());
+ }
+
+ public void testCreateVnf() throws IOException {
+ respondWith(TACKER_VNF_CREATE);
+ Vnf vnf = Builders.tacker().vnf()
+ .name("test-vnf")
+ .description("test-vnf-description")
+ .vnfdId("1363e776-6c79-4e53-8074-4e32e49f156a")
+ .build();
+
+ Vnf newVnf = osv3().tacker().vnf().create(vnf);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Tacker Vnf : " + newVnf);
+
+ assertEquals("test-vnf", newVnf.getName());
+ }
+
+ public void testUpdateVnf() throws Exception {
+ respondWith(TACKER_VNF_UPDATE);
+ String vnfId = "4043f4bd-a728-4ee3-91d6-a11a6bb89030";
+ String vnfUpdateConfig = "vdus:\n vdu1:\n id: vdu1\n vm_image: cirros-0.3.4-x86_64-uec\n instance_type: m1.tiny\n\n network_interfaces:\n management:\n network: net_mgmt\n management: true\n pkt_in:\n network: net0\n pkt_out:\n network: net1\n\n placement_policy:\n availability_zone: nova\n\n auto-scaling: noop\n\n";
+ VnfUpdateAttributes vnfUpdateAttributes = VnfUpdateAttributes.create().config(vnfUpdateConfig);
+ VnfUpdate vnfUpdate = Builders.tacker().vnfUpdate().attributes(vnfUpdateAttributes).build();
+ Vnf updatedVnf = osv3().tacker().vnf().update(vnfId, vnfUpdate);
- @Override
- protected Service service() {
- return Service.TACKER;
- }
+ assertEquals("test-update-vnf-description", updatedVnf.getDescription());
+ assertEquals(TackerVnfStatus.PENDING_UPDATE, updatedVnf.getStatus());
+ }
- @Test
- public void testListVnfs() throws Exception {
- respondWith(TACKER_VNFS);
- List extends Vnf> vnfs = osv3().tacker().vnf().list();
- assertEquals(1, vnfs.size());
- Preconditions.checkNotNull(vnfs.get(0));
- Logger.getLogger(getClass().getName())
- .info(getClass().getName() + " : Tacker VNF from List : " + vnfs.get(0));
- assertEquals(vnfs.get(0).getName(), "test-vnf");
- }
-
- public void testGetVnf() throws IOException {
- respondWith(TACKER_VNF_GET);
- String id = "afbbf7f4-59c2-45ed-b158-8c4e2e1d9104";
- Vnf vnf = osv3().tacker().vnf().get(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Tacker VNF by ID : "+vnf);
- assertNotNull(vnf);
- assertEquals(id, vnf.getId());
- assertEquals("test-vnf", vnf.getName());
- }
-
- public void testCreateVnf() throws IOException {
- respondWith(TACKER_VNF_CREATE);
- Vnf vnf = Builders.tacker().vnf()
- .name("test-vnf")
- .description("test-vnf-description")
- .vnfdId("1363e776-6c79-4e53-8074-4e32e49f156a")
- .build();
-
- Vnf newVnf = osv3().tacker().vnf().create(vnf);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Tacker Vnf : "+newVnf);
-
- assertEquals("test-vnf", newVnf.getName());
- }
-
- public void testUpdateVnf() throws Exception {
- respondWith(TACKER_VNF_UPDATE);
- String vnfId = "4043f4bd-a728-4ee3-91d6-a11a6bb89030";
- String vnfUpdateConfig = "vdus:\n vdu1:\n id: vdu1\n vm_image: cirros-0.3.4-x86_64-uec\n instance_type: m1.tiny\n\n network_interfaces:\n management:\n network: net_mgmt\n management: true\n pkt_in:\n network: net0\n pkt_out:\n network: net1\n\n placement_policy:\n availability_zone: nova\n\n auto-scaling: noop\n\n";
- VnfUpdateAttributes vnfUpdateAttributes = VnfUpdateAttributes.create().config(vnfUpdateConfig);
- VnfUpdate vnfUpdate = Builders.tacker().vnfUpdate().attributes(vnfUpdateAttributes).build();
- Vnf updatedVnf = osv3().tacker().vnf().update(vnfId, vnfUpdate);
-
- assertEquals("test-update-vnf-description", updatedVnf.getDescription());
- assertEquals(TackerVnfStatus.PENDING_UPDATE, updatedVnf.getStatus());
- }
-
- public void testDeleteVnf() throws IOException {
- respondWith(200);
- ActionResponse result = osv3().tacker().vnf().delete("afbbf7f4-59c2-45ed-b158-8c4e2e1d9104");
- assertTrue(result.isSuccess());
- }
+ public void testDeleteVnf() throws IOException {
+ respondWith(200);
+ ActionResponse result = osv3().tacker().vnf().delete("afbbf7f4-59c2-45ed-b158-8c4e2e1d9104");
+ assertTrue(result.isSuccess());
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfdTests.java b/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfdTests.java
index ad7cf8eef..15e510bf9 100644
--- a/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfdTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/tacker/v1/TackerVnfdTests.java
@@ -1,13 +1,7 @@
package org.openstack4j.api.tacker.v1;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.List;
-import java.util.logging.Logger;
-
+import com.google.common.base.Preconditions;
+import com.google.common.collect.Lists;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.Builders;
import org.openstack4j.model.common.ActionResponse;
@@ -16,74 +10,76 @@
import org.openstack4j.openstack.tacker.domain.VnfdServiceTypes;
import org.testng.annotations.Test;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.Lists;
+import java.io.IOException;
+import java.util.List;
+import java.util.logging.Logger;
+
+import static org.testng.Assert.*;
/**
- *
* @author Vishvesh Deshmukh
* @date Sep 6, 2016
*/
@Test(suiteName = "tacker/vnfd")
public class TackerVnfdTests extends AbstractTest {
- private static final String TACKER_VNFD = "/tacker/v1/vnfd.json";
- private static final String TACKER_VNFDS = "/tacker/v1/vnfds.json";
-
- @Override
- protected Service service() {
- return Service.TACKER;
- }
-
- @Test
- public void testListVnfds() throws Exception {
- respondWith(TACKER_VNFDS);
- List extends Vnfd> vnfds = osv3().tacker().vnfd().list();
- assertEquals(1, vnfds.size());
- Preconditions.checkNotNull(vnfds.get(0));
- Logger.getLogger(getClass().getName())
- .info(getClass().getName() + " : Tacker VNFD from List : " + vnfds.get(0));
- assertEquals(vnfds.get(0).getName(), "test-vnfd");
- }
-
- public void testGetVnfd() throws IOException {
- respondWith(TACKER_VNFD);
- String id = "1363e776-6c79-4e53-8074-4e32e49f156a";
- Vnfd vnfd = osv3().tacker().vnfd().get(id);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Tacker VNFD by ID : "+vnfd);
- assertNotNull(vnfd);
- assertEquals(id, vnfd.getId());
- assertEquals("test-vnfd", vnfd.getName());
- }
-
- public void testCreateVnfd() throws IOException {
- respondWith(TACKER_VNFD);
- String vnfdTemplate = "template_name: sample-vnfd\ndescription: admin-example\n\nservice_properties:\n Id: sample-vnfd\n vendor: tacker\n version: 1\n\nvdus:\n vdu1:\n id: vdu1\n vm_image: cirros-0.3.4-x86_64-uec\n instance_type: m1.tiny\n\n network_interfaces:\n management:\n network: net_mgmt\n management: true\n pkt_in:\n network: net0\n pkt_out:\n network: net1\n\n placement_policy:\n availability_zone: nova\n\n auto-scaling: noop\n\n config:\n param0: key0\n param1: key1\n";
-
- VnfdAttributes attributes = VnfdAttributes.create().vnfd(vnfdTemplate);
-
- VnfdServiceTypes serviceTypes = VnfdServiceTypes.create().serviceType("vnfd");
-
- List serviceTypesList = Lists.newArrayList(serviceTypes);
-
- Vnfd vnfd = Builders.tacker().vnfd()
- .name("test-vnfd")
- .description("test-vnfd-description")
- .infrastructureDriver("heat")
- .managementDriver("noop")
- .attributes(attributes)
- .serviceTypes(serviceTypesList)
- .build();
-
- Vnfd newVnfd = osv3().tacker().vnfd().create(vnfd);
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Tacker Vnfd : "+newVnfd);
-
- assertEquals("test-vnfd", newVnfd.getName());
- }
-
- public void testDeleteVnfd() throws IOException {
- respondWith(200);
- ActionResponse result = osv3().tacker().vnfd().delete("1363e776-6c79-4e53-8074-4e32e49f156a");
- assertTrue(result.isSuccess());
- }
+ private static final String TACKER_VNFD = "/tacker/v1/vnfd.json";
+ private static final String TACKER_VNFDS = "/tacker/v1/vnfds.json";
+
+ @Override
+ protected Service service() {
+ return Service.TACKER;
+ }
+
+ @Test
+ public void testListVnfds() throws Exception {
+ respondWith(TACKER_VNFDS);
+ List extends Vnfd> vnfds = osv3().tacker().vnfd().list();
+ assertEquals(1, vnfds.size());
+ Preconditions.checkNotNull(vnfds.get(0));
+ Logger.getLogger(getClass().getName())
+ .info(getClass().getName() + " : Tacker VNFD from List : " + vnfds.get(0));
+ assertEquals(vnfds.get(0).getName(), "test-vnfd");
+ }
+
+ public void testGetVnfd() throws IOException {
+ respondWith(TACKER_VNFD);
+ String id = "1363e776-6c79-4e53-8074-4e32e49f156a";
+ Vnfd vnfd = osv3().tacker().vnfd().get(id);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Tacker VNFD by ID : " + vnfd);
+ assertNotNull(vnfd);
+ assertEquals(id, vnfd.getId());
+ assertEquals("test-vnfd", vnfd.getName());
+ }
+
+ public void testCreateVnfd() throws IOException {
+ respondWith(TACKER_VNFD);
+ String vnfdTemplate = "template_name: sample-vnfd\ndescription: admin-example\n\nservice_properties:\n Id: sample-vnfd\n vendor: tacker\n version: 1\n\nvdus:\n vdu1:\n id: vdu1\n vm_image: cirros-0.3.4-x86_64-uec\n instance_type: m1.tiny\n\n network_interfaces:\n management:\n network: net_mgmt\n management: true\n pkt_in:\n network: net0\n pkt_out:\n network: net1\n\n placement_policy:\n availability_zone: nova\n\n auto-scaling: noop\n\n config:\n param0: key0\n param1: key1\n";
+
+ VnfdAttributes attributes = VnfdAttributes.create().vnfd(vnfdTemplate);
+
+ VnfdServiceTypes serviceTypes = VnfdServiceTypes.create().serviceType("vnfd");
+
+ List serviceTypesList = Lists.newArrayList(serviceTypes);
+
+ Vnfd vnfd = Builders.tacker().vnfd()
+ .name("test-vnfd")
+ .description("test-vnfd-description")
+ .infrastructureDriver("heat")
+ .managementDriver("noop")
+ .attributes(attributes)
+ .serviceTypes(serviceTypesList)
+ .build();
+
+ Vnfd newVnfd = osv3().tacker().vnfd().create(vnfd);
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Created Tacker Vnfd : " + newVnfd);
+
+ assertEquals("test-vnfd", newVnfd.getName());
+ }
+
+ public void testDeleteVnfd() throws IOException {
+ respondWith(200);
+ ActionResponse result = osv3().tacker().vnfd().delete("1363e776-6c79-4e53-8074-4e32e49f156a");
+ assertTrue(result.isSuccess());
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/java/org/openstack4j/api/telemetry/AlarmTests.java b/core-test/src/main/java/org/openstack4j/api/telemetry/AlarmTests.java
index a25e94246..a075660f2 100644
--- a/core-test/src/main/java/org/openstack4j/api/telemetry/AlarmTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/telemetry/AlarmTests.java
@@ -1,5 +1,6 @@
package org.openstack4j.api.telemetry;
+import okhttp3.mockwebserver.RecordedRequest;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.telemetry.Alarm;
import org.testng.annotations.Test;
@@ -9,18 +10,18 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
-import okhttp3.mockwebserver.RecordedRequest;
+
/**
* telemetry alarm test cases
- * @author zhangjianweibj
*
+ * @author zhangjianweibj
*/
-@Test(suiteName="Alarms")
+@Test(suiteName = "Alarms")
public class AlarmTests extends AbstractTest {
private static final String JSON_ALARMS = "/telemetry/alarms.json";
- private static final String JSON_ALARM= "/telemetry/alarm.json";
+ private static final String JSON_ALARM = "/telemetry/alarm.json";
@Override
protected Service service() {
@@ -28,25 +29,24 @@ protected Service service() {
}
- public void listAlarmTest() throws IOException , InterruptedException {
+ public void listAlarmTest() throws IOException, InterruptedException {
respondWith(JSON_ALARMS);
- List extends Alarm> list=osv3().telemetry().alarms().list();
+ List extends Alarm> list = osv3().telemetry().alarms().list();
RecordedRequest listRequest = server.takeRequest();
- assertEquals(7,list.size());
+ assertEquals(7, list.size());
}
- public void getAlarmTest() throws IOException, InterruptedException{
+ public void getAlarmTest() throws IOException, InterruptedException {
respondWith(JSON_ALARM);
- Alarm alarm=osv3().telemetry().alarms().getById("03757eede9c540338e732d1a7fb07966");
+ Alarm alarm = osv3().telemetry().alarms().getById("03757eede9c540338e732d1a7fb07966");
RecordedRequest listRequest = server.takeRequest();
assertNotNull(alarm);
- assertEquals(alarm.getAlarmId(),"03757eede9c540338e732d1a7fb07966");
+ assertEquals(alarm.getAlarmId(), "03757eede9c540338e732d1a7fb07966");
}
-
}
diff --git a/core-test/src/main/java/org/openstack4j/api/telemetry/CapabilitiesTest.java b/core-test/src/main/java/org/openstack4j/api/telemetry/CapabilitiesTest.java
index 41b4bf9e0..4dd1a5566 100644
--- a/core-test/src/main/java/org/openstack4j/api/telemetry/CapabilitiesTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/telemetry/CapabilitiesTest.java
@@ -1,13 +1,13 @@
package org.openstack4j.api.telemetry;
-import static org.testng.Assert.assertNotNull;
-
-import java.io.IOException;
-
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.telemetry.Capabilities;
import org.testng.annotations.Test;
+import java.io.IOException;
+
+import static org.testng.Assert.assertNotNull;
+
@Test(suiteName = "Capabilities Tests")
public class CapabilitiesTest extends AbstractTest {
private static final String JSON_CAPABILITIES = "/telemetry/capabilities.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/telemetry/EventTests.java b/core-test/src/main/java/org/openstack4j/api/telemetry/EventTests.java
index 81b2e1c91..cd55045ac 100644
--- a/core-test/src/main/java/org/openstack4j/api/telemetry/EventTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/telemetry/EventTests.java
@@ -11,7 +11,7 @@
import static org.testng.Assert.assertEquals;
-@Test(suiteName="Event Tests")
+@Test(suiteName = "Event Tests")
public class EventTests extends AbstractTest {
private static final String JSON_EVENTS = "/telemetry/events.json";
diff --git a/core-test/src/main/java/org/openstack4j/api/telemetry/MeterSampleTests.java b/core-test/src/main/java/org/openstack4j/api/telemetry/MeterSampleTests.java
index f302aa50f..585831be7 100644
--- a/core-test/src/main/java/org/openstack4j/api/telemetry/MeterSampleTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/telemetry/MeterSampleTests.java
@@ -1,18 +1,15 @@
package org.openstack4j.api.telemetry;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertTrue;
-
-import java.io.IOException;
-import java.util.List;
-
+import okhttp3.mockwebserver.RecordedRequest;
import org.openstack4j.api.AbstractTest;
import org.openstack4j.model.telemetry.MeterSample;
import org.openstack4j.model.telemetry.SampleCriteria;
import org.testng.annotations.Test;
-import okhttp3.mockwebserver.RecordedRequest;
+import java.io.IOException;
+import java.util.List;
+
+import static org.testng.Assert.*;
@Test(suiteName = "Meter Sample Tests")
public class MeterSampleTests extends AbstractTest {
@@ -37,21 +34,21 @@ public void listMeterSampleTest() throws IOException, InterruptedException {
assertNotNull(sample.getMetadata());
assertEquals(sample.getMetadata().size(), 26);
}
-
+
@Test
public void listMeterSampleWithLimitTest() throws IOException, InterruptedException {
respondWith(JSON_METER_SAMPLES);
SampleCriteria sampleCriteria = SampleCriteria.create().limit(3);
-
- osv3().telemetry().meters().samples("cpu",sampleCriteria);
-
+
+ osv3().telemetry().meters().samples("cpu", sampleCriteria);
+
// Check that the list request is the one we expect
RecordedRequest listRequest = server.takeRequest();
assertNotNull(listRequest.getHeader("X-Auth-Token"));
assertTrue(listRequest.getRequestLine().contains("limit=3"));
}
-
+
@Test
public void listMeterSampleWithLargerLimitTest() throws IOException, InterruptedException {
respondWith(JSON_METER_SAMPLES);
diff --git a/core-test/src/main/java/org/openstack4j/api/telemetry/ResourceTest.java b/core-test/src/main/java/org/openstack4j/api/telemetry/ResourceTest.java
index 76efbaf17..e61e9117a 100644
--- a/core-test/src/main/java/org/openstack4j/api/telemetry/ResourceTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/telemetry/ResourceTest.java
@@ -1,14 +1,14 @@
package org.openstack4j.api.telemetry;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
+import org.openstack4j.api.AbstractTest;
+import org.openstack4j.model.telemetry.Resource;
+import org.testng.annotations.Test;
import java.io.IOException;
import java.util.List;
-import org.openstack4j.api.AbstractTest;
-import org.openstack4j.model.telemetry.Resource;
-import org.testng.annotations.Test;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertNotNull;
@Test(suiteName = "Resource Tests")
public class ResourceTest extends AbstractTest {
diff --git a/core-test/src/main/java/org/openstack4j/api/telemetry/SampleTests.java b/core-test/src/main/java/org/openstack4j/api/telemetry/SampleTests.java
index 1323dbe7f..a4c911a41 100644
--- a/core-test/src/main/java/org/openstack4j/api/telemetry/SampleTests.java
+++ b/core-test/src/main/java/org/openstack4j/api/telemetry/SampleTests.java
@@ -1,14 +1,14 @@
package org.openstack4j.api.telemetry;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
+import org.openstack4j.api.AbstractTest;
+import org.openstack4j.model.telemetry.Sample;
+import org.testng.annotations.Test;
import java.io.IOException;
import java.util.List;
-import org.openstack4j.api.AbstractTest;
-import org.openstack4j.model.telemetry.Sample;
-import org.testng.annotations.Test;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertNotNull;
@Test(suiteName = "Sample Tests")
public class SampleTests extends AbstractTest {
diff --git a/core-test/src/main/java/org/openstack4j/api/trove/DBDatabaseServiceImplTest.java b/core-test/src/main/java/org/openstack4j/api/trove/DBDatabaseServiceImplTest.java
index 855207aa0..ac00b5d82 100644
--- a/core-test/src/main/java/org/openstack4j/api/trove/DBDatabaseServiceImplTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/trove/DBDatabaseServiceImplTest.java
@@ -20,8 +20,8 @@
* Created by sumit gandhi on 8/22/2016.
*/
-@Test(suiteName="trove/databases")
-public class DBDatabaseServiceImplTest extends AbstractTest{
+@Test(suiteName = "trove/databases")
+public class DBDatabaseServiceImplTest extends AbstractTest {
private static final String TROVE_DATABASES = "/trove/databases.json";
@@ -31,17 +31,17 @@ protected Service service() {
}
@Test
- public void testListDatabases() throws Exception{
+ public void testListDatabases() throws Exception {
String databaseInstanceId = "54c91755526e44b9808385a263db4aa6";
respondWith(TROVE_DATABASES);
List extends Database> databases = osv2().trove().databaseService().list(databaseInstanceId);
assertEquals(5, databases.size());
Preconditions.checkNotNull(databases.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Database from List : "+ databases.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Database from List : " + databases.get(0));
}
@Test
- public void testCreateDatabase() throws Exception{
+ public void testCreateDatabase() throws Exception {
String databaseInstanceId = "54c91755526e44b9808385a263db4aa6";
respondWith(200);
TroveBuilders troveBuilders = new TroveBuilders();
diff --git a/core-test/src/main/java/org/openstack4j/api/trove/DBDatastoreServiceImplTest.java b/core-test/src/main/java/org/openstack4j/api/trove/DBDatastoreServiceImplTest.java
index 3e868e560..633c2f425 100644
--- a/core-test/src/main/java/org/openstack4j/api/trove/DBDatastoreServiceImplTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/trove/DBDatastoreServiceImplTest.java
@@ -15,8 +15,8 @@
* Created by sumit gandhi on 8/22/2016.
*/
-@Test(suiteName="trove/datastores")
-public class DBDatastoreServiceImplTest extends AbstractTest{
+@Test(suiteName = "trove/datastores")
+public class DBDatastoreServiceImplTest extends AbstractTest {
private static final String TROVE_DATASTORES = "/trove/datastores.json";
private static final String TROVE_DATASTORE = "/trove/datastore.json";
@@ -29,16 +29,16 @@ protected Service service() {
}
@Test
- public void testListDatastores() throws Exception{
+ public void testListDatastores() throws Exception {
respondWith(TROVE_DATASTORES);
List extends Datastore> datastores = osv2().trove().datastoreService().list();
assertEquals(2, datastores.size());
Preconditions.checkNotNull(datastores.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Datastore from List : "+ datastores.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Datastore from List : " + datastores.get(0));
}
@Test
- public void testGetOneDatabastore() throws Exception{
+ public void testGetOneDatabastore() throws Exception {
String datastoreId = "648d260d-c346-4145-8a2d-bbd4d78aedf6";
respondWith(TROVE_DATASTORE);
Datastore datastore = osv2().trove().datastoreService().get(datastoreId);
@@ -47,17 +47,17 @@ public void testGetOneDatabastore() throws Exception{
}
@Test
- public void testListDatastoreVersions() throws Exception{
+ public void testListDatastoreVersions() throws Exception {
String datastoreId = "648d260d-c346-4145-8a2d-bbd4d78aedf6";
respondWith(TROVE_DATASTORE_VERSIONS);
List extends DatastoreVersion> datastoreVersions = osv2().trove().datastoreService().listDatastoreVersions(datastoreId);
assertEquals(2, datastoreVersions.size());
Preconditions.checkNotNull(datastoreVersions.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Datastore version from List : "+ datastoreVersions.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Datastore version from List : " + datastoreVersions.get(0));
}
@Test
- public void testGetOneDatastoreVersion() throws Exception{
+ public void testGetOneDatastoreVersion() throws Exception {
String datastoreId = "648d260d-c346-4145-8a2d-bbd4d78aedf6";
String datastoreVersionId = "15b7d828-49a5-4d05-af65-e974e0aca7eb";
respondWith(TROVE_DATASTORE_VERSION);
diff --git a/core-test/src/main/java/org/openstack4j/api/trove/DBFlavorServiceImplTest.java b/core-test/src/main/java/org/openstack4j/api/trove/DBFlavorServiceImplTest.java
index 9ecfd7482..ccaccba43 100644
--- a/core-test/src/main/java/org/openstack4j/api/trove/DBFlavorServiceImplTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/trove/DBFlavorServiceImplTest.java
@@ -14,7 +14,7 @@
* Created by sumit gandhi on 8/22/2016.
*/
-@Test(suiteName="trove/flavors")
+@Test(suiteName = "trove/flavors")
public class DBFlavorServiceImplTest extends AbstractTest {
private static final String DATABASE_INSTANCE_FLAVORS = "/trove/instance_flavors.json";
@@ -26,24 +26,24 @@ protected Service service() {
}
@Test
- public void testListDatabaseInstanceFlavors() throws Exception{
+ public void testListDatabaseInstanceFlavors() throws Exception {
respondWith(DATABASE_INSTANCE_FLAVORS);
List extends Flavor> flavors = osv2().trove().flavorService().list();
assertEquals(2, flavors.size());
Preconditions.checkNotNull(flavors.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Flavor from List : "+flavors.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Flavor from List : " + flavors.get(0));
- for(int i=0; i instances = osv2().trove().instanceService().list();
assertEquals(1, instances.size());
diff --git a/core-test/src/main/java/org/openstack4j/api/trove/DBUserServiceImplTest.java b/core-test/src/main/java/org/openstack4j/api/trove/DBUserServiceImplTest.java
index bb070003c..cb9609a98 100644
--- a/core-test/src/main/java/org/openstack4j/api/trove/DBUserServiceImplTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/trove/DBUserServiceImplTest.java
@@ -31,21 +31,21 @@ protected Service service() {
}
@Test
- public void testListDatabaseUsers() throws Exception{
+ public void testListDatabaseUsers() throws Exception {
String databaseInstanceId = "54c91755526e44b9808385a263db4aa6";
respondWith(TROVE_DATABASE_USERS);
List extends DatabaseUser> databaseUsers = osv2().trove().databaseUsersService().list(databaseInstanceId);
assertEquals(2, databaseUsers.size());
Preconditions.checkNotNull(databaseUsers.get(0));
- Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Database User from List : "+ databaseUsers.get(0));
+ Logger.getLogger(getClass().getName()).info(getClass().getName() + " : Database User from List : " + databaseUsers.get(0));
}
@Test
- public void testCreateDatabaseUser() throws Exception{
+ public void testCreateDatabaseUser() throws Exception {
String databaseInstanceId = "54c91755526e44b9808385a263db4aa6";
respondWith(200);
TroveBuilders troveBuilders = new TroveBuilders();
- TroveDatabaseUser databaseUser = (TroveDatabaseUser)troveBuilders.databaseUserCreate().username("dbuser4")
+ TroveDatabaseUser databaseUser = (TroveDatabaseUser) troveBuilders.databaseUserCreate().username("dbuser4")
.password("password").build();
List troveDatabaseUsers = new ArrayList<>();
troveDatabaseUsers.add(databaseUser);
diff --git a/core-test/src/main/java/org/openstack4j/api/workflow/CronTriggerTest.java b/core-test/src/main/java/org/openstack4j/api/workflow/CronTriggerTest.java
index 7175e703e..064b92f01 100644
--- a/core-test/src/main/java/org/openstack4j/api/workflow/CronTriggerTest.java
+++ b/core-test/src/main/java/org/openstack4j/api/workflow/CronTriggerTest.java
@@ -1,8 +1,8 @@
package org.openstack4j.api.workflow;
import org.openstack4j.model.common.ActionResponse;
-import org.openstack4j.model.workflow.Scope;
import org.openstack4j.model.workflow.CronTrigger;
+import org.openstack4j.model.workflow.Scope;
import org.openstack4j.openstack.workflow.domain.MistralCronTrigger;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
@@ -10,9 +10,7 @@
import java.util.Collections;
import java.util.List;
-import static org.testng.Assert.assertEquals;
-import static org.testng.Assert.assertNotNull;
-import static org.testng.Assert.assertNull;
+import static org.testng.Assert.*;
/**
* Test cases for {@link CronTriggerService}.
diff --git a/core-test/src/main/java/org/openstack4j/openstack/common/ServiceTypeTest.java b/core-test/src/main/java/org/openstack4j/openstack/common/ServiceTypeTest.java
index 6952532cf..b43be131b 100644
--- a/core-test/src/main/java/org/openstack4j/openstack/common/ServiceTypeTest.java
+++ b/core-test/src/main/java/org/openstack4j/openstack/common/ServiceTypeTest.java
@@ -1,63 +1,65 @@
package org.openstack4j.openstack.common;
+import org.openstack4j.api.types.ServiceType;
+import org.testng.annotations.BeforeSuite;
+import org.testng.annotations.Test;
+
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
-import org.openstack4j.api.types.ServiceType;
+
import static org.testng.Assert.assertEquals;
-import org.testng.annotations.BeforeSuite;
-import org.testng.annotations.Test;
public class ServiceTypeTest {
- private Map> types;
+ private Map> types;
private Map> unknownTypes;
- @BeforeSuite
- public void setup() {
- types = new HashMap<>();
- types.put(ServiceType.IDENTITY, Arrays.asList("identity","identityV2","identityv3"));
- types.put(ServiceType.APP_CATALOG, Arrays.asList("application-catalog", "Application-catalogv2", "application-Catalogv3"));
- types.put(ServiceType.COMPUTE, Arrays.asList("compute", "COMPUTEv2", "computeV3"));
- types.put(ServiceType.IMAGE, Arrays.asList("image", "imageV2", "imagev3"));
- types.put(ServiceType.BLOCK_STORAGE, Arrays.asList("volume", "volumev1", "volumev2"));
- types.put(ServiceType.OBJECT_STORAGE, Arrays.asList("obJect-stOre", "object-storev2", "object-storev3"));
- types.put(ServiceType.NETWORK, Arrays.asList("network", "networkv2.0", "networkV3"));
- types.put(ServiceType.EC2, Arrays.asList("EC2","ec2V2","ec2v3"));
- types.put(ServiceType.TELEMETRY, Arrays.asList("metering","meteringV2.0","meteringv3"));
- types.put(ServiceType.TELEMETRY_AODH, Arrays.asList("alarming","alarmingV2","alarmingV3"));
- types.put(ServiceType.ORCHESTRATION, Arrays.asList("orchestration","orchestrationv2","orchestrationv3"));
- types.put(ServiceType.CLUSTERING, Arrays.asList("clustering","clusteringV2","clustering3"));
- types.put(ServiceType.SAHARA, Arrays.asList("data_processing","data_processingV1","data_processingv3"));
- types.put(ServiceType.SHARE, Arrays.asList("share","sharev2","shareV3"));
- types.put(ServiceType.DATABASE, Arrays.asList("database","databaseV2","Databasev3"));
- types.put(ServiceType.BARBICAN, Arrays.asList("key-manager","key-managerv2","key-managerv3"));
- types.put(ServiceType.TACKER, Arrays.asList("nfv-orchestration","nfv-orchestrationv2","nfv-orchestration3"));
- types.put(ServiceType.ARTIFACT, Arrays.asList("artifact","artifactv2","artifactv3"));
- types.put(ServiceType.MAGNUM, Arrays.asList("container","ContainerV3","containerv1"));
- types.put(ServiceType.DNS, Arrays.asList("dns","dnsv2","dnsV3"));
- types.put(ServiceType.WORKFLOW, Arrays.asList("workflow","workflowv3","workflowv2"));
+ @BeforeSuite
+ public void setup() {
+ types = new HashMap<>();
+ types.put(ServiceType.IDENTITY, Arrays.asList("identity", "identityV2", "identityv3"));
+ types.put(ServiceType.APP_CATALOG, Arrays.asList("application-catalog", "Application-catalogv2", "application-Catalogv3"));
+ types.put(ServiceType.COMPUTE, Arrays.asList("compute", "COMPUTEv2", "computeV3"));
+ types.put(ServiceType.IMAGE, Arrays.asList("image", "imageV2", "imagev3"));
+ types.put(ServiceType.BLOCK_STORAGE, Arrays.asList("volume", "volumev1", "volumev2"));
+ types.put(ServiceType.OBJECT_STORAGE, Arrays.asList("obJect-stOre", "object-storev2", "object-storev3"));
+ types.put(ServiceType.NETWORK, Arrays.asList("network", "networkv2.0", "networkV3"));
+ types.put(ServiceType.EC2, Arrays.asList("EC2", "ec2V2", "ec2v3"));
+ types.put(ServiceType.TELEMETRY, Arrays.asList("metering", "meteringV2.0", "meteringv3"));
+ types.put(ServiceType.TELEMETRY_AODH, Arrays.asList("alarming", "alarmingV2", "alarmingV3"));
+ types.put(ServiceType.ORCHESTRATION, Arrays.asList("orchestration", "orchestrationv2", "orchestrationv3"));
+ types.put(ServiceType.CLUSTERING, Arrays.asList("clustering", "clusteringV2", "clustering3"));
+ types.put(ServiceType.SAHARA, Arrays.asList("data_processing", "data_processingV1", "data_processingv3"));
+ types.put(ServiceType.SHARE, Arrays.asList("share", "sharev2", "shareV3"));
+ types.put(ServiceType.DATABASE, Arrays.asList("database", "databaseV2", "Databasev3"));
+ types.put(ServiceType.BARBICAN, Arrays.asList("key-manager", "key-managerv2", "key-managerv3"));
+ types.put(ServiceType.TACKER, Arrays.asList("nfv-orchestration", "nfv-orchestrationv2", "nfv-orchestration3"));
+ types.put(ServiceType.ARTIFACT, Arrays.asList("artifact", "artifactv2", "artifactv3"));
+ types.put(ServiceType.MAGNUM, Arrays.asList("container", "ContainerV3", "containerv1"));
+ types.put(ServiceType.DNS, Arrays.asList("dns", "dnsv2", "dnsV3"));
+ types.put(ServiceType.WORKFLOW, Arrays.asList("workflow", "workflowv3", "workflowv2"));
- unknownTypes = new HashMap();
- unknownTypes.put(ServiceType.ORCHESTRATION, Arrays.asList("heat-cfg","heatother","heatvm","heat-cfg4"));
+ unknownTypes = new HashMap();
+ unknownTypes.put(ServiceType.ORCHESTRATION, Arrays.asList("heat-cfg", "heatother", "heatvm", "heat-cfg4"));
- }
+ }
- @Test
- public void testNameResolveByType() {
+ @Test
+ public void testNameResolveByType() {
for (Map.Entry> entry : types.entrySet()) {
- for(String type : entry.getValue()){
- assertEquals(entry.getKey(), ServiceType.forName(type));
- }
- }
- }
+ for (String type : entry.getValue()) {
+ assertEquals(entry.getKey(), ServiceType.forName(type));
+ }
+ }
+ }
@Test
public void testNameNotResolved() {
for (Map.Entry> entry : unknownTypes.entrySet()) {
- for(String type : entry.getValue()){
+ for (String type : entry.getValue()) {
assertEquals(ServiceType.UNKNOWN, ServiceType.forName(type));
}
}
diff --git a/core-test/src/main/java/org/openstack4j/openstack/common/TelemetryDateDeserializerTest.java b/core-test/src/main/java/org/openstack4j/openstack/common/TelemetryDateDeserializerTest.java
index ec64f0cb9..53118bc8b 100644
--- a/core-test/src/main/java/org/openstack4j/openstack/common/TelemetryDateDeserializerTest.java
+++ b/core-test/src/main/java/org/openstack4j/openstack/common/TelemetryDateDeserializerTest.java
@@ -1,6 +1,10 @@
package org.openstack4j.openstack.common;
-import static org.testng.Assert.assertEquals;
+import com.fasterxml.jackson.core.JsonParseException;
+import com.fasterxml.jackson.core.JsonParser;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.testng.annotations.BeforeSuite;
+import org.testng.annotations.Test;
import java.io.ByteArrayInputStream;
import java.io.IOException;
@@ -10,52 +14,47 @@
import java.util.Date;
import java.util.TimeZone;
-import org.testng.annotations.BeforeSuite;
-import org.testng.annotations.Test;
-
-import com.fasterxml.jackson.core.JsonParseException;
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.databind.ObjectMapper;
+import static org.testng.Assert.assertEquals;
public class TelemetryDateDeserializerTest {
- private ObjectMapper mapper;
- private TelemetryDateDeserializer deserializer;
-
- @BeforeSuite
- public void setup() {
- mapper = new ObjectMapper();
- deserializer = new TelemetryDateDeserializer();
- }
-
- @Test
- public void testShortDateFormatDeserialize() throws JsonParseException, IOException, ParseException {
- Date actual = deserializer.deserialize(getParser("2017-06-28T14:00:00"), mapper.getDeserializationContext());
-
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
- sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
- Date expected = sdf.parse("2017-06-28T14:00:00.000");
-
- assertEquals(actual, expected);
- }
-
- @Test
- public void testLongDateFormatDeserialize() throws JsonParseException, IOException, ParseException {
- Date actual = deserializer.deserialize(getParser("2017-06-28T14:00:00.123000"), mapper.getDeserializationContext());
-
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
- sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
- Date expected = sdf.parse("2017-06-28T14:00:00.123");
-
- assertEquals(actual, expected);
- }
-
- private JsonParser getParser(String dateString) throws JsonParseException, IOException {
- JsonParser parser = mapper.getFactory().createParser(new ByteArrayInputStream(String
- .format("{\"date\":\"%s\"}", dateString).getBytes(StandardCharsets.UTF_8)));
- parser.nextToken();
- parser.nextToken();
- parser.nextToken();
- return parser;
- }
+ private ObjectMapper mapper;
+ private TelemetryDateDeserializer deserializer;
+
+ @BeforeSuite
+ public void setup() {
+ mapper = new ObjectMapper();
+ deserializer = new TelemetryDateDeserializer();
+ }
+
+ @Test
+ public void testShortDateFormatDeserialize() throws JsonParseException, IOException, ParseException {
+ Date actual = deserializer.deserialize(getParser("2017-06-28T14:00:00"), mapper.getDeserializationContext());
+
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
+ sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
+ Date expected = sdf.parse("2017-06-28T14:00:00.000");
+
+ assertEquals(actual, expected);
+ }
+
+ @Test
+ public void testLongDateFormatDeserialize() throws JsonParseException, IOException, ParseException {
+ Date actual = deserializer.deserialize(getParser("2017-06-28T14:00:00.123000"), mapper.getDeserializationContext());
+
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
+ sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
+ Date expected = sdf.parse("2017-06-28T14:00:00.123");
+
+ assertEquals(actual, expected);
+ }
+
+ private JsonParser getParser(String dateString) throws JsonParseException, IOException {
+ JsonParser parser = mapper.getFactory().createParser(new ByteArrayInputStream(String
+ .format("{\"date\":\"%s\"}", dateString).getBytes(StandardCharsets.UTF_8)));
+ parser.nextToken();
+ parser.nextToken();
+ parser.nextToken();
+ return parser;
+ }
}
diff --git a/core-test/src/main/java/org/openstack4j/openstack/internal/MicroVersionedServiceTest.java b/core-test/src/main/java/org/openstack4j/openstack/internal/MicroVersionedServiceTest.java
index 15ff69d1a..b0d6d608d 100644
--- a/core-test/src/main/java/org/openstack4j/openstack/internal/MicroVersionedServiceTest.java
+++ b/core-test/src/main/java/org/openstack4j/openstack/internal/MicroVersionedServiceTest.java
@@ -3,13 +3,9 @@
import org.openstack4j.api.AbstractTest;
import org.openstack4j.api.types.ServiceType;
import org.openstack4j.core.transport.HttpMethod;
-import org.openstack4j.core.transport.HttpRequest;
-import org.openstack4j.openstack.internal.MicroVersion;
-import org.openstack4j.openstack.internal.MicroVersionedOpenStackService;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
-import java.lang.reflect.Method;
import java.util.Map;
import static org.testng.Assert.assertEquals;
diff --git a/core-test/src/main/resources/all.xml b/core-test/src/main/resources/all.xml
index eaa03ab60..03c96249f 100644
--- a/core-test/src/main/resources/all.xml
+++ b/core-test/src/main/resources/all.xml
@@ -1,12 +1,12 @@
-
+
-
+
-
+
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/aggregate_create.json b/core-test/src/main/resources/compute/aggregate_create.json
index ec9eb0442..ebe9ac9ed 100644
--- a/core-test/src/main/resources/compute/aggregate_create.json
+++ b/core-test/src/main/resources/compute/aggregate_create.json
@@ -1,7 +1,6 @@
{
- "aggregate":
- {
- "name": "testAggregate01",
- "availability_zone": "nova"
- }
+ "aggregate": {
+ "name": "testAggregate01",
+ "availability_zone": "nova"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/aggregates.json b/core-test/src/main/resources/compute/aggregates.json
index 94910717b..2331a33cd 100644
--- a/core-test/src/main/resources/compute/aggregates.json
+++ b/core-test/src/main/resources/compute/aggregates.json
@@ -1,35 +1,35 @@
{
- "aggregates": [
- {
- "availability_zone": "uec_zone_1",
- "create": 1485163578000,
- "created_at": 1485163578000,
- "deleted": false,
- "hosts": [
- "node-70.domain.tld",
- "node-68.domain.tld",
- "node-69.domain.tld"
- ],
- "id": "8",
- "metadata": {
- "availability_zone": "uec_zone_1"
- },
- "name": "aggregate_zl_test"
- },
- {
- "availability_zone": "uec_zone_1",
- "create": 1486968614000,
- "created_at": 1486968614000,
- "deleted": false,
- "hosts": [
- "node-70.domain.tld",
- "node-69.domain.tld"
- ],
- "id": "9",
- "metadata": {
- "availability_zone": "uec_zone_1"
- },
- "name": "cyTest01"
- }
- ]
+ "aggregates": [
+ {
+ "availability_zone": "uec_zone_1",
+ "create": 1485163578000,
+ "created_at": 1485163578000,
+ "deleted": false,
+ "hosts": [
+ "node-70.domain.tld",
+ "node-68.domain.tld",
+ "node-69.domain.tld"
+ ],
+ "id": "8",
+ "metadata": {
+ "availability_zone": "uec_zone_1"
+ },
+ "name": "aggregate_zl_test"
+ },
+ {
+ "availability_zone": "uec_zone_1",
+ "create": 1486968614000,
+ "created_at": 1486968614000,
+ "deleted": false,
+ "hosts": [
+ "node-70.domain.tld",
+ "node-69.domain.tld"
+ ],
+ "id": "9",
+ "metadata": {
+ "availability_zone": "uec_zone_1"
+ },
+ "name": "cyTest01"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/ext/instance_action.json b/core-test/src/main/resources/compute/ext/instance_action.json
index f259deefd..429f2f0fd 100644
--- a/core-test/src/main/resources/compute/ext/instance_action.json
+++ b/core-test/src/main/resources/compute/ext/instance_action.json
@@ -1,27 +1,27 @@
{
- "instanceAction": {
- "action": "reboot",
- "events": [
- {
- "event": "schedule",
- "finish_time": "2012-12-05T01:02:00.000000",
- "result": "Success",
- "start_time": "2012-12-05T01:00:02.000000",
- "traceback": ""
- },
- {
- "event": "compute_create",
- "finish_time": "2012-12-05T01:04:00.000000",
- "result": "Success",
- "start_time": "2012-12-05T01:03:00.000000",
- "traceback": ""
- }
- ],
- "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
- "message": "",
- "project_id": "147",
- "request_id": "req-3293a3f1-b44c-4609-b8d2-d81b105636b8",
- "start_time": "2012-12-05T00:00:00.000000",
- "user_id": "789"
- }
+ "instanceAction": {
+ "action": "reboot",
+ "events": [
+ {
+ "event": "schedule",
+ "finish_time": "2012-12-05T01:02:00.000000",
+ "result": "Success",
+ "start_time": "2012-12-05T01:00:02.000000",
+ "traceback": ""
+ },
+ {
+ "event": "compute_create",
+ "finish_time": "2012-12-05T01:04:00.000000",
+ "result": "Success",
+ "start_time": "2012-12-05T01:03:00.000000",
+ "traceback": ""
+ }
+ ],
+ "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
+ "message": "",
+ "project_id": "147",
+ "request_id": "req-3293a3f1-b44c-4609-b8d2-d81b105636b8",
+ "start_time": "2012-12-05T00:00:00.000000",
+ "user_id": "789"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/ext/instance_actions.json b/core-test/src/main/resources/compute/ext/instance_actions.json
index 91289589a..cff18a035 100644
--- a/core-test/src/main/resources/compute/ext/instance_actions.json
+++ b/core-test/src/main/resources/compute/ext/instance_actions.json
@@ -1,22 +1,22 @@
{
- "instanceActions": [
- {
- "action": "resize",
- "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
- "message": "",
- "project_id": "842",
- "request_id": "req-25517360-b757-47d3-be45-0e8d2a01b36a",
- "start_time": "2012-12-05T01:00:00.000000",
- "user_id": "789"
- },
- {
- "action": "reboot",
- "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
- "message": "",
- "project_id": "147",
- "request_id": "req-3293a3f1-b44c-4609-b8d2-d81b105636b8",
- "start_time": "2012-12-05T00:00:00.000000",
- "user_id": "789"
- }
- ]
+ "instanceActions": [
+ {
+ "action": "resize",
+ "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
+ "message": "",
+ "project_id": "842",
+ "request_id": "req-25517360-b757-47d3-be45-0e8d2a01b36a",
+ "start_time": "2012-12-05T01:00:00.000000",
+ "user_id": "789"
+ },
+ {
+ "action": "reboot",
+ "instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
+ "message": "",
+ "project_id": "147",
+ "request_id": "req-3293a3f1-b44c-4609-b8d2-d81b105636b8",
+ "start_time": "2012-12-05T00:00:00.000000",
+ "user_id": "789"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/extensions.json b/core-test/src/main/resources/compute/extensions.json
index f98707a29..6c3b3de86 100644
--- a/core-test/src/main/resources/compute/extensions.json
+++ b/core-test/src/main/resources/compute/extensions.json
@@ -1,24 +1,22 @@
{
- "extensions":[
+ "extensions": [
{
- "updated":"2014-12-03T00:00:00Z",
- "name":"Multinic",
- "links":[
-
+ "updated": "2014-12-03T00:00:00Z",
+ "name": "Multinic",
+ "links": [
],
- "namespace":"http://docs.openstack.org/compute/ext/fake_xml",
- "alias":"NMN",
- "description":"Multiple network support."
+ "namespace": "http://docs.openstack.org/compute/ext/fake_xml",
+ "alias": "NMN",
+ "description": "Multiple network support."
},
{
- "updated":"2014-12-03T00:00:00Z",
- "name":"DiskConfig",
- "links":[
-
+ "updated": "2014-12-03T00:00:00Z",
+ "name": "DiskConfig",
+ "links": [
],
- "namespace":"http://docs.openstack.org/compute/ext/fake_xml",
- "alias":"OS-DCF",
- "description":"Disk Management Extension."
+ "namespace": "http://docs.openstack.org/compute/ext/fake_xml",
+ "alias": "OS-DCF",
+ "description": "Disk Management Extension."
}
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/flavor.json b/core-test/src/main/resources/compute/flavor.json
index f0c637eeb..c4bc19be9 100644
--- a/core-test/src/main/resources/compute/flavor.json
+++ b/core-test/src/main/resources/compute/flavor.json
@@ -1,23 +1,23 @@
{
- "flavor": {
- "disk": 1,
- "id": "1",
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/flavors/1",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/flavors/1",
- "rel": "bookmark"
- }
- ],
- "name": "m1.tiny",
- "ram": 512,
- "os-flavor-access:is_public": true,
- "OS-FLV-EXT-DATA:ephemeral": 0,
- "OS-FLV-DISABLED:disabled": false,
- "rxtx_factor": 2.0,
- "vcpus": 1
- }
+ "flavor": {
+ "disk": 1,
+ "id": "1",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/flavors/1",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com/openstack/flavors/1",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "m1.tiny",
+ "ram": 512,
+ "os-flavor-access:is_public": true,
+ "OS-FLV-EXT-DATA:ephemeral": 0,
+ "OS-FLV-DISABLED:disabled": false,
+ "rxtx_factor": 2.0,
+ "vcpus": 1
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/flavor_create.json b/core-test/src/main/resources/compute/flavor_create.json
index c8aeb3f7a..deff2600b 100644
--- a/core-test/src/main/resources/compute/flavor_create.json
+++ b/core-test/src/main/resources/compute/flavor_create.json
@@ -1,13 +1,13 @@
-{
- "flavor":{
- "vcpus":1,
- "disk":2,
- "name":"m1.tiny",
- "os-flavor-access:is_public":true,
- "rxtx_factor":2.0,
- "OS-FLV-EXT-DATA:ephemeral":1,
- "ram":128,
- "id":"1",
- "swap":1
- }
+{
+ "flavor": {
+ "vcpus": 1,
+ "disk": 2,
+ "name": "m1.tiny",
+ "os-flavor-access:is_public": true,
+ "rxtx_factor": 2.0,
+ "OS-FLV-EXT-DATA:ephemeral": 1,
+ "ram": 128,
+ "id": "1",
+ "swap": 1
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/flavors.json b/core-test/src/main/resources/compute/flavors.json
index ab86d2a52..9a924267f 100644
--- a/core-test/src/main/resources/compute/flavors.json
+++ b/core-test/src/main/resources/compute/flavors.json
@@ -1,74 +1,74 @@
{
- "flavors": [
+ "flavors": [
+ {
+ "id": "1",
+ "links": [
{
- "id": "1",
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/flavors/1",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/flavors/1",
- "rel": "bookmark"
- }
- ],
- "name": "m1.tiny"
+ "href": "http://openstack.example.com/v2/openstack/flavors/1",
+ "rel": "self"
},
{
- "id": "2",
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/flavors/2",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/flavors/2",
- "rel": "bookmark"
- }
- ],
- "name": "m1.small"
+ "href": "http://openstack.example.com/openstack/flavors/1",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "m1.tiny"
+ },
+ {
+ "id": "2",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/flavors/2",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com/openstack/flavors/2",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "m1.small"
+ },
+ {
+ "id": "3",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/flavors/3",
+ "rel": "self"
},
{
- "id": "3",
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/flavors/3",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/flavors/3",
- "rel": "bookmark"
- }
- ],
- "name": "m1.medium"
+ "href": "http://openstack.example.com/openstack/flavors/3",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "m1.medium"
+ },
+ {
+ "id": "4",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/flavors/4",
+ "rel": "self"
},
{
- "id": "4",
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/flavors/4",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/flavors/4",
- "rel": "bookmark"
- }
- ],
- "name": "m1.large"
+ "href": "http://openstack.example.com/openstack/flavors/4",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "m1.large"
+ },
+ {
+ "id": "5",
+ "links": [
+ {
+ "href": "http://openstack.example.com/v2/openstack/flavors/5",
+ "rel": "self"
},
{
- "id": "5",
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/flavors/5",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/flavors/5",
- "rel": "bookmark"
- }
- ],
- "name": "m1.xlarge"
+ "href": "http://openstack.example.com/openstack/flavors/5",
+ "rel": "bookmark"
}
- ]
+ ],
+ "name": "m1.xlarge"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/flavors_detailed.json b/core-test/src/main/resources/compute/flavors_detailed.json
index e59b5baf4..c5b6de047 100644
--- a/core-test/src/main/resources/compute/flavors_detailed.json
+++ b/core-test/src/main/resources/compute/flavors_detailed.json
@@ -1,48 +1,48 @@
{
- "flavors": [
+ "flavors": [
+ {
+ "name": "m1.nano",
+ "links": [
{
- "name": "m1.nano",
- "links": [
- {
- "href": "http://openstack.example.com:8774/v2.1/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/0",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com:8774/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/0",
- "rel": "bookmark"
- }
- ],
- "ram": 64,
- "OS-FLV-DISABLED:disabled": false,
- "vcpus": 1,
- "swap": "",
- "os-flavor-access:is_public": true,
- "rxtx_factor": 1,
- "OS-FLV-EXT-DATA:ephemeral": 0,
- "disk": 1,
- "id": "0"
+ "href": "http://openstack.example.com:8774/v2.1/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/0",
+ "rel": "self"
},
{
- "name": "m1.tiny",
- "links": [
- {
- "href": "http://openstack.example.com:8774/v2.1/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/1",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com:8774/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/1",
- "rel": "bookmark"
- }
- ],
- "ram": 512,
- "OS-FLV-DISABLED:disabled": false,
- "vcpus": 1,
- "swap": "",
- "os-flavor-access:is_public": true,
- "rxtx_factor": 1,
- "OS-FLV-EXT-DATA:ephemeral": 0,
- "disk": 1,
- "id": "1"
+ "href": "http://openstack.example.com:8774/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/0",
+ "rel": "bookmark"
}
- ]
+ ],
+ "ram": 64,
+ "OS-FLV-DISABLED:disabled": false,
+ "vcpus": 1,
+ "swap": "",
+ "os-flavor-access:is_public": true,
+ "rxtx_factor": 1,
+ "OS-FLV-EXT-DATA:ephemeral": 0,
+ "disk": 1,
+ "id": "0"
+ },
+ {
+ "name": "m1.tiny",
+ "links": [
+ {
+ "href": "http://openstack.example.com:8774/v2.1/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/1",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com:8774/8fd2b4f2b5cf4fa184e5c3c5020408c7/flavors/1",
+ "rel": "bookmark"
+ }
+ ],
+ "ram": 512,
+ "OS-FLV-DISABLED:disabled": false,
+ "vcpus": 1,
+ "swap": "",
+ "os-flavor-access:is_public": true,
+ "rxtx_factor": 1,
+ "OS-FLV-EXT-DATA:ephemeral": 0,
+ "disk": 1,
+ "id": "1"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/floatingips.json b/core-test/src/main/resources/compute/floatingips.json
index 9e79b02db..fd64d54ce 100644
--- a/core-test/src/main/resources/compute/floatingips.json
+++ b/core-test/src/main/resources/compute/floatingips.json
@@ -1,33 +1,39 @@
{
- "floating_ips": [{
- "instance_id": null,
- "ip": "192.168.0.100",
- "fixed_ip": null,
- "id": "f8d696d4-573d-4750-baa5-2cf75771a824",
- "pool": "floating"
- }, {
- "instance_id": null,
- "ip": "192.168.0.101",
- "fixed_ip": null,
- "id": "88b80e99-e719-453d-a16b-9ae8abae3c7c",
- "pool": "floating"
- }, {
- "instance_id": null,
- "ip": "192.168.0.102",
- "fixed_ip": null,
- "id": "05d6f197-57d4-44b7-9ad5-994c8f8fe250",
- "pool": "floating"
- }, {
- "instance_id": null,
- "ip": "192.168.0.103",
- "fixed_ip": null,
- "id": "74db2673-23dd-4f44-8b01-4d92a023bb46",
- "pool": "floating"
- }, {
- "instance_id": null,
- "ip": "192.168.0.104",
- "fixed_ip": null,
- "id": "940484f3-d76e-4c18-9bbe-80901d6dbaa6",
- "pool": "floating"
- }]
+ "floating_ips": [
+ {
+ "instance_id": null,
+ "ip": "192.168.0.100",
+ "fixed_ip": null,
+ "id": "f8d696d4-573d-4750-baa5-2cf75771a824",
+ "pool": "floating"
+ },
+ {
+ "instance_id": null,
+ "ip": "192.168.0.101",
+ "fixed_ip": null,
+ "id": "88b80e99-e719-453d-a16b-9ae8abae3c7c",
+ "pool": "floating"
+ },
+ {
+ "instance_id": null,
+ "ip": "192.168.0.102",
+ "fixed_ip": null,
+ "id": "05d6f197-57d4-44b7-9ad5-994c8f8fe250",
+ "pool": "floating"
+ },
+ {
+ "instance_id": null,
+ "ip": "192.168.0.103",
+ "fixed_ip": null,
+ "id": "74db2673-23dd-4f44-8b01-4d92a023bb46",
+ "pool": "floating"
+ },
+ {
+ "instance_id": null,
+ "ip": "192.168.0.104",
+ "fixed_ip": null,
+ "id": "940484f3-d76e-4c18-9bbe-80901d6dbaa6",
+ "pool": "floating"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/host_describe.json b/core-test/src/main/resources/compute/host_describe.json
index fc19d3a17..cd40ce84a 100644
--- a/core-test/src/main/resources/compute/host_describe.json
+++ b/core-test/src/main/resources/compute/host_describe.json
@@ -1,31 +1,31 @@
{
- "host": [
- {
- "resource": {
- "cpu": 1,
- "disk_gb": 1028,
- "host": "c1a7de0ac9d94e4baceae031d05caae3",
- "memory_mb": 8192,
- "project": "(total)"
- }
- },
- {
- "resource": {
- "cpu": 0,
- "disk_gb": 0,
- "host": "c1a7de0ac9d94e4baceae031d05caae3",
- "memory_mb": 512,
- "project": "(used_now)"
- }
- },
- {
- "resource": {
- "cpu": 0,
- "disk_gb": 0,
- "host": "c1a7de0ac9d94e4baceae031d05caae3",
- "memory_mb": 0,
- "project": "(used_max)"
- }
- }
- ]
+ "host": [
+ {
+ "resource": {
+ "cpu": 1,
+ "disk_gb": 1028,
+ "host": "c1a7de0ac9d94e4baceae031d05caae3",
+ "memory_mb": 8192,
+ "project": "(total)"
+ }
+ },
+ {
+ "resource": {
+ "cpu": 0,
+ "disk_gb": 0,
+ "host": "c1a7de0ac9d94e4baceae031d05caae3",
+ "memory_mb": 512,
+ "project": "(used_now)"
+ }
+ },
+ {
+ "resource": {
+ "cpu": 0,
+ "disk_gb": 0,
+ "host": "c1a7de0ac9d94e4baceae031d05caae3",
+ "memory_mb": 0,
+ "project": "(used_max)"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/migrations.json b/core-test/src/main/resources/compute/migrations.json
index 91775be77..99d43355b 100644
--- a/core-test/src/main/resources/compute/migrations.json
+++ b/core-test/src/main/resources/compute/migrations.json
@@ -1,32 +1,32 @@
{
- "migrations": [
- {
- "created_at": "2012-10-29T13:42:02.000000",
- "dest_compute": "compute2",
- "dest_host": "1.2.3.4",
- "dest_node": "node2",
- "id": 1234,
- "instance_uuid": "instance_id_123",
- "new_instance_type_id": 2,
- "old_instance_type_id": 1,
- "source_compute": "compute1",
- "source_node": "node1",
- "status": "Done",
- "updated_at": "2012-10-29T13:42:02.000000"
- },
- {
- "created_at": "2013-10-22T13:42:02.000000",
- "dest_compute": "compute20",
- "dest_host": "5.6.7.8",
- "dest_node": "node20",
- "id": 5678,
- "instance_uuid": "instance_id_456",
- "new_instance_type_id": 6,
- "old_instance_type_id": 5,
- "source_compute": "compute10",
- "source_node": "node10",
- "status": "Done",
- "updated_at": "2013-10-22T13:42:02.000000"
- }
- ]
+ "migrations": [
+ {
+ "created_at": "2012-10-29T13:42:02.000000",
+ "dest_compute": "compute2",
+ "dest_host": "1.2.3.4",
+ "dest_node": "node2",
+ "id": 1234,
+ "instance_uuid": "instance_id_123",
+ "new_instance_type_id": 2,
+ "old_instance_type_id": 1,
+ "source_compute": "compute1",
+ "source_node": "node1",
+ "status": "Done",
+ "updated_at": "2012-10-29T13:42:02.000000"
+ },
+ {
+ "created_at": "2013-10-22T13:42:02.000000",
+ "dest_compute": "compute20",
+ "dest_host": "5.6.7.8",
+ "dest_node": "node20",
+ "id": 5678,
+ "instance_uuid": "instance_id_456",
+ "new_instance_type_id": 6,
+ "old_instance_type_id": 5,
+ "source_compute": "compute10",
+ "source_node": "node10",
+ "status": "Done",
+ "updated_at": "2013-10-22T13:42:02.000000"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/server_console_output.json b/core-test/src/main/resources/compute/server_console_output.json
index a8b20c6af..fe3ebcb78 100644
--- a/core-test/src/main/resources/compute/server_console_output.json
+++ b/core-test/src/main/resources/compute/server_console_output.json
@@ -1,3 +1,3 @@
{
- "output": "open-vm-tools: not starting as this is not a VMware VM\nlandscape-client is not configured, please run landscape-config.\n * Stopping save kernel messages[74G[ OK ]\n * Stopping CPU interrupts balancing daemon[74G[ OK ]\n * Starting automatic crash report generation[74G[ OK ]\n * Restoring resolver state... [80G [74G[ OK ]\n * Starting Seed the pseudo random number generator on first boot[74G[[31mfail[39;49m]\n * Stopping System V runlevel compatibility[74G[ OK ]\nGenerating locales...\n en_US.UTF-8... up-to-date\nGeneration complete.\n\nUbuntu 14.04.1 LTS 05184ba3-00ba-4fbc-b7a2-03b62b884931 ttyS0\n\n05184ba3-00ba-4fbc-b7a2-03b62b884931 login: Cloud-init v. 0.7.5 running 'modules:final' at Fri, 24 Feb 2017 17:01:09 +0000. Up 22.35 seconds.\n\nci-info: ++++++++++Authorized keys from /home/ubuntu/.ssh/authorized_keys for user ubuntu+++++++++++\nci-info: +---------+-------------------------------------------------+---------+-------------------+\nci-info: | Keytype | Fingerprint (md5) | Options | Comment |\nci-info: +---------+-------------------------------------------------+---------+-------------------+\nci-info: | ssh-rsa | 93:99:62:d3:db:ec:d9:b1:8b:95:dd:a4:b2:80:2a:04 | - | Generated-by-Nova |\nci-info: +---------+-------------------------------------------------+---------+-------------------+\nec2: \nec2: #############################################################\nec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----\nec2: 1024 7e:05:9e:2c:11:98:40:65:88:7b:f5:19:cc:fa:22:04 root@05184ba3-00ba-4fbc-b7a2-03b62b884931 (DSA)\nec2: 256 31:04:ad:9f:f6:4b:b3:9c:f7:ef:77:e5:8c:13:0d:88 root@05184ba3-00ba-4fbc-b7a2-03b62b884931 (ECDSA)\nec2: 2048 27:23:99:cd:4f:77:95:06:72:e1:ed:81:73:d4:d2:df root@05184ba3-00ba-4fbc-b7a2-03b62b884931 (RSA)\nec2: -----END SSH HOST KEY FINGERPRINTS-----\nec2: #############################################################\n-----BEGIN SSH HOST KEY KEYS-----\necdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGAuTHYYc8PW2ASU/qeqt6b9aP5QHr+sLKNZ+COeEBjEcSPcXfWLOTvvhaYtd7qV/BJ64brpRgnMaPVYkkGYw58= root@05184ba3-00ba-4fbc-b7a2-03b62b884931\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD32ZzkFehp0d6Iq3GcSTBeIt5Wx97g7JtsD/hVbv/8iQQzdMB4/M2wZ796FbqECEsi34+NUCm0RazLIBpeQ26Q9ffFMMag7T+0RypeeDYnj/2mr8KZbSM+Fj7o6E2JFlfPRDVlNhP1UMY8TeMr4T7tEs6IYEmxyBrXCNJ5aPxbfTVQrq9dphDhCtM/sBofbR3T71lgvTgHmZJp7ItFOokIa1LWs6uMP3LEROBmyTHDYPBDrTmaFZkx5gG0mBQlU2QqfA/7XSApLDZmCr/s7xgMfKy0NwONu/biNfFoPgRFKPM1NrV86P7CFMEyjN05bYAFe4xhO2tg2vjM07kxO2zr root@05184ba3-00ba-4fbc-b7a2-03b62b884931\n-----END SSH HOST KEY KEYS-----\nCloud-init v. 0.7.5 finished at Fri, 24 Feb 2017 17:01:10 +0000. Datasource DataSourceOpenStack [net,ver=2]. Up 22.60 seconds\n"
+ "output": "open-vm-tools: not starting as this is not a VMware VM\nlandscape-client is not configured, please run landscape-config.\n * Stopping save kernel messages[74G[ OK ]\n * Stopping CPU interrupts balancing daemon[74G[ OK ]\n * Starting automatic crash report generation[74G[ OK ]\n * Restoring resolver state... [80G [74G[ OK ]\n * Starting Seed the pseudo random number generator on first boot[74G[[31mfail[39;49m]\n * Stopping System V runlevel compatibility[74G[ OK ]\nGenerating locales...\n en_US.UTF-8... up-to-date\nGeneration complete.\n\nUbuntu 14.04.1 LTS 05184ba3-00ba-4fbc-b7a2-03b62b884931 ttyS0\n\n05184ba3-00ba-4fbc-b7a2-03b62b884931 login: Cloud-init v. 0.7.5 running 'modules:final' at Fri, 24 Feb 2017 17:01:09 +0000. Up 22.35 seconds.\n\nci-info: ++++++++++Authorized keys from /home/ubuntu/.ssh/authorized_keys for user ubuntu+++++++++++\nci-info: +---------+-------------------------------------------------+---------+-------------------+\nci-info: | Keytype | Fingerprint (md5) | Options | Comment |\nci-info: +---------+-------------------------------------------------+---------+-------------------+\nci-info: | ssh-rsa | 93:99:62:d3:db:ec:d9:b1:8b:95:dd:a4:b2:80:2a:04 | - | Generated-by-Nova |\nci-info: +---------+-------------------------------------------------+---------+-------------------+\nec2: \nec2: #############################################################\nec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----\nec2: 1024 7e:05:9e:2c:11:98:40:65:88:7b:f5:19:cc:fa:22:04 root@05184ba3-00ba-4fbc-b7a2-03b62b884931 (DSA)\nec2: 256 31:04:ad:9f:f6:4b:b3:9c:f7:ef:77:e5:8c:13:0d:88 root@05184ba3-00ba-4fbc-b7a2-03b62b884931 (ECDSA)\nec2: 2048 27:23:99:cd:4f:77:95:06:72:e1:ed:81:73:d4:d2:df root@05184ba3-00ba-4fbc-b7a2-03b62b884931 (RSA)\nec2: -----END SSH HOST KEY FINGERPRINTS-----\nec2: #############################################################\n-----BEGIN SSH HOST KEY KEYS-----\necdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGAuTHYYc8PW2ASU/qeqt6b9aP5QHr+sLKNZ+COeEBjEcSPcXfWLOTvvhaYtd7qV/BJ64brpRgnMaPVYkkGYw58= root@05184ba3-00ba-4fbc-b7a2-03b62b884931\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD32ZzkFehp0d6Iq3GcSTBeIt5Wx97g7JtsD/hVbv/8iQQzdMB4/M2wZ796FbqECEsi34+NUCm0RazLIBpeQ26Q9ffFMMag7T+0RypeeDYnj/2mr8KZbSM+Fj7o6E2JFlfPRDVlNhP1UMY8TeMr4T7tEs6IYEmxyBrXCNJ5aPxbfTVQrq9dphDhCtM/sBofbR3T71lgvTgHmZJp7ItFOokIa1LWs6uMP3LEROBmyTHDYPBDrTmaFZkx5gG0mBQlU2QqfA/7XSApLDZmCr/s7xgMfKy0NwONu/biNfFoPgRFKPM1NrV86P7CFMEyjN05bYAFe4xhO2tg2vjM07kxO2zr root@05184ba3-00ba-4fbc-b7a2-03b62b884931\n-----END SSH HOST KEY KEYS-----\nCloud-init v. 0.7.5 finished at Fri, 24 Feb 2017 17:01:10 +0000. Datasource DataSourceOpenStack [net,ver=2]. Up 22.60 seconds\n"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/server_create.json b/core-test/src/main/resources/compute/server_create.json
index 22bca2a73..599e2a160 100644
--- a/core-test/src/main/resources/compute/server_create.json
+++ b/core-test/src/main/resources/compute/server_create.json
@@ -1,22 +1,22 @@
{
- "server": {
- "name": "server-test-1",
- "imageRef": "b5660a6e-4b46-4be3-9707-6b47221b454f",
- "flavorRef": "2",
- "max_count": 1,
- "min_count": 1,
- "networks": [
- {
- "uuid": "d32019d3-bc6e-4319-9c1d-6722fc136a22"
- }
- ],
- "security_groups": [
- {
- "name": "default"
- },
- {
- "name": "another-secgroup-name"
- }
- ]
- }
+ "server": {
+ "name": "server-test-1",
+ "imageRef": "b5660a6e-4b46-4be3-9707-6b47221b454f",
+ "flavorRef": "2",
+ "max_count": 1,
+ "min_count": 1,
+ "networks": [
+ {
+ "uuid": "d32019d3-bc6e-4319-9c1d-6722fc136a22"
+ }
+ ],
+ "security_groups": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "another-secgroup-name"
+ }
+ ]
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/server_evacuate.json b/core-test/src/main/resources/compute/server_evacuate.json
index 6cd942395..6d4cf745f 100644
--- a/core-test/src/main/resources/compute/server_evacuate.json
+++ b/core-test/src/main/resources/compute/server_evacuate.json
@@ -1,3 +1,3 @@
{
- "adminPass": "MySecretPass"
+ "adminPass": "MySecretPass"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/servers.json b/core-test/src/main/resources/compute/servers.json
index 3ea61531e..f63097b88 100644
--- a/core-test/src/main/resources/compute/servers.json
+++ b/core-test/src/main/resources/compute/servers.json
@@ -1,56 +1,56 @@
{
- "servers": [
+ "servers": [
+ {
+ "accessIPv4": "",
+ "accessIPv6": "",
+ "addresses": {
+ "private": [
+ {
+ "addr": "192.168.0.3",
+ "version": 4
+ }
+ ]
+ },
+ "created": "2012-09-07T16:56:37Z",
+ "flavor": {
+ "id": "1",
+ "links": [
+ {
+ "href": "http://openstack.example.com/openstack/flavors/1",
+ "rel": "bookmark"
+ }
+ ]
+ },
+ "hostId": "16d193736a5cfdb60c697ca27ad071d6126fa13baeb670fc9d10645e",
+ "id": "05184ba3-00ba-4fbc-b7a2-03b62b884931",
+ "image": {
+ "id": "70a599e0-31e7-49b7-b260-868f441e862b",
+ "links": [
+ {
+ "href": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
+ "rel": "bookmark"
+ }
+ ]
+ },
+ "links": [
{
- "accessIPv4": "",
- "accessIPv6": "",
- "addresses": {
- "private": [
- {
- "addr": "192.168.0.3",
- "version": 4
- }
- ]
- },
- "created": "2012-09-07T16:56:37Z",
- "flavor": {
- "id": "1",
- "links": [
- {
- "href": "http://openstack.example.com/openstack/flavors/1",
- "rel": "bookmark"
- }
- ]
- },
- "hostId": "16d193736a5cfdb60c697ca27ad071d6126fa13baeb670fc9d10645e",
- "id": "05184ba3-00ba-4fbc-b7a2-03b62b884931",
- "image": {
- "id": "70a599e0-31e7-49b7-b260-868f441e862b",
- "links": [
- {
- "href": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
- "rel": "bookmark"
- }
- ]
- },
- "links": [
- {
- "href": "http://openstack.example.com/v2/openstack/servers/05184ba3-00ba-4fbc-b7a2-03b62b884931",
- "rel": "self"
- },
- {
- "href": "http://openstack.example.com/openstack/servers/05184ba3-00ba-4fbc-b7a2-03b62b884931",
- "rel": "bookmark"
- }
- ],
- "metadata": {
- "My Server Name": "Apache1"
- },
- "name": "new-server-test",
- "progress": 0,
- "status": "ACTIVE",
- "tenant_id": "openstack",
- "updated": "2012-09-07T16:56:37Z",
- "user_id": "fake"
+ "href": "http://openstack.example.com/v2/openstack/servers/05184ba3-00ba-4fbc-b7a2-03b62b884931",
+ "rel": "self"
+ },
+ {
+ "href": "http://openstack.example.com/openstack/servers/05184ba3-00ba-4fbc-b7a2-03b62b884931",
+ "rel": "bookmark"
}
- ]
+ ],
+ "metadata": {
+ "My Server Name": "Apache1"
+ },
+ "name": "new-server-test",
+ "progress": 0,
+ "status": "ACTIVE",
+ "tenant_id": "openstack",
+ "updated": "2012-09-07T16:56:37Z",
+ "user_id": "fake"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/services.json b/core-test/src/main/resources/compute/services.json
index 2a311a163..b6aa5fbdb 100644
--- a/core-test/src/main/resources/compute/services.json
+++ b/core-test/src/main/resources/compute/services.json
@@ -1,39 +1,39 @@
{
- "services": [
- {
- "binary": "nova-scheduler",
- "host": "host1",
- "state": "up",
- "status": "disabled",
- "updated_at": "2012-10-29T13:42:02.000000",
- "zone": "internal",
- "disabled_reason": "test1"
- },
- {
- "binary": "nova-compute",
- "host": "host1",
- "state": "up",
- "status": "disabled",
- "updated_at": "2012-10-29T13:42:05.000000",
- "zone": "nova"
- },
- {
- "binary": "nova-scheduler",
- "host": "host2",
- "state": "down",
- "status": "enabled",
- "updated_at": "2012-09-19T06:55:34.000000",
- "zone": "internal",
- "disabled_reason": ""
- },
- {
- "binary": "nova-compute",
- "host": "host2",
- "state": "down",
- "status": "disabled",
- "updated_at": "2012-09-18T08:03:38.000000",
- "zone": "nova",
- "disabled_reason": "test4"
- }
- ]
+ "services": [
+ {
+ "binary": "nova-scheduler",
+ "host": "host1",
+ "state": "up",
+ "status": "disabled",
+ "updated_at": "2012-10-29T13:42:02.000000",
+ "zone": "internal",
+ "disabled_reason": "test1"
+ },
+ {
+ "binary": "nova-compute",
+ "host": "host1",
+ "state": "up",
+ "status": "disabled",
+ "updated_at": "2012-10-29T13:42:05.000000",
+ "zone": "nova"
+ },
+ {
+ "binary": "nova-scheduler",
+ "host": "host2",
+ "state": "down",
+ "status": "enabled",
+ "updated_at": "2012-09-19T06:55:34.000000",
+ "zone": "internal",
+ "disabled_reason": ""
+ },
+ {
+ "binary": "nova-compute",
+ "host": "host2",
+ "state": "down",
+ "status": "disabled",
+ "updated_at": "2012-09-18T08:03:38.000000",
+ "zone": "nova",
+ "disabled_reason": "test4"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/compute/tags.json b/core-test/src/main/resources/compute/tags.json
index 103c8a630..40e1ec4b9 100644
--- a/core-test/src/main/resources/compute/tags.json
+++ b/core-test/src/main/resources/compute/tags.json
@@ -1,3 +1,6 @@
{
- "tags": ["tag1", "tag2"]
+ "tags": [
+ "tag1",
+ "tag2"
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/heat/abandon.json b/core-test/src/main/resources/heat/abandon.json
index 2db859570..49933bebc 100644
--- a/core-test/src/main/resources/heat/abandon.json
+++ b/core-test/src/main/resources/heat/abandon.json
@@ -1,55 +1,48 @@
{
- "files":{
-
- },
- "status":"COMPLETE",
- "name":"stack_123",
- "tags":null,
- "stack_user_project_id":"44ed5c0be2384092b8e8b6444812db5d",
- "environment":{
- "event_sinks":[
-
- ],
- "parameter_defaults":{
-
- },
- "parameters":{
-
- },
- "resource_registry":{
- "resources":{
-
- }
+ "files": {
+ },
+ "status": "COMPLETE",
+ "name": "stack_123",
+ "tags": null,
+ "stack_user_project_id": "44ed5c0be2384092b8e8b6444812db5d",
+ "environment": {
+ "event_sinks": [
+ ],
+ "parameter_defaults": {
+ },
+ "parameters": {
+ },
+ "resource_registry": {
+ "resources": {
}
- },
- "template":{
- "heat_template_version":"2016-04-08",
- "description":"A heat test template",
- "resources":{
- "network_port":{
- "type":"OS::Neutron::Port",
- "properties":{
- "network_id":"network123"
- }
- }
+ }
+ },
+ "template": {
+ "heat_template_version": "2016-04-08",
+ "description": "A heat test template",
+ "resources": {
+ "network_port": {
+ "type": "OS::Neutron::Port",
+ "properties": {
+ "network_id": "network123"
+ }
}
- },
- "action":"CREATE",
- "project_id":"0dbd25a2a75347cf88a0a52638b8fff3",
- "id":"416c09e9-2022-4d43-854b-0292ddff3f5d",
- "resources":{
- "network_port":{
- "status":"COMPLETE",
- "name":"network_port",
- "resource_data":{
-
- },
- "resource_id":"1d0dccbb-0c99-48cd-b41b-abeca3ac6a42",
- "action":"CREATE",
- "type":"OS::Neutron::Port",
- "metadata":{
-
- }
+ }
+ },
+ "action": "CREATE",
+ "project_id": "0dbd25a2a75347cf88a0a52638b8fff3",
+ "id": "416c09e9-2022-4d43-854b-0292ddff3f5d",
+ "resources": {
+ "network_port": {
+ "status": "COMPLETE",
+ "name": "network_port",
+ "resource_data": {
+ },
+ "resource_id": "1d0dccbb-0c99-48cd-b41b-abeca3ac6a42",
+ "action": "CREATE",
+ "type": "OS::Neutron::Port",
+ "metadata": {
}
- }
+ }
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/heat/adopt.json b/core-test/src/main/resources/heat/adopt.json
index b6719058a..cb7c8b573 100644
--- a/core-test/src/main/resources/heat/adopt.json
+++ b/core-test/src/main/resources/heat/adopt.json
@@ -1,11 +1,11 @@
{
- "stack":{
- "id":"79370050-6038-4ea2-baaa-3e4706d59e0e",
- "links":[
- {
- "href":"http://any.os.com:8004/v1/0dbd25a2a75347cf88a0a52638b8fff3/stacks/stack_123/79370050-6038-4ea2-baaa-3e4706d59e0e",
- "rel":"self"
- }
- ]
- }
+ "stack": {
+ "id": "79370050-6038-4ea2-baaa-3e4706d59e0e",
+ "links": [
+ {
+ "href": "http://any.os.com:8004/v1/0dbd25a2a75347cf88a0a52638b8fff3/stacks/stack_123/79370050-6038-4ea2-baaa-3e4706d59e0e",
+ "rel": "self"
+ }
+ ]
+ }
}
diff --git a/core-test/src/main/resources/identity/v2/access.json b/core-test/src/main/resources/identity/v2/access.json
index 92e3b9d15..5bfbc99bc 100644
--- a/core-test/src/main/resources/identity/v2/access.json
+++ b/core-test/src/main/resources/identity/v2/access.json
@@ -1,244 +1,267 @@
{
- "access": {
- "token": {
- "issued_at": "2014-04-04T18:09:56.670624",
- "expires": "2014-04-05T18:09:56Z",
- "id": "MIILdQYJKoZIhvcNAQcCoIILZjCCC2ICAQExCTAHBgUrDgMCGjCCCcsGCSqGSIb3DQEHAaCCCbwEggm4eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wNFQxODowOTo1Ni42NzA2MjQiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTA1VDE4OjA5OjU2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzQvdjIvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3NC92Mi9iODBmOGQ0ZTI4Yjc0MTg4ODU4YjY1NGNiMWZjY2Y3ZCIsICJpZCI6ICIzZDQ0MDU0ZmUwZWM0NDBlOWQ0NjQxYTcyMTkwMDJkZCIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuMjUxOjg3NzQvdjIvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiY29tcHV0ZSIsICJuYW1lIjogIm5vdmEifSwgeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6OTY5Ni8iLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6OTY5Ni8iLCAiaWQiOiAiNTRjOTE3NTU1MjZlNDRiOTgwODM4NWEyNjNkYjRhYTYiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjU2LjI1MTo5Njk2LyJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJuZXR3b3JrIiwgIm5hbWUiOiAibmV1dHJvbiJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xMC4xMC4xMC41MTo5MjkyL3YyIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjkyOTIvdjIiLCAiaWQiOiAiNDMyOWI3NzYwZDMyNGVmZThlNjQzMGJmMDQwZTViODgiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjU2LjI1MTo5MjkyL3YyIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImltYWdlIiwgIm5hbWUiOiAiZ2xhbmNlIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzYvdjEvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3Ni92MS9iODBmOGQ0ZTI4Yjc0MTg4ODU4YjY1NGNiMWZjY2Y3ZCIsICJpZCI6ICI4MDliYzNiZjE4NzQ0MDk5OTBmMzg5MTFlM2IxYWE3YSIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuMjUxOjg3NzYvdjEvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAidm9sdW1lIiwgIm5hbWUiOiAiY2luZGVyIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzMvc2VydmljZXMvQWRtaW4iLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3My9zZXJ2aWNlcy9DbG91ZCIsICJpZCI6ICI4MTIyNTk0YzNkYWI0ODI5OGI4OTBhMzY3Y2M3NTdmYiIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuMjUxOjg3NzMvc2VydmljZXMvQ2xvdWQifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiZWMyIiwgIm5hbWUiOiAiZWMyIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjM1MzU3L3YyLjAiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6NTAwMC92Mi4wIiwgImlkIjogIjM1ZDIyMDRiZmUxNDRjMzVhNWIzZWI5NmU3ODY3NmU4IiwgInB1YmxpY1VSTCI6ICJodHRwOi8vMTkyLjE2OC41Ni4yNTE6NTAwMC92Mi4wIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiZjkzMTIwODM4MjgxNGU1YWIzNDEyZjdlMDJjNWUzYWUiLCAicm9sZXMiOiBbeyJuYW1lIjogImFkbWluIn0sIHsibmFtZSI6ICJLZXlzdG9uZVNlcnZpY2VBZG1pbiJ9LCB7Im5hbWUiOiAiS2V5c3RvbmVBZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiM2U5MjQ1ZTU2NjAzNDRlMzkzMjhhYTY4ZmM5ZWI2ZTAiLCAiMmNjZTI0Njc1MGNmNGUwZGEwOWFkYTkxOTcwMmUzMGMiLCAiNzE3MTNiODMwNmFkNDU2Njk5NjI4NmVkOGFmZGE4OWUiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQAvA++EdcPjlpDnUlubOe4W3O3A0pbgyiehgES6qeIQt2wdODbR-SkUXW+H+199Gn4qbKsHLcbx82gMnXTWR-qXlDrpzApoZ0Om3wmnOKk7Z-nEX9cVweocBGKX0LUpU3j5tiJ4a+Ijn4UYbSypkao2Wl1Ky0NHE4vx7ns0G1bo4ErKrZZY3JPoPtPqc-wJ4JvTgRceVDR-Tv-VLjROSZ4SHHC7eeHaeva4FrGDSjqhBmhSkvuxH1xQ+7+GbtY2WJuN0nu6SrFVdLROWqFqd222zaF+gKNG8df6oFMUdevTs9pDaW+XWm39DARCMmUWehs1DUw65OfZmTsAgS28f8Rt",
- "tenant": {
- "description": null,
- "enabled": true,
- "id": "b80f8d4e28b74188858b654cb1fccf7d",
- "name": "admin"
- }
- },
- "serviceCatalog": [
- {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8774\/v2\/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8774\/v2\/b80f8d4e28b74188858b654cb1fccf7d",
- "id": "3d44054fe0ec440e9d4641a7219002dd",
- "publicURL": "http:\/\/127.0.0.1:8774\/v2\/b80f8d4e28b74188858b654cb1fccf7d"
- }
- ],
- "endpoints_links": [],
- "type": "compute",
- "name": "nova"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8774\/v2.1\/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8774\/v2.1\/b80f8d4e28b74188858b654cb1fccf7d",
- "id": "3d44054fe0ec440e9d4641a7219002dd",
- "publicURL": "http:\/\/127.0.0.1:8774\/v2.1\/b80f8d4e28b74188858b654cb1fccf7d"
- }
- ],
- "endpoints_links": [],
- "type": "computev21",
- "name": "novav21"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:9696\/",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:9696\/",
- "id": "54c91755526e44b9808385a263db4aa6",
- "publicURL": "http:\/\/127.0.0.1:9696\/"
- }, {
- "adminURL": "http:\/\/127.0.0.1:9696\/",
- "region": "RegionTwo",
- "internalURL": "http:\/\/127.0.0.1:9696\/",
- "id": "54c91755526e44b9808385a263db4aa6",
- "publicURL": "http:\/\/127.0.0.1:9696\/"
- }
- ],
- "endpoints_links": [],
- "type": "network",
- "name": "neutron"
- }, {
- "name": "Object Storage",
- "type": "object-store",
- "endpoints": [
- {
- "tenantId": "10108557731121",
- "publicURL": "http:\/\/127.0.0.1:8800\/v1\/10108557731121",
- "publicURL2": "",
- "region": "RegionOne",
- "versionId": "1",
- "versionInfo": "https:\/\/region-b.geo-1.objects.hpcloudsvc.com\/v1\/",
- "versionList": "https:\/\/region-b.geo-1.objects.hpcloudsvc.com"
- }
- ]
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:9292\/v2",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:9292\/v2",
- "id": "4329b7760d324efe8e6430bf040e5b88",
- "publicURL": "http:\/\/127.0.0.1:9292\/v2"
- }
- ],
- "endpoints_links": [],
- "type": "image",
- "name": "glance"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8786\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8786\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
- "id": "240163b88bcb4222ba96c2483f2b83f9",
- "publicURL": "http:\/\/127.0.0.1:8786\/v1\/b80f8d4e28b74188858b654cb1fccf7d"
- }
- ],
- "endpoints_links": [],
- "type": "share",
- "name": "manila"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8776\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8776\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
- "id": "809bc3bf1874409990f38911e3b1aa7a",
- "publicURL": "http:\/\/127.0.0.1:8776\/v1\/b80f8d4e28b74188858b654cb1fccf7d"
- }
- ],
- "endpoints_links": [],
- "type": "volume",
- "name": "cinder"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8773\/services\/Admin",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8773\/services\/Cloud",
- "id": "8122594c3dab48298b890a367cc757fb",
- "publicURL": "http:\/\/127.0.0.1:8773\/services\/Cloud"
- }
- ],
- "endpoints_links": [],
- "type": "ec2",
- "name": "ec2"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:5000\/v2.0",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:5000\/v2.0",
- "id": "35d2204bfe144c35a5b3eb96e78676e8",
- "publicURL": "http:\/\/127.0.0.1:5000\/v2.0"
- }, {
- "adminURL": "http:\/\/127.0.0.1:5000\/v2.0",
- "region": "RegionTwo",
- "internalURL": "http:\/\/127.0.0.1:5000\/v2.0",
- "id": "35d2204bfe144c35a5b3eb96e78676e8",
- "publicURL": "http:\/\/127.0.0.1:5000\/v2.0"
- }
- ],
- "endpoints_links": [],
- "type": "identity",
- "name": "keystone"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "id": "9c66xrg3gruv2a3hj8aatd7smmas23fy",
- "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
- }, {
- "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "region": "RegionTwo",
- "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "id": "9c66xrgerruv2a3hj8batd7smmas23fy",
- "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
- }
- ],
- "endpoints_links": [],
- "type": "aodh",
- "name": "alarming"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "id": "9c66xrg3rruv2a3hj8tatd7smmas23fy",
- "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
- }, {
- "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "region": "RegionTwo",
- "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
- "id": "9c66xrg3rruv2a3hj8tatd7smmas23fy",
- "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
- }
- ],
- "endpoints_links": [],
- "type": "telemetry",
- "name": "ceilometer"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8779\/v1.0\/26decac97b67478f9f64ff2c2c1b778e",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8779\/v1.0\/26decac97b67478f9f64ff2c2c1b778e",
- "id": "19e954d8-6a91-11e6-8b77-86f30ca893d3",
- "publicURL": "http:\/\/127.0.0.1:8779\/v1.0\/26decac97b67478f9f64ff2c2c1b778e"
- }
- ],
- "endpoints_links": [],
- "type": "database",
- "name": "trove"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8989\/v2",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8989\/v2",
- "id": "98d22770096a11e793ae92361f002671",
- "publicURL": "http:\/\/127.0.0.1:8989\/v2"
- }
- ],
- "endpoints_links": [],
- "type": "workflow",
- "name": "mistral"
- }, {
- "endpoints": [
- {
- "adminURL": "http:\/\/127.0.0.1:8386\/v2",
- "region": "RegionOne",
- "internalURL": "http:\/\/127.0.0.1:8386\/v2",
- "id": "8707e3735d4415c97ae231b4841eb1d",
- "publicURL": "http:\/\/127.0.0.1:8386\/v2"
- }
- ],
- "endpoints_links": [],
- "type": "data-processing",
- "name": "sahara"
- }
- ],
- "user": {
- "username": "admin",
- "roles_links": [],
- "id": "f931208382814e5ab3412f7e02c5e3ae",
- "roles": [
- {
- "name": "admin"
- }, {
- "name": "KeystoneServiceAdmin"
- }, {
- "name": "KeystoneAdmin"
- }
- ],
- "name": "admin"
- },
- "metadata": {
- "is_admin": 0,
- "roles": ["3e9245e5660344e39328aa68fc9eb6e0", "2cce246750cf4e0da09ada919702e30c", "71713b8306ad4566996286ed8afda89e"]
- }
- }
+ "access": {
+ "token": {
+ "issued_at": "2014-04-04T18:09:56.670624",
+ "expires": "2014-04-05T18:09:56Z",
+ "id": "MIILdQYJKoZIhvcNAQcCoIILZjCCC2ICAQExCTAHBgUrDgMCGjCCCcsGCSqGSIb3DQEHAaCCCbwEggm4eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wNFQxODowOTo1Ni42NzA2MjQiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTA1VDE4OjA5OjU2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzQvdjIvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3NC92Mi9iODBmOGQ0ZTI4Yjc0MTg4ODU4YjY1NGNiMWZjY2Y3ZCIsICJpZCI6ICIzZDQ0MDU0ZmUwZWM0NDBlOWQ0NjQxYTcyMTkwMDJkZCIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuMjUxOjg3NzQvdjIvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiY29tcHV0ZSIsICJuYW1lIjogIm5vdmEifSwgeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6OTY5Ni8iLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6OTY5Ni8iLCAiaWQiOiAiNTRjOTE3NTU1MjZlNDRiOTgwODM4NWEyNjNkYjRhYTYiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjU2LjI1MTo5Njk2LyJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJuZXR3b3JrIiwgIm5hbWUiOiAibmV1dHJvbiJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xMC4xMC4xMC41MTo5MjkyL3YyIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjkyOTIvdjIiLCAiaWQiOiAiNDMyOWI3NzYwZDMyNGVmZThlNjQzMGJmMDQwZTViODgiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4LjU2LjI1MTo5MjkyL3YyIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImltYWdlIiwgIm5hbWUiOiAiZ2xhbmNlIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzYvdjEvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3Ni92MS9iODBmOGQ0ZTI4Yjc0MTg4ODU4YjY1NGNiMWZjY2Y3ZCIsICJpZCI6ICI4MDliYzNiZjE4NzQ0MDk5OTBmMzg5MTFlM2IxYWE3YSIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuMjUxOjg3NzYvdjEvYjgwZjhkNGUyOGI3NDE4ODg1OGI2NTRjYjFmY2NmN2QifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAidm9sdW1lIiwgIm5hbWUiOiAiY2luZGVyIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjg3NzMvc2VydmljZXMvQWRtaW4iLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6ODc3My9zZXJ2aWNlcy9DbG91ZCIsICJpZCI6ICI4MTIyNTk0YzNkYWI0ODI5OGI4OTBhMzY3Y2M3NTdmYiIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNTYuMjUxOjg3NzMvc2VydmljZXMvQ2xvdWQifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiZWMyIiwgIm5hbWUiOiAiZWMyIn0sIHsiZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjEwLjEwLjUxOjM1MzU3L3YyLjAiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTAuMTAuMTAuNTE6NTAwMC92Mi4wIiwgImlkIjogIjM1ZDIyMDRiZmUxNDRjMzVhNWIzZWI5NmU3ODY3NmU4IiwgInB1YmxpY1VSTCI6ICJodHRwOi8vMTkyLjE2OC41Ni4yNTE6NTAwMC92Mi4wIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiZjkzMTIwODM4MjgxNGU1YWIzNDEyZjdlMDJjNWUzYWUiLCAicm9sZXMiOiBbeyJuYW1lIjogImFkbWluIn0sIHsibmFtZSI6ICJLZXlzdG9uZVNlcnZpY2VBZG1pbiJ9LCB7Im5hbWUiOiAiS2V5c3RvbmVBZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiM2U5MjQ1ZTU2NjAzNDRlMzkzMjhhYTY4ZmM5ZWI2ZTAiLCAiMmNjZTI0Njc1MGNmNGUwZGEwOWFkYTkxOTcwMmUzMGMiLCAiNzE3MTNiODMwNmFkNDU2Njk5NjI4NmVkOGFmZGE4OWUiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQAvA++EdcPjlpDnUlubOe4W3O3A0pbgyiehgES6qeIQt2wdODbR-SkUXW+H+199Gn4qbKsHLcbx82gMnXTWR-qXlDrpzApoZ0Om3wmnOKk7Z-nEX9cVweocBGKX0LUpU3j5tiJ4a+Ijn4UYbSypkao2Wl1Ky0NHE4vx7ns0G1bo4ErKrZZY3JPoPtPqc-wJ4JvTgRceVDR-Tv-VLjROSZ4SHHC7eeHaeva4FrGDSjqhBmhSkvuxH1xQ+7+GbtY2WJuN0nu6SrFVdLROWqFqd222zaF+gKNG8df6oFMUdevTs9pDaW+XWm39DARCMmUWehs1DUw65OfZmTsAgS28f8Rt",
+ "tenant": {
+ "description": null,
+ "enabled": true,
+ "id": "b80f8d4e28b74188858b654cb1fccf7d",
+ "name": "admin"
+ }
+ },
+ "serviceCatalog": [
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8774\/v2\/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8774\/v2\/b80f8d4e28b74188858b654cb1fccf7d",
+ "id": "3d44054fe0ec440e9d4641a7219002dd",
+ "publicURL": "http:\/\/127.0.0.1:8774\/v2\/b80f8d4e28b74188858b654cb1fccf7d"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "compute",
+ "name": "nova"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8774\/v2.1\/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8774\/v2.1\/b80f8d4e28b74188858b654cb1fccf7d",
+ "id": "3d44054fe0ec440e9d4641a7219002dd",
+ "publicURL": "http:\/\/127.0.0.1:8774\/v2.1\/b80f8d4e28b74188858b654cb1fccf7d"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "computev21",
+ "name": "novav21"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:9696\/",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:9696\/",
+ "id": "54c91755526e44b9808385a263db4aa6",
+ "publicURL": "http:\/\/127.0.0.1:9696\/"
+ },
+ {
+ "adminURL": "http:\/\/127.0.0.1:9696\/",
+ "region": "RegionTwo",
+ "internalURL": "http:\/\/127.0.0.1:9696\/",
+ "id": "54c91755526e44b9808385a263db4aa6",
+ "publicURL": "http:\/\/127.0.0.1:9696\/"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "network",
+ "name": "neutron"
+ },
+ {
+ "name": "Object Storage",
+ "type": "object-store",
+ "endpoints": [
+ {
+ "tenantId": "10108557731121",
+ "publicURL": "http:\/\/127.0.0.1:8800\/v1\/10108557731121",
+ "publicURL2": "",
+ "region": "RegionOne",
+ "versionId": "1",
+ "versionInfo": "https:\/\/region-b.geo-1.objects.hpcloudsvc.com\/v1\/",
+ "versionList": "https:\/\/region-b.geo-1.objects.hpcloudsvc.com"
+ }
+ ]
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:9292\/v2",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:9292\/v2",
+ "id": "4329b7760d324efe8e6430bf040e5b88",
+ "publicURL": "http:\/\/127.0.0.1:9292\/v2"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "image",
+ "name": "glance"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8786\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8786\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
+ "id": "240163b88bcb4222ba96c2483f2b83f9",
+ "publicURL": "http:\/\/127.0.0.1:8786\/v1\/b80f8d4e28b74188858b654cb1fccf7d"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "share",
+ "name": "manila"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8776\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8776\/v1\/b80f8d4e28b74188858b654cb1fccf7d",
+ "id": "809bc3bf1874409990f38911e3b1aa7a",
+ "publicURL": "http:\/\/127.0.0.1:8776\/v1\/b80f8d4e28b74188858b654cb1fccf7d"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "volume",
+ "name": "cinder"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8773\/services\/Admin",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8773\/services\/Cloud",
+ "id": "8122594c3dab48298b890a367cc757fb",
+ "publicURL": "http:\/\/127.0.0.1:8773\/services\/Cloud"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "ec2",
+ "name": "ec2"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:5000\/v2.0",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:5000\/v2.0",
+ "id": "35d2204bfe144c35a5b3eb96e78676e8",
+ "publicURL": "http:\/\/127.0.0.1:5000\/v2.0"
+ },
+ {
+ "adminURL": "http:\/\/127.0.0.1:5000\/v2.0",
+ "region": "RegionTwo",
+ "internalURL": "http:\/\/127.0.0.1:5000\/v2.0",
+ "id": "35d2204bfe144c35a5b3eb96e78676e8",
+ "publicURL": "http:\/\/127.0.0.1:5000\/v2.0"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "identity",
+ "name": "keystone"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "id": "9c66xrg3gruv2a3hj8aatd7smmas23fy",
+ "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
+ },
+ {
+ "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "region": "RegionTwo",
+ "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "id": "9c66xrgerruv2a3hj8batd7smmas23fy",
+ "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "aodh",
+ "name": "alarming"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "id": "9c66xrg3rruv2a3hj8tatd7smmas23fy",
+ "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
+ },
+ {
+ "adminURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "region": "RegionTwo",
+ "internalURL": "http:\/\/127.0.0.1:8087\/v2.0",
+ "id": "9c66xrg3rruv2a3hj8tatd7smmas23fy",
+ "publicURL": "http:\/\/127.0.0.1:8087\/v2.0"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "telemetry",
+ "name": "ceilometer"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8779\/v1.0\/26decac97b67478f9f64ff2c2c1b778e",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8779\/v1.0\/26decac97b67478f9f64ff2c2c1b778e",
+ "id": "19e954d8-6a91-11e6-8b77-86f30ca893d3",
+ "publicURL": "http:\/\/127.0.0.1:8779\/v1.0\/26decac97b67478f9f64ff2c2c1b778e"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "database",
+ "name": "trove"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8989\/v2",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8989\/v2",
+ "id": "98d22770096a11e793ae92361f002671",
+ "publicURL": "http:\/\/127.0.0.1:8989\/v2"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "workflow",
+ "name": "mistral"
+ },
+ {
+ "endpoints": [
+ {
+ "adminURL": "http:\/\/127.0.0.1:8386\/v2",
+ "region": "RegionOne",
+ "internalURL": "http:\/\/127.0.0.1:8386\/v2",
+ "id": "8707e3735d4415c97ae231b4841eb1d",
+ "publicURL": "http:\/\/127.0.0.1:8386\/v2"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "data-processing",
+ "name": "sahara"
+ }
+ ],
+ "user": {
+ "username": "admin",
+ "roles_links": [],
+ "id": "f931208382814e5ab3412f7e02c5e3ae",
+ "roles": [
+ {
+ "name": "admin"
+ },
+ {
+ "name": "KeystoneServiceAdmin"
+ },
+ {
+ "name": "KeystoneAdmin"
+ }
+ ],
+ "name": "admin"
+ },
+ "metadata": {
+ "is_admin": 0,
+ "roles": [
+ "3e9245e5660344e39328aa68fc9eb6e0",
+ "2cce246750cf4e0da09ada919702e30c",
+ "71713b8306ad4566996286ed8afda89e"
+ ]
+ }
+ }
}
diff --git a/core-test/src/main/resources/identity/v2/extensions.json b/core-test/src/main/resources/identity/v2/extensions.json
index 111f8e130..d0f0a8ed0 100644
--- a/core-test/src/main/resources/identity/v2/extensions.json
+++ b/core-test/src/main/resources/identity/v2/extensions.json
@@ -1,59 +1,62 @@
{
- "extensions": {
- "values": [
- {
- "updated": "2013-07-07T12:00:0-00:00",
- "name": "OpenStack S3 API",
- "links": [
- {
- "href": "https://github.com/openstack/identity-api",
- "type": "text/html",
- "rel": "describedby"
- }
- ],
- "namespace": "http://docs.openstack.org/identity/api/ext/s3tokens/v1.0",
- "alias": "s3tokens",
- "description": "OpenStack S3 API."
- }, {
- "updated": "2013-07-11T17:14:00-00:00",
- "name": "OpenStack Keystone Admin",
- "links": [
- {
- "href": "https://github.com/openstack/identity-api",
- "type": "text/html",
- "rel": "describedby"
- }
- ],
- "namespace": "http://docs.openstack.org/identity/api/ext/OS-KSADM/v1.0",
- "alias": "OS-KSADM",
- "description": "OpenStack extensions to Keystone v2.0 API enabling Administrative Operations."
- }, {
- "updated": "2013-07-07T12:00:0-00:00",
- "name": "OpenStack EC2 API",
- "links": [
- {
- "href": "https://github.com/openstack/identity-api",
- "type": "text/html",
- "rel": "describedby"
- }
- ],
- "namespace": "http://docs.openstack.org/identity/api/ext/OS-EC2/v1.0",
- "alias": "OS-EC2",
- "description": "OpenStack EC2 Credentials backend."
- }, {
- "updated": "2013-07-23T12:00:0-00:00",
- "name": "Openstack Keystone Endpoint Filter API",
- "links": [
- {
- "href": "https://github.com/openstack/identity-api/blob/master/openstack-identity-api/v3/src/markdown/identity-api-v3-os-ep-filter-ext.md",
- "type": "text/html",
- "rel": "describedby"
- }
- ],
- "namespace": "http://docs.openstack.org/identity/api/ext/OS-EP-FILTER/v1.0",
- "alias": "OS-EP-FILTER",
- "description": "Openstack Keystone Endpoint Filter API."
- }
- ]
- }
+ "extensions": {
+ "values": [
+ {
+ "updated": "2013-07-07T12:00:0-00:00",
+ "name": "OpenStack S3 API",
+ "links": [
+ {
+ "href": "https://github.com/openstack/identity-api",
+ "type": "text/html",
+ "rel": "describedby"
+ }
+ ],
+ "namespace": "http://docs.openstack.org/identity/api/ext/s3tokens/v1.0",
+ "alias": "s3tokens",
+ "description": "OpenStack S3 API."
+ },
+ {
+ "updated": "2013-07-11T17:14:00-00:00",
+ "name": "OpenStack Keystone Admin",
+ "links": [
+ {
+ "href": "https://github.com/openstack/identity-api",
+ "type": "text/html",
+ "rel": "describedby"
+ }
+ ],
+ "namespace": "http://docs.openstack.org/identity/api/ext/OS-KSADM/v1.0",
+ "alias": "OS-KSADM",
+ "description": "OpenStack extensions to Keystone v2.0 API enabling Administrative Operations."
+ },
+ {
+ "updated": "2013-07-07T12:00:0-00:00",
+ "name": "OpenStack EC2 API",
+ "links": [
+ {
+ "href": "https://github.com/openstack/identity-api",
+ "type": "text/html",
+ "rel": "describedby"
+ }
+ ],
+ "namespace": "http://docs.openstack.org/identity/api/ext/OS-EC2/v1.0",
+ "alias": "OS-EC2",
+ "description": "OpenStack EC2 Credentials backend."
+ },
+ {
+ "updated": "2013-07-23T12:00:0-00:00",
+ "name": "Openstack Keystone Endpoint Filter API",
+ "links": [
+ {
+ "href": "https://github.com/openstack/identity-api/blob/master/openstack-identity-api/v3/src/markdown/identity-api-v3-os-ep-filter-ext.md",
+ "type": "text/html",
+ "rel": "describedby"
+ }
+ ],
+ "namespace": "http://docs.openstack.org/identity/api/ext/OS-EP-FILTER/v1.0",
+ "alias": "OS-EP-FILTER",
+ "description": "Openstack Keystone Endpoint Filter API."
+ }
+ ]
+ }
}
diff --git a/core-test/src/main/resources/identity/v2/member-role.json b/core-test/src/main/resources/identity/v2/member-role.json
index c83b11280..38631e58c 100644
--- a/core-test/src/main/resources/identity/v2/member-role.json
+++ b/core-test/src/main/resources/identity/v2/member-role.json
@@ -1,6 +1,6 @@
{
- "role": {
- "id": "b8e55a37fc3748de887f165954448db5",
- "name": "Member"
- }
+ "role": {
+ "id": "b8e55a37fc3748de887f165954448db5",
+ "name": "Member"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v2/roles.json b/core-test/src/main/resources/identity/v2/roles.json
index 63c755bc4..6b5ce3bab 100644
--- a/core-test/src/main/resources/identity/v2/roles.json
+++ b/core-test/src/main/resources/identity/v2/roles.json
@@ -1,22 +1,26 @@
{
- "roles": [
- {
- "id": "2cce246750cf4e0da09ada919702e30c",
- "name": "KeystoneServiceAdmin"
- }, {
- "id": "3e9245e5660344e39328aa68fc9eb6e0",
- "name": "admin"
- }, {
- "id": "71713b8306ad4566996286ed8afda89e",
- "name": "KeystoneAdmin"
- }, {
- "enabled": "True",
- "description": "Default role for project membership",
- "name": "_member_",
- "id": "9fe2ff9ee4384b1894a90878d3e92bab"
- }, {
- "id": "b8e55a37fc3748de887f165954448db5",
- "name": "Member"
- }
- ]
+ "roles": [
+ {
+ "id": "2cce246750cf4e0da09ada919702e30c",
+ "name": "KeystoneServiceAdmin"
+ },
+ {
+ "id": "3e9245e5660344e39328aa68fc9eb6e0",
+ "name": "admin"
+ },
+ {
+ "id": "71713b8306ad4566996286ed8afda89e",
+ "name": "KeystoneAdmin"
+ },
+ {
+ "enabled": "True",
+ "description": "Default role for project membership",
+ "name": "_member_",
+ "id": "9fe2ff9ee4384b1894a90878d3e92bab"
+ },
+ {
+ "id": "b8e55a37fc3748de887f165954448db5",
+ "name": "Member"
+ }
+ ]
}
diff --git a/core-test/src/main/resources/identity/v2/tenant-admin.json b/core-test/src/main/resources/identity/v2/tenant-admin.json
index 8cdc9a354..cb5ef52bf 100644
--- a/core-test/src/main/resources/identity/v2/tenant-admin.json
+++ b/core-test/src/main/resources/identity/v2/tenant-admin.json
@@ -1,8 +1,8 @@
{
- "tenant": {
- "description": null,
- "enabled": true,
- "id": "b80f8d4e28b74188858b654cb1fccf7d",
- "name": "admin"
- }
+ "tenant": {
+ "description": null,
+ "enabled": true,
+ "id": "b80f8d4e28b74188858b654cb1fccf7d",
+ "name": "admin"
+ }
}
diff --git a/core-test/src/main/resources/identity/v2/tenant-users.json b/core-test/src/main/resources/identity/v2/tenant-users.json
index 2223c3621..53686741b 100644
--- a/core-test/src/main/resources/identity/v2/tenant-users.json
+++ b/core-test/src/main/resources/identity/v2/tenant-users.json
@@ -1,16 +1,17 @@
{
- "users": [
- {
- "id": "u1000",
- "name": "jqsmith",
- "email": "john.smith@example.org",
- "enabled": true
- }, {
- "id": "u1001",
- "name": "jqsmith",
- "email": "john.smith@example.org",
- "enabled": true
- }
- ],
- "users_links": []
+ "users": [
+ {
+ "id": "u1000",
+ "name": "jqsmith",
+ "email": "john.smith@example.org",
+ "enabled": true
+ },
+ {
+ "id": "u1001",
+ "name": "jqsmith",
+ "email": "john.smith@example.org",
+ "enabled": true
+ }
+ ],
+ "users_links": []
}
diff --git a/core-test/src/main/resources/identity/v2/tenants.json b/core-test/src/main/resources/identity/v2/tenants.json
index c7dde32e5..49714901e 100644
--- a/core-test/src/main/resources/identity/v2/tenants.json
+++ b/core-test/src/main/resources/identity/v2/tenants.json
@@ -1,21 +1,23 @@
{
- "tenants_links": [],
- "tenants": [
- {
- "description": "",
- "enabled": true,
- "id": "b0a9abafc4ef41ad9201f891fb88aeb3",
- "name": "project_one"
- }, {
- "description": null,
- "enabled": true,
- "id": "b80f8d4e28b74188858b654cb1fccf7d",
- "name": "admin"
- }, {
- "description": null,
- "enabled": true,
- "id": "fae985a544c543dd9a799a7bb4953c69",
- "name": "service"
- }
- ]
+ "tenants_links": [],
+ "tenants": [
+ {
+ "description": "",
+ "enabled": true,
+ "id": "b0a9abafc4ef41ad9201f891fb88aeb3",
+ "name": "project_one"
+ },
+ {
+ "description": null,
+ "enabled": true,
+ "id": "b80f8d4e28b74188858b654cb1fccf7d",
+ "name": "admin"
+ },
+ {
+ "description": null,
+ "enabled": true,
+ "id": "fae985a544c543dd9a799a7bb4953c69",
+ "name": "service"
+ }
+ ]
}
diff --git a/core-test/src/main/resources/identity/v2/users.json b/core-test/src/main/resources/identity/v2/users.json
index 9f3f81fca..04fd443d6 100644
--- a/core-test/src/main/resources/identity/v2/users.json
+++ b/core-test/src/main/resources/identity/v2/users.json
@@ -1,52 +1,59 @@
{
- "users": [
- {
- "name": "nova",
- "id": "196cbcf9de4a40ff9b9292ab5b9e1e8d",
- "enabled": true,
- "email": "nova@domain.com",
- "tenantId": "fae985a544c543dd9a799a7bb4953c69"
- }, {
- "name": "jack",
- "id": "55184f77bc534ab7a2bf73d2cde2701b",
- "enabled": true,
- "email": "jack@jack.com",
- "tenantId": "b0a9abafc4ef41ad9201f891fb88aeb3"
- }, {
- "name": "swift",
- "id": "6485f1f8c5bb45418421c059e0ed0141",
- "enabled": true,
- "email": null,
- "tenantId": "fae985a544c543dd9a799a7bb4953c69"
- }, {
- "name": "cinder",
- "id": "80170078bc2349f9adca922f919fd749",
- "enabled": true,
- "email": "cinder@domain.com",
- "tenantId": "fae985a544c543dd9a799a7bb4953c69"
- }, {
- "name": "glance",
- "id": "917c06253ed1461caa40517453b3ba7c",
- "enabled": true,
- "email": "glance@domain.com",
- "tenantId": "fae985a544c543dd9a799a7bb4953c69"
- }, {
- "name": "neutron",
- "id": "a556c717d7b942a38b8712522f32a013",
- "enabled": true,
- "email": "neutron@domain.com",
- "tenantId": "fae985a544c543dd9a799a7bb4953c69"
- }, {
- "name": "user_one",
- "id": "d4abe4ee7a524d9da957861f3be38f68",
- "enabled": true,
- "email": "user_one@domain.com",
- "tenantId": "b0a9abafc4ef41ad9201f891fb88aeb3"
- }, {
- "name": "admin",
- "enabled": true,
- "email": "admin@domain.com",
- "id": "f931208382814e5ab3412f7e02c5e3ae"
- }
- ]
+ "users": [
+ {
+ "name": "nova",
+ "id": "196cbcf9de4a40ff9b9292ab5b9e1e8d",
+ "enabled": true,
+ "email": "nova@domain.com",
+ "tenantId": "fae985a544c543dd9a799a7bb4953c69"
+ },
+ {
+ "name": "jack",
+ "id": "55184f77bc534ab7a2bf73d2cde2701b",
+ "enabled": true,
+ "email": "jack@jack.com",
+ "tenantId": "b0a9abafc4ef41ad9201f891fb88aeb3"
+ },
+ {
+ "name": "swift",
+ "id": "6485f1f8c5bb45418421c059e0ed0141",
+ "enabled": true,
+ "email": null,
+ "tenantId": "fae985a544c543dd9a799a7bb4953c69"
+ },
+ {
+ "name": "cinder",
+ "id": "80170078bc2349f9adca922f919fd749",
+ "enabled": true,
+ "email": "cinder@domain.com",
+ "tenantId": "fae985a544c543dd9a799a7bb4953c69"
+ },
+ {
+ "name": "glance",
+ "id": "917c06253ed1461caa40517453b3ba7c",
+ "enabled": true,
+ "email": "glance@domain.com",
+ "tenantId": "fae985a544c543dd9a799a7bb4953c69"
+ },
+ {
+ "name": "neutron",
+ "id": "a556c717d7b942a38b8712522f32a013",
+ "enabled": true,
+ "email": "neutron@domain.com",
+ "tenantId": "fae985a544c543dd9a799a7bb4953c69"
+ },
+ {
+ "name": "user_one",
+ "id": "d4abe4ee7a524d9da957861f3be38f68",
+ "enabled": true,
+ "email": "user_one@domain.com",
+ "tenantId": "b0a9abafc4ef41ad9201f891fb88aeb3"
+ },
+ {
+ "name": "admin",
+ "enabled": true,
+ "email": "admin@domain.com",
+ "id": "f931208382814e5ab3412f7e02c5e3ae"
+ }
+ ]
}
diff --git a/core-test/src/main/resources/identity/v3/authv3_authorizationerror.json b/core-test/src/main/resources/identity/v3/authv3_authorizationerror.json
index 59a185533..db2d9b5f5 100644
--- a/core-test/src/main/resources/identity/v3/authv3_authorizationerror.json
+++ b/core-test/src/main/resources/identity/v3/authv3_authorizationerror.json
@@ -1,7 +1,7 @@
{
- "error": {
- "message": "The request you have made requires authentication. (Disable debug mode to suppress these details.)",
- "code": 401,
- "title": "Unauthorized"
- }
+ "error": {
+ "message": "The request you have made requires authentication. (Disable debug mode to suppress these details.)",
+ "code": 401,
+ "title": "Unauthorized"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/authv3_domain.json b/core-test/src/main/resources/identity/v3/authv3_domain.json
index 73e19ed67..38b67cde7 100644
--- a/core-test/src/main/resources/identity/v3/authv3_domain.json
+++ b/core-test/src/main/resources/identity/v3/authv3_domain.json
@@ -1,298 +1,335 @@
{
- "token": {
- "domain": {
- "id": "default",
- "name": "Default"
- },
- "methods": ["password"],
- "roles": [
- {
- "id": "6ead57f8ae124996af8b0beb72ff1007",
- "name": "admin"
- }
- ],
- "expires_at": "2015-08-26T14:14:09.416956Z",
- "catalog": [
- {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:9292",
- "region": "RegionOne",
- "interface": "public",
- "id": "6e82c8912d3f49a09df51035681d564c"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:9292",
- "region": "RegionOne",
- "interface": "admin",
- "id": "7e44d321ae80457abc3728fa1e6feb32"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:9292",
- "region": "RegionOne",
- "interface": "internal",
- "id": "c9a090a4597040849c03bc13588167f6"
- }
- ],
- "type": "image",
- "id": "0d56500210a24c38a3702b6825e24164",
- "name": "glance"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8776/v2/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "internal",
- "id": "261aaf6239bb49a4a1cfa87c19859138"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8776/v2/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "admin",
- "id": "437d282e0bb94622aaacc4d194c069a9"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8776/v2/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "public",
- "id": "5e78bf7bae7c4ff5b9720b2c2e4da743"
- }
- ],
- "type": "volumev2",
- "id": "2b92e79c45254516932c633229cd0e8b",
- "name": "cinderv2"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8773/",
- "region": "RegionOne",
- "interface": "admin",
- "id": "1ce26a6fffd0424bac135b9c68055b6e"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8773/",
- "region": "RegionOne",
- "interface": "public",
- "id": "98db699b9ffa4dffb027d78163aad8cc"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8773/",
- "region": "RegionOne",
- "interface": "internal",
- "id": "ece52860cf1e4eb6a8fed05c47a30147"
- }
- ],
- "type": "ec2",
- "id": "3364a7b95c664bf89a7a8db081576364",
- "name": "ec2"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://127.0.0.1:8786/v1/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "interface": "admin",
- "id": "b80f8d4e28b74188858b654cb1fccf7d"
- }, {
- "region_id": "RegionOne",
- "url": "http://127.0.0.1:8786/v1/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "interface": "public",
- "id": "b80f8d4e28b74188858b654cb1fccf7d"
- }, {
- "region_id": "RegionOne",
- "url": "http://127.0.0.1:8786/v1/b80f8d4e28b74188858b654cb1fccf7d",
- "region": "RegionOne",
- "interface": "internal",
- "id": "b80f8d4e28b74188858b654cb1fccf7d"
- }
- ],
- "endpoints_links": [],
- "type": "share",
- "name": "manila"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8776/v1/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "admin",
- "id": "4442fbd064844a7bbe6a792507d4b8e3"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8776/v1/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "internal",
- "id": "4b4178fd2e3d4f329600cc4ceaaa7e3a"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8776/v1/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "public",
- "id": "90977723dba04ea9a2a184c99565ccff"
- }
- ],
- "type": "volume",
- "id": "511b94ce0482484ea09028091dd5e9a5",
- "name": "cinder"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8774/v2/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "internal",
- "id": "81c51855280345e9a6c322ca986d4e4b"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8774/v2/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "admin",
- "id": "a0310a37cf6144a6a967cbae9a7959ba"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8774/v2/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "public",
- "id": "f6d38c03b9c04a9e924aaa288ce014b8"
- }
- ],
- "type": "compute",
- "id": "5b7028751ed045d79467c7845ecb8c58",
- "name": "nova"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8774/v2.1/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "internal",
- "id": "2f17e155b0aa47838394e6c4f6fe30e0"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8774/v2.1/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "public",
- "id": "9d2555fd27dd44e5acfb5e56127d974b"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:8774/v2.1/123ac695d4db400a9001b91bb3b8aa46",
- "region": "RegionOne",
- "interface": "admin",
- "id": "e8bdd9403fbb4efa8d77bfd4f6a5e34a"
- }
- ],
- "type": "computev21",
- "id": "97e665cbada043718180c5a6316df76a",
- "name": "novav21"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:35357/v3",
- "region": "RegionOne",
- "interface": "admin",
- "id": "185eda94de9340e58245062f75d7f80e"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:5000/v3",
- "region": "RegionOne",
- "interface": "internal",
- "id": "9abd6797844d455f875af9537325cba4"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:5000/v3",
- "region": "RegionOne",
- "interface": "public",
- "id": "d3b31f24e4ea40699f731e29e625c187"
- }
- ],
- "type": "identity",
- "id": "b577d8f7c7074d04a1165fcca638b600",
- "name": "keystone_v3x"
- }, {
- "endpoints": [
- {
- "region_id": "europe",
- "url": "http://devstack.openstack.stack:35357/v3",
- "region": "europe",
- "interface": "admin",
- "id": "32bb2c6aea944ea6b4956eb24142d2e2"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:5000/v3",
- "region": "RegionOne",
- "interface": "public",
- "id": "480ea71dc8cf4c959df1c6304be87056"
- }, {
- "region_id": "europe",
- "url": "http://devstack.openstack.stack:5000/v3",
- "region": "europe",
- "interface": "public",
- "id": "600638643d22494fad4f30e3b22ae124"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:5000/v3",
- "region": "RegionOne",
- "interface": "internal",
- "id": "8a254651925e4a3e9505c863a00c017e"
- }, {
- "region_id": "europe",
- "url": "http://devstack.openstack.stack:5000/v3",
- "region": "europe",
- "interface": "internal",
- "id": "b93da6aaba654d8cb451ff8378d7d2a5"
- }, {
- "region_id": "RegionOne",
- "url": "http://devstack.openstack.stack:35357/v3",
- "region": "RegionOne",
- "interface": "admin",
- "id": "d5f8e0da0f3345529a5fb324d735d4a3"
- }
- ],
- "type": "identity_v3",
- "id": "cd9002bbadfe495d81b5ee4c50768009",
- "name": "keystone_v3"
- }, {
- "endpoints": [
- {
- "region_id": "RegionOne",
- "url": "http://127.0.0.1:8779/v1.0/26decac97b67478f9f64ff2c2c1b778e",
- "region": "RegionOne",
- "interface": "admin",
- "id": "7202c1c716f74468b6d22a1a5f83e38d"
- }, {
- "region_id": "RegionOne",
- "url": "http://127.0.0.1:8779/v1.0/26decac97b67478f9f64ff2c2c1b778e",
- "region": "RegionOne",
- "interface": "internal",
- "id": "373cf9b0185c4406bd7cae1a1e9e1b95"
- }, {
- "region_id": "RegionOne",
- "url": "http://127.0.0.1:8779/v1.0/26decac97b67478f9f64ff2c2c1b778e",
- "region": "RegionOne",
- "interface": "public",
- "id": "58bc7c3c2c66464b99ec20a398492bce"
- }
- ],
- "type": "database",
- "id": "511b94ce0482484ea09028091dd5e9a5",
- "name": "trove"
- }
- ],
- "extras": {},
- "user": {
- "domain": {
- "id": "default",
- "name": "Default"
- },
- "id": "aa9f25defa6d4cafb48466df83106065",
- "name": "admin"
- },
- "audit_ids": ["jcxRTXu9T5e9giMO57cE3A", "FJwqoPgBQf-W3e9jqC3dcA"],
- "issued_at": "2015-08-26T13:14:09.542711Z"
- }
+ "token": {
+ "domain": {
+ "id": "default",
+ "name": "Default"
+ },
+ "methods": [
+ "password"
+ ],
+ "roles": [
+ {
+ "id": "6ead57f8ae124996af8b0beb72ff1007",
+ "name": "admin"
+ }
+ ],
+ "expires_at": "2015-08-26T14:14:09.416956Z",
+ "catalog": [
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:9292",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "6e82c8912d3f49a09df51035681d564c"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:9292",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "7e44d321ae80457abc3728fa1e6feb32"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:9292",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "c9a090a4597040849c03bc13588167f6"
+ }
+ ],
+ "type": "image",
+ "id": "0d56500210a24c38a3702b6825e24164",
+ "name": "glance"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8776/v2/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "261aaf6239bb49a4a1cfa87c19859138"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8776/v2/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "437d282e0bb94622aaacc4d194c069a9"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8776/v2/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "5e78bf7bae7c4ff5b9720b2c2e4da743"
+ }
+ ],
+ "type": "volumev2",
+ "id": "2b92e79c45254516932c633229cd0e8b",
+ "name": "cinderv2"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8773/",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "1ce26a6fffd0424bac135b9c68055b6e"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8773/",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "98db699b9ffa4dffb027d78163aad8cc"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8773/",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "ece52860cf1e4eb6a8fed05c47a30147"
+ }
+ ],
+ "type": "ec2",
+ "id": "3364a7b95c664bf89a7a8db081576364",
+ "name": "ec2"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://127.0.0.1:8786/v1/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "b80f8d4e28b74188858b654cb1fccf7d"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://127.0.0.1:8786/v1/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "b80f8d4e28b74188858b654cb1fccf7d"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://127.0.0.1:8786/v1/b80f8d4e28b74188858b654cb1fccf7d",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "b80f8d4e28b74188858b654cb1fccf7d"
+ }
+ ],
+ "endpoints_links": [],
+ "type": "share",
+ "name": "manila"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8776/v1/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "4442fbd064844a7bbe6a792507d4b8e3"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8776/v1/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "4b4178fd2e3d4f329600cc4ceaaa7e3a"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8776/v1/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "90977723dba04ea9a2a184c99565ccff"
+ }
+ ],
+ "type": "volume",
+ "id": "511b94ce0482484ea09028091dd5e9a5",
+ "name": "cinder"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8774/v2/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "81c51855280345e9a6c322ca986d4e4b"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8774/v2/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "a0310a37cf6144a6a967cbae9a7959ba"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8774/v2/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "f6d38c03b9c04a9e924aaa288ce014b8"
+ }
+ ],
+ "type": "compute",
+ "id": "5b7028751ed045d79467c7845ecb8c58",
+ "name": "nova"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8774/v2.1/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "2f17e155b0aa47838394e6c4f6fe30e0"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8774/v2.1/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "9d2555fd27dd44e5acfb5e56127d974b"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:8774/v2.1/123ac695d4db400a9001b91bb3b8aa46",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "e8bdd9403fbb4efa8d77bfd4f6a5e34a"
+ }
+ ],
+ "type": "computev21",
+ "id": "97e665cbada043718180c5a6316df76a",
+ "name": "novav21"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:35357/v3",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "185eda94de9340e58245062f75d7f80e"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:5000/v3",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "9abd6797844d455f875af9537325cba4"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:5000/v3",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "d3b31f24e4ea40699f731e29e625c187"
+ }
+ ],
+ "type": "identity",
+ "id": "b577d8f7c7074d04a1165fcca638b600",
+ "name": "keystone_v3x"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "europe",
+ "url": "http://devstack.openstack.stack:35357/v3",
+ "region": "europe",
+ "interface": "admin",
+ "id": "32bb2c6aea944ea6b4956eb24142d2e2"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:5000/v3",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "480ea71dc8cf4c959df1c6304be87056"
+ },
+ {
+ "region_id": "europe",
+ "url": "http://devstack.openstack.stack:5000/v3",
+ "region": "europe",
+ "interface": "public",
+ "id": "600638643d22494fad4f30e3b22ae124"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:5000/v3",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "8a254651925e4a3e9505c863a00c017e"
+ },
+ {
+ "region_id": "europe",
+ "url": "http://devstack.openstack.stack:5000/v3",
+ "region": "europe",
+ "interface": "internal",
+ "id": "b93da6aaba654d8cb451ff8378d7d2a5"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://devstack.openstack.stack:35357/v3",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "d5f8e0da0f3345529a5fb324d735d4a3"
+ }
+ ],
+ "type": "identity_v3",
+ "id": "cd9002bbadfe495d81b5ee4c50768009",
+ "name": "keystone_v3"
+ },
+ {
+ "endpoints": [
+ {
+ "region_id": "RegionOne",
+ "url": "http://127.0.0.1:8779/v1.0/26decac97b67478f9f64ff2c2c1b778e",
+ "region": "RegionOne",
+ "interface": "admin",
+ "id": "7202c1c716f74468b6d22a1a5f83e38d"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://127.0.0.1:8779/v1.0/26decac97b67478f9f64ff2c2c1b778e",
+ "region": "RegionOne",
+ "interface": "internal",
+ "id": "373cf9b0185c4406bd7cae1a1e9e1b95"
+ },
+ {
+ "region_id": "RegionOne",
+ "url": "http://127.0.0.1:8779/v1.0/26decac97b67478f9f64ff2c2c1b778e",
+ "region": "RegionOne",
+ "interface": "public",
+ "id": "58bc7c3c2c66464b99ec20a398492bce"
+ }
+ ],
+ "type": "database",
+ "id": "511b94ce0482484ea09028091dd5e9a5",
+ "name": "trove"
+ }
+ ],
+ "extras": {},
+ "user": {
+ "domain": {
+ "id": "default",
+ "name": "Default"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "name": "admin"
+ },
+ "audit_ids": [
+ "jcxRTXu9T5e9giMO57cE3A",
+ "FJwqoPgBQf-W3e9jqC3dcA"
+ ],
+ "issued_at": "2015-08-26T13:14:09.542711Z"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/authv3_token.json b/core-test/src/main/resources/identity/v3/authv3_token.json
index 8a3872b69..230ea1bf6 100644
--- a/core-test/src/main/resources/identity/v3/authv3_token.json
+++ b/core-test/src/main/resources/identity/v3/authv3_token.json
@@ -1,24 +1,31 @@
{
-"token": {
- "methods": ["token", "password"],
- "expires_at": "2015-08-26T14:14:13.719898Z",
+ "token": {
+ "methods": [
+ "token",
+ "password"
+ ],
+ "expires_at": "2015-08-26T14:14:13.719898Z",
"extras": {},
"project": {
- "domain": {
- "id": "default",
- "name": "Default"
- },
- "id": "123ac695d4db400a9001b91bb3b8aa46",
- "name": "admin"
- },
+ "domain": {
+ "id": "default",
+ "name": "Default"
+ },
+ "id": "123ac695d4db400a9001b91bb3b8aa46",
+ "name": "admin"
+ },
"user": {
- "domain": {
- "id": "default",
- "name": "Default"},
- "id": "aa9f25defa6d4cafb48466df83106065",
- "name": "admin"
- },
- "audit_ids": ["VtEJDKwAS6G1PE1cJZBTGw", "Kb3N3IhxT02fYwHt6964Zg"],
+ "domain": {
+ "id": "default",
+ "name": "Default"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "name": "admin"
+ },
+ "audit_ids": [
+ "VtEJDKwAS6G1PE1cJZBTGw",
+ "Kb3N3IhxT02fYwHt6964Zg"
+ ],
"issued_at": "2015-08-26T13:14:13.779668Z"
- }
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/authv3_token_unscoped.json b/core-test/src/main/resources/identity/v3/authv3_token_unscoped.json
index 5bc113b82..fcaae574b 100644
--- a/core-test/src/main/resources/identity/v3/authv3_token_unscoped.json
+++ b/core-test/src/main/resources/identity/v3/authv3_token_unscoped.json
@@ -1,16 +1,21 @@
{
-"token": {
- "methods": ["token"],
- "expires_at": "2015-08-26T14:14:13.719898Z",
+ "token": {
+ "methods": [
+ "token"
+ ],
+ "expires_at": "2015-08-26T14:14:13.719898Z",
"extras": {},
"user": {
- "domain": {
- "id": "default",
- "name": "Default"},
- "id": "aa9f25defa6d4cafb48466df83106065",
- "name": "admin"
- },
- "audit_ids": ["VtEJDKwAS6G1PE1cJZBTGw"],
+ "domain": {
+ "id": "default",
+ "name": "Default"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "name": "admin"
+ },
+ "audit_ids": [
+ "VtEJDKwAS6G1PE1cJZBTGw"
+ ],
"issued_at": "2015-08-26T13:14:13.779668Z"
- }
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/authv3_unscoped.json b/core-test/src/main/resources/identity/v3/authv3_unscoped.json
index 2ea5be45e..38c84ae2a 100644
--- a/core-test/src/main/resources/identity/v3/authv3_unscoped.json
+++ b/core-test/src/main/resources/identity/v3/authv3_unscoped.json
@@ -1,17 +1,21 @@
{
- "token": {
- "methods": ["password"],
- "expires_at": "2015-08-26T14:14:10.395363Z",
- "extras": {},
- "user": {
- "domain": {
- "id": "default",
- "name": "Default"
- },
- "id": "aa9f25defa6d4cafb48466df83106065",
- "name": "admin"
- },
- "audit_ids": ["jMpsNK77TA6hwF6bbBHQYA"],
- "issued_at": "2015-08-26T13:14:10.395414Z"
- }
+ "token": {
+ "methods": [
+ "password"
+ ],
+ "expires_at": "2015-08-26T14:14:10.395363Z",
+ "extras": {},
+ "user": {
+ "domain": {
+ "id": "default",
+ "name": "Default"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "name": "admin"
+ },
+ "audit_ids": [
+ "jMpsNK77TA6hwF6bbBHQYA"
+ ],
+ "issued_at": "2015-08-26T13:14:10.395414Z"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/create_user.json b/core-test/src/main/resources/identity/v3/create_user.json
index a67cbdd85..108c1b5c0 100644
--- a/core-test/src/main/resources/identity/v3/create_user.json
+++ b/core-test/src/main/resources/identity/v3/create_user.json
@@ -1,14 +1,14 @@
{
-"user": {
- "name": "foobar",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
- },
- "domain_id": "default",
- "enabled": true,
- "email": "foobar@example.org",
- "description" : "a new user",
- "default_project_id" : "123ac695d4db400a9001b91bb3b8aa46",
- "id": "29d5aaaa6d3b471e9c101ae470e649a6"
- }
+ "user": {
+ "name": "foobar",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": "foobar@example.org",
+ "description": "a new user",
+ "default_project_id": "123ac695d4db400a9001b91bb3b8aa46",
+ "id": "29d5aaaa6d3b471e9c101ae470e649a6"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/credentials_update_response.json b/core-test/src/main/resources/identity/v3/credentials_update_response.json
index b2c22fdb5..fef848c9a 100644
--- a/core-test/src/main/resources/identity/v3/credentials_update_response.json
+++ b/core-test/src/main/resources/identity/v3/credentials_update_response.json
@@ -1,12 +1,12 @@
{
- "credential": {
- "user_id": "aa9f25defa6d4cafb48466df83106065",
- "links": {
- "self": "http://127.0.0.1:5000/v3/credentials/3d3367228f9c7665266604462ec60029bcd83ad89614021a80b2eb879c572510"
- },
- "blob": "{\"access\":\"181920\",\"secret\":\"updatedSecretKey\"}",
- "project_id": "123ac695d4db400a9001b91bb3b8aa46",
- "type": "ec2",
- "id": "3d3367228f9c7665266604462ec60029bcd83ad89614021a80b2eb879c572510"
- }
+ "credential": {
+ "user_id": "aa9f25defa6d4cafb48466df83106065",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/credentials/3d3367228f9c7665266604462ec60029bcd83ad89614021a80b2eb879c572510"
+ },
+ "blob": "{\"access\":\"181920\",\"secret\":\"updatedSecretKey\"}",
+ "project_id": "123ac695d4db400a9001b91bb3b8aa46",
+ "type": "ec2",
+ "id": "3d3367228f9c7665266604462ec60029bcd83ad89614021a80b2eb879c572510"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/domains_create_response.json b/core-test/src/main/resources/identity/v3/domains_create_response.json
index 9f8e5b16e..dfd695e76 100644
--- a/core-test/src/main/resources/identity/v3/domains_create_response.json
+++ b/core-test/src/main/resources/identity/v3/domains_create_response.json
@@ -1,11 +1,11 @@
{
- "domain": {
- "links": {
- "self": "http://127.0.0.1:5000/v3/domains/98c110ae41c249189c9d5c25d8377b65"
- },
- "enabled": true,
- "description": "Domain used for CRUD tests",
- "name": "Domain_CRUD",
- "id": "98c110ae41c249189c9d5c25d8377b65"
- }
+ "domain": {
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/domains/98c110ae41c249189c9d5c25d8377b65"
+ },
+ "enabled": true,
+ "description": "Domain used for CRUD tests",
+ "name": "Domain_CRUD",
+ "id": "98c110ae41c249189c9d5c25d8377b65"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/domains_update_response.json b/core-test/src/main/resources/identity/v3/domains_update_response.json
index 9646d4c38..0d0e7e5f2 100644
--- a/core-test/src/main/resources/identity/v3/domains_update_response.json
+++ b/core-test/src/main/resources/identity/v3/domains_update_response.json
@@ -1,11 +1,11 @@
{
- "domain": {
- "links": {
- "self": "http://127.0.0.1:5000/v3/domains/98c110ae41c249189c9d5c25d8377b65"
- },
- "enabled": true,
- "description": "An updated domain used for CRUD tests",
- "name": "Domain_CRUD",
- "id": "98c110ae41c249189c9d5c25d8377b65"
- }
+ "domain": {
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/domains/98c110ae41c249189c9d5c25d8377b65"
+ },
+ "enabled": true,
+ "description": "An updated domain used for CRUD tests",
+ "name": "Domain_CRUD",
+ "id": "98c110ae41c249189c9d5c25d8377b65"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/groups_create_response.json b/core-test/src/main/resources/identity/v3/groups_create_response.json
index 5716d52b7..e800ea1d2 100644
--- a/core-test/src/main/resources/identity/v3/groups_create_response.json
+++ b/core-test/src/main/resources/identity/v3/groups_create_response.json
@@ -1,11 +1,11 @@
{
- "group": {
- "domain_id": "default",
- "description": "Group used for CRUD tests",
- "id": "c0d675eac29945ad9dfd08aa1bb75751",
- "links": {
- "self": "http://127.0.0.1:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751"
- },
- "name": "GROUP_CRUD"
- }
+ "group": {
+ "domain_id": "default",
+ "description": "Group used for CRUD tests",
+ "id": "c0d675eac29945ad9dfd08aa1bb75751",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751"
+ },
+ "name": "GROUP_CRUD"
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/groups_getByName_empty.json b/core-test/src/main/resources/identity/v3/groups_getByName_empty.json
index 22ce5819d..0d88ab3e1 100644
--- a/core-test/src/main/resources/identity/v3/groups_getByName_empty.json
+++ b/core-test/src/main/resources/identity/v3/groups_getByName_empty.json
@@ -1,8 +1,8 @@
{
- "links": {
- "self": "http://127.0.0.1:5000/v3/groups",
- "previous": null,
- "next": null
- },
- "groups": []
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/groups",
+ "previous": null,
+ "next": null
+ },
+ "groups": []
}
diff --git a/core-test/src/main/resources/identity/v3/groups_get_byId.json b/core-test/src/main/resources/identity/v3/groups_get_byId.json
index 5716d52b7..e800ea1d2 100644
--- a/core-test/src/main/resources/identity/v3/groups_get_byId.json
+++ b/core-test/src/main/resources/identity/v3/groups_get_byId.json
@@ -1,11 +1,11 @@
{
- "group": {
- "domain_id": "default",
- "description": "Group used for CRUD tests",
- "id": "c0d675eac29945ad9dfd08aa1bb75751",
- "links": {
- "self": "http://127.0.0.1:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751"
- },
- "name": "GROUP_CRUD"
- }
+ "group": {
+ "domain_id": "default",
+ "description": "Group used for CRUD tests",
+ "id": "c0d675eac29945ad9dfd08aa1bb75751",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751"
+ },
+ "name": "GROUP_CRUD"
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/groups_update_response.json b/core-test/src/main/resources/identity/v3/groups_update_response.json
index 50993acf7..be7e2456c 100644
--- a/core-test/src/main/resources/identity/v3/groups_update_response.json
+++ b/core-test/src/main/resources/identity/v3/groups_update_response.json
@@ -1,11 +1,11 @@
{
- "group": {
- "domain_id": "default",
- "description": "An updated group used for CRUD tests",
- "id": "c0d675eac29945ad9dfd08aa1bb75751",
- "links": {
- "self": "http://127.0.0.1:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751"
- },
- "name": "GROUP_CRUD"
- }
+ "group": {
+ "domain_id": "default",
+ "description": "An updated group used for CRUD tests",
+ "id": "c0d675eac29945ad9dfd08aa1bb75751",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751"
+ },
+ "name": "GROUP_CRUD"
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/list_domain_user_roles.json b/core-test/src/main/resources/identity/v3/list_domain_user_roles.json
index 89c2dae4d..cbbdd98f7 100644
--- a/core-test/src/main/resources/identity/v3/list_domain_user_roles.json
+++ b/core-test/src/main/resources/identity/v3/list_domain_user_roles.json
@@ -1,14 +1,16 @@
{
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/domains/default/users/aa9f25defa6d4cafb48466df83106065/roles",
- "previous": null,
- "next": null
- },
- "roles": [{
- "id": "aae88952465d4c32b0a1140a76601b68",
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/roles/aa9f25defa6d4cafb48466df83106065"
- },
- "name": "admin"
- }]
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/domains/default/users/aa9f25defa6d4cafb48466df83106065/roles",
+ "previous": null,
+ "next": null
+ },
+ "roles": [
+ {
+ "id": "aae88952465d4c32b0a1140a76601b68",
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/roles/aa9f25defa6d4cafb48466df83106065"
+ },
+ "name": "admin"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/list_project_user_roles.json b/core-test/src/main/resources/identity/v3/list_project_user_roles.json
index 757fb2400..46de0c5b0 100644
--- a/core-test/src/main/resources/identity/v3/list_project_user_roles.json
+++ b/core-test/src/main/resources/identity/v3/list_project_user_roles.json
@@ -1,14 +1,16 @@
{
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/projects/123ac695d4db400a9001b91bb3b8aa46/users/aa9f25defa6d4cafb48466df83106065/roles",
- "previous": null,
- "next": null
- },
- "roles": [{
- "id": "aae88952465d4c32b0a1140a76601b68",
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/roles/aa9f25defa6d4cafb48466df83106065"
- },
- "name": "admin"
- }]
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/projects/123ac695d4db400a9001b91bb3b8aa46/users/aa9f25defa6d4cafb48466df83106065/roles",
+ "previous": null,
+ "next": null
+ },
+ "roles": [
+ {
+ "id": "aae88952465d4c32b0a1140a76601b68",
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/roles/aa9f25defa6d4cafb48466df83106065"
+ },
+ "name": "admin"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/list_user_groups.json b/core-test/src/main/resources/identity/v3/list_user_groups.json
index 2cec429c9..ae5ebb0fe 100644
--- a/core-test/src/main/resources/identity/v3/list_user_groups.json
+++ b/core-test/src/main/resources/identity/v3/list_user_groups.json
@@ -1,27 +1,27 @@
{
- "groups": [
- {
- "description": "Developers cleared for work on all general projects",
- "domain_id": "default",
- "id": "ea167b",
- "links": {
- "self": "https://identity:35357/v3/groups/ea167b"
- },
- "name": "Developers"
- },
- {
- "description": "Developers cleared for work on secret projects",
- "domain_id": "default",
- "id": "a62db1",
- "links": {
- "self": "https://identity:35357/v3/groups/a62db1"
- },
- "name": "Secure Developers"
- }
- ],
- "links": {
- "self": "http://identity:35357/v3/users/aa9f25defa6d4cafb48466df83106065/groups",
- "previous": null,
- "next": null
+ "groups": [
+ {
+ "description": "Developers cleared for work on all general projects",
+ "domain_id": "default",
+ "id": "ea167b",
+ "links": {
+ "self": "https://identity:35357/v3/groups/ea167b"
+ },
+ "name": "Developers"
+ },
+ {
+ "description": "Developers cleared for work on secret projects",
+ "domain_id": "default",
+ "id": "a62db1",
+ "links": {
+ "self": "https://identity:35357/v3/groups/a62db1"
+ },
+ "name": "Secure Developers"
}
+ ],
+ "links": {
+ "self": "http://identity:35357/v3/users/aa9f25defa6d4cafb48466df83106065/groups",
+ "previous": null,
+ "next": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/list_user_projects.json b/core-test/src/main/resources/identity/v3/list_user_projects.json
index 8f904773e..297bb30ec 100644
--- a/core-test/src/main/resources/identity/v3/list_user_projects.json
+++ b/core-test/src/main/resources/identity/v3/list_user_projects.json
@@ -1,31 +1,31 @@
{
- "projects": [
- {
- "description": "description of this project",
- "domain_id": "default",
- "enabled": true,
- "id": "456788",
- "parent_id": "212223",
- "links": {
- "self": "http://identity:35357/v3/projects/456788"
- },
- "name": "a project name"
- },
- {
- "description": "description of this project",
- "domain_id": "default",
- "enabled": true,
- "id": "456789",
- "parent_id": "212223",
- "links": {
- "self": "http://identity:35357/v3/projects/456789"
- },
- "name": "another domain"
- }
- ],
- "links": {
- "self": "http://identity:35357/v3/users/aa9f25defa6d4cafb48466df83106065/projects",
- "previous": null,
- "next": null
+ "projects": [
+ {
+ "description": "description of this project",
+ "domain_id": "default",
+ "enabled": true,
+ "id": "456788",
+ "parent_id": "212223",
+ "links": {
+ "self": "http://identity:35357/v3/projects/456788"
+ },
+ "name": "a project name"
+ },
+ {
+ "description": "description of this project",
+ "domain_id": "default",
+ "enabled": true,
+ "id": "456789",
+ "parent_id": "212223",
+ "links": {
+ "self": "http://identity:35357/v3/projects/456789"
+ },
+ "name": "another domain"
}
+ ],
+ "links": {
+ "self": "http://identity:35357/v3/users/aa9f25defa6d4cafb48466df83106065/projects",
+ "previous": null,
+ "next": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/policies_get_byId.json b/core-test/src/main/resources/identity/v3/policies_get_byId.json
index 4490d3672..4c788d137 100644
--- a/core-test/src/main/resources/identity/v3/policies_get_byId.json
+++ b/core-test/src/main/resources/identity/v3/policies_get_byId.json
@@ -1,12 +1,12 @@
{
- "policy": {
- "user_id": "aa9f25defa6d4cafb48466df83106065",
- "links": {
- "self": "http://identity:35357/v3/policies/13c92821e4c4476a878d3aae7444f52f"
- },
- "blob": "{'admin' : 'role:admin-user'}",
- "project_id": "123ac695d4db400a9001b91bb3b8aa46",
- "type": "application/json",
- "id": "13c92821e4c4476a878d3aae7444f52f"
- }
+ "policy": {
+ "user_id": "aa9f25defa6d4cafb48466df83106065",
+ "links": {
+ "self": "http://identity:35357/v3/policies/13c92821e4c4476a878d3aae7444f52f"
+ },
+ "blob": "{'admin' : 'role:admin-user'}",
+ "project_id": "123ac695d4db400a9001b91bb3b8aa46",
+ "type": "application/json",
+ "id": "13c92821e4c4476a878d3aae7444f52f"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/policies_update_response.json b/core-test/src/main/resources/identity/v3/policies_update_response.json
index b98ddf612..1be21ee4a 100644
--- a/core-test/src/main/resources/identity/v3/policies_update_response.json
+++ b/core-test/src/main/resources/identity/v3/policies_update_response.json
@@ -1,12 +1,12 @@
{
- "policy": {
- "user_id": "aa9f25defa6d4cafb48466df83106065",
- "links": {
- "self": "http://identity:35357/v3/policies/13c92821e4c4476a878d3aae7444f52f"
- },
- "blob": "{'admin' : 'role:non-admin-user'}",
- "project_id": "123ac695d4db400a9001b91bb3b8aa46",
- "type": "application/json",
- "id": "13c92821e4c4476a878d3aae7444f52f"
- }
+ "policy": {
+ "user_id": "aa9f25defa6d4cafb48466df83106065",
+ "links": {
+ "self": "http://identity:35357/v3/policies/13c92821e4c4476a878d3aae7444f52f"
+ },
+ "blob": "{'admin' : 'role:non-admin-user'}",
+ "project_id": "123ac695d4db400a9001b91bb3b8aa46",
+ "type": "application/json",
+ "id": "13c92821e4c4476a878d3aae7444f52f"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/projects_create_response.json b/core-test/src/main/resources/identity/v3/projects_create_response.json
index a99eb73a2..3a2c6c0be 100644
--- a/core-test/src/main/resources/identity/v3/projects_create_response.json
+++ b/core-test/src/main/resources/identity/v3/projects_create_response.json
@@ -11,6 +11,10 @@
"domain_id": "7a71863c2d1d4444b3e6c2cd36955e1e",
"name": "ProjectX",
"extra_key1": "value1",
- "tags": ["one", "two", "three"]
+ "tags": [
+ "one",
+ "two",
+ "three"
+ ]
}
}
diff --git a/core-test/src/main/resources/identity/v3/projects_getByName_empty.json b/core-test/src/main/resources/identity/v3/projects_getByName_empty.json
index 53bcf361d..d7a011947 100644
--- a/core-test/src/main/resources/identity/v3/projects_getByName_empty.json
+++ b/core-test/src/main/resources/identity/v3/projects_getByName_empty.json
@@ -1,8 +1,8 @@
{
- "links": {
- "self": "http://127.0.0.1:5000/v3/projects",
- "previous": null,
- "next": null
- },
- "projects": []
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/projects",
+ "previous": null,
+ "next": null
+ },
+ "projects": []
}
diff --git a/core-test/src/main/resources/identity/v3/read_user.json b/core-test/src/main/resources/identity/v3/read_user.json
index aa6bb13fc..fc85426c3 100644
--- a/core-test/src/main/resources/identity/v3/read_user.json
+++ b/core-test/src/main/resources/identity/v3/read_user.json
@@ -1,17 +1,19 @@
{
- "users": [{
- "name": "foobar",
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
- },
- "domain_id": "default",
- "enabled": true,
- "email": "foobar@example.org",
- "id": "29d5aaaa6d3b471e9c101ae470e649a6"
- }],
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users?domain_id=default&name=foobar",
- "previous": null,
- "next": null
+ "users": [
+ {
+ "name": "foobar",
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": "foobar@example.org",
+ "id": "29d5aaaa6d3b471e9c101ae470e649a6"
}
+ ],
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users?domain_id=default&name=foobar",
+ "previous": null,
+ "next": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/regions_get_byId.json b/core-test/src/main/resources/identity/v3/regions_get_byId.json
index 4a22c0bbc..130284ff7 100644
--- a/core-test/src/main/resources/identity/v3/regions_get_byId.json
+++ b/core-test/src/main/resources/identity/v3/regions_get_byId.json
@@ -1,10 +1,10 @@
{
- "region": {
- "parent_region_id": "RegionOne",
- "id": "Region_CRUD",
- "links": {
- "self": "http://127.0.0.1:5000/v3/regions/Region_CRUD"
- },
- "description": "No description provided."
- }
+ "region": {
+ "parent_region_id": "RegionOne",
+ "id": "Region_CRUD",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/regions/Region_CRUD"
+ },
+ "description": "No description provided."
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/regions_update_response.json b/core-test/src/main/resources/identity/v3/regions_update_response.json
index f451f97a2..dd42380dd 100644
--- a/core-test/src/main/resources/identity/v3/regions_update_response.json
+++ b/core-test/src/main/resources/identity/v3/regions_update_response.json
@@ -1,10 +1,10 @@
{
- "region": {
- "parent_region_id": "RegionOne",
- "id": "Region_CRUD",
- "links": {
- "self": "http://127.0.0.1:5000/v3/regions/Region_CRUD"
- },
- "description": "A updated region used for CRUD tests."
- }
+ "region": {
+ "parent_region_id": "RegionOne",
+ "id": "Region_CRUD",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/regions/Region_CRUD"
+ },
+ "description": "A updated region used for CRUD tests."
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/roles_get_byId.json b/core-test/src/main/resources/identity/v3/roles_get_byId.json
index 2d85ad9f3..436c40012 100644
--- a/core-test/src/main/resources/identity/v3/roles_get_byId.json
+++ b/core-test/src/main/resources/identity/v3/roles_get_byId.json
@@ -1,10 +1,10 @@
{
- "role": {
- "id": "aae88952465d4c32b0a1140a76601b68",
- "domain_id" : "default",
- "links": {
- "self": "http://127.0.0.1:5000/v3/roles/aae88952465d4c32b0a1140a76601b68"
- },
- "name": "admin"
- }
+ "role": {
+ "id": "aae88952465d4c32b0a1140a76601b68",
+ "domain_id": "default",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/roles/aae88952465d4c32b0a1140a76601b68"
+ },
+ "name": "admin"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/roles_grantRole_error.json b/core-test/src/main/resources/identity/v3/roles_grantRole_error.json
index 28f4335a8..eab9662d4 100644
--- a/core-test/src/main/resources/identity/v3/roles_grantRole_error.json
+++ b/core-test/src/main/resources/identity/v3/roles_grantRole_error.json
@@ -1,7 +1,7 @@
{
- "error": {
- "message": "Could not find role: nonExistingRoleId",
- "code": 404,
- "title": "Not Found"
- }
+ "error": {
+ "message": "Could not find role: nonExistingRoleId",
+ "code": 404,
+ "title": "Not Found"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/roles_list.json b/core-test/src/main/resources/identity/v3/roles_list.json
index 4b221a1a9..7ff4f565d 100644
--- a/core-test/src/main/resources/identity/v3/roles_list.json
+++ b/core-test/src/main/resources/identity/v3/roles_list.json
@@ -6,7 +6,7 @@
},
"roles": [
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "1106df77e969413ca2a24aca5d5af0a6",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/1106df77e969413ca2a24aca5d5af0a6"
@@ -14,7 +14,7 @@
"name": "ResellerAdmin"
},
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "4585a09447dd4eeea1ffcf495e0003a9",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/4585a09447dd4eeea1ffcf495e0003a9"
@@ -22,7 +22,7 @@
"name": "Member"
},
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "9fe2ff9ee4384b1894a90878d3e92bab",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/9fe2ff9ee4384b1894a90878d3e92bab"
@@ -30,7 +30,7 @@
"name": "_member_"
},
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "c85149ed1b5548549289a576f1ab946e",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/c85149ed1b5548549289a576f1ab946e"
@@ -38,7 +38,7 @@
"name": "service"
},
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "d164e3440b5741808e5d8ec324b51e0b",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/d164e3440b5741808e5d8ec324b51e0b"
@@ -46,7 +46,7 @@
"name": "admin"
},
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "f2b9666d7c41407b8a56fda3c76379ec",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/f2b9666d7c41407b8a56fda3c76379ec"
diff --git a/core-test/src/main/resources/identity/v3/roles_multiple_entries.json b/core-test/src/main/resources/identity/v3/roles_multiple_entries.json
index b80e50d36..5c46e7056 100644
--- a/core-test/src/main/resources/identity/v3/roles_multiple_entries.json
+++ b/core-test/src/main/resources/identity/v3/roles_multiple_entries.json
@@ -6,7 +6,7 @@
},
"roles": [
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "d164e3440b5741808e5d8ec324b51e0b",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/d164e3440b5741808e5d8ec324b51e0b"
@@ -14,7 +14,7 @@
"name": "admin"
},
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "d164e3440b5741808e5d8ec324b51e0c",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/d164e3440b5741808e5d8ec324b51e0c"
diff --git a/core-test/src/main/resources/identity/v3/roles_one_entry.json b/core-test/src/main/resources/identity/v3/roles_one_entry.json
index fcd2d8c27..697fd4e8d 100644
--- a/core-test/src/main/resources/identity/v3/roles_one_entry.json
+++ b/core-test/src/main/resources/identity/v3/roles_one_entry.json
@@ -6,7 +6,7 @@
},
"roles": [
{
- "domain_id" : "default",
+ "domain_id": "default",
"id": "aae88952465d4c32b0a1140a76601b68",
"links": {
"self": "http://127.0.0.1:5000/v3/roles/d164e3440b5741808e5d8ec324b51e0b"
diff --git a/core-test/src/main/resources/identity/v3/roles_revokeRole_error.json b/core-test/src/main/resources/identity/v3/roles_revokeRole_error.json
index 455894413..2e8711a68 100644
--- a/core-test/src/main/resources/identity/v3/roles_revokeRole_error.json
+++ b/core-test/src/main/resources/identity/v3/roles_revokeRole_error.json
@@ -1,7 +1,7 @@
{
- "error": {
- "message": "Could not find role assignment with role: anotherExistingUnassignedRoleId, user or group: aa9f25defa6d4cafb48466df83106065, project or domain: 123ac695d4db400a9001b91bb3b8aa46",
- "code": 404,
- "title": "Not Found"
- }
+ "error": {
+ "message": "Could not find role assignment with role: anotherExistingUnassignedRoleId, user or group: aa9f25defa6d4cafb48466df83106065, project or domain: 123ac695d4db400a9001b91bb3b8aa46",
+ "code": 404,
+ "title": "Not Found"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/roles_update.json b/core-test/src/main/resources/identity/v3/roles_update.json
index 51a553818..7c473d0b3 100644
--- a/core-test/src/main/resources/identity/v3/roles_update.json
+++ b/core-test/src/main/resources/identity/v3/roles_update.json
@@ -1,10 +1,10 @@
{
- "role": {
- "domain_id" : "default",
- "id": "aae88952465d4c32b0a1140a76601b68",
- "links": {
- "self": "http://127.0.0.1:5000/v3/roles/aae88952465d4c32b0a1140a76601b68"
- },
- "name": "cloudAdmin"
- }
+ "role": {
+ "domain_id": "default",
+ "id": "aae88952465d4c32b0a1140a76601b68",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/roles/aae88952465d4c32b0a1140a76601b68"
+ },
+ "name": "cloudAdmin"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/services_get_byId.json b/core-test/src/main/resources/identity/v3/services_get_byId.json
index 7639e5789..bdbe160b7 100644
--- a/core-test/src/main/resources/identity/v3/services_get_byId.json
+++ b/core-test/src/main/resources/identity/v3/services_get_byId.json
@@ -1,12 +1,12 @@
{
- "service": {
- "name": "Service_CRUD",
- "links": {
- "self": "http://127.0.0.1:5000/v3/services/5439da9864004dd088fce14c1c626a4b"
- },
- "enabled": true,
- "type": "identity",
- "id": "5439da9864004dd088fce14c1c626a4b",
- "description": "Identity Service"
- }
+ "service": {
+ "name": "Service_CRUD",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/services/5439da9864004dd088fce14c1c626a4b"
+ },
+ "enabled": true,
+ "type": "identity",
+ "id": "5439da9864004dd088fce14c1c626a4b",
+ "description": "Identity Service"
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/services_update_response.json b/core-test/src/main/resources/identity/v3/services_update_response.json
index 504989db0..1896d8c6a 100644
--- a/core-test/src/main/resources/identity/v3/services_update_response.json
+++ b/core-test/src/main/resources/identity/v3/services_update_response.json
@@ -1,12 +1,12 @@
{
- "service": {
- "name": "Service_CRUD",
- "links": {
- "self": "http://127.0.0.1:5000/v3/services/5439da9864004dd088fce14c1c626a4b"
- },
- "enabled": true,
- "type": "identity",
- "id": "5439da9864004dd088fce14c1c626a4b",
- "description": "An updated service used for tests"
- }
+ "service": {
+ "name": "Service_CRUD",
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/services/5439da9864004dd088fce14c1c626a4b"
+ },
+ "enabled": true,
+ "type": "identity",
+ "id": "5439da9864004dd088fce14c1c626a4b",
+ "description": "An updated service used for tests"
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/update_user.json b/core-test/src/main/resources/identity/v3/update_user.json
index 52e5dd35d..7c03dc6eb 100644
--- a/core-test/src/main/resources/identity/v3/update_user.json
+++ b/core-test/src/main/resources/identity/v3/update_user.json
@@ -1,18 +1,18 @@
{
- "user": {
- "name": "foobar",
- "links": {
- "self": "http://devstack.openstack,stack:5000/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
- },
- "extra": {
- "email": "updatedFoobar@example.org",
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
- }
- },
- "domain_id": "default",
- "enabled": true,
- "id": "29d5aaaa6d3b471e9c101ae470e649a6",
- "email": "updatedFoobar@example.org"
- }
+ "user": {
+ "name": "foobar",
+ "links": {
+ "self": "http://devstack.openstack,stack:5000/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
+ },
+ "extra": {
+ "email": "updatedFoobar@example.org",
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users/29d5aaaa6d3b471e9c101ae470e649a6"
+ }
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "id": "29d5aaaa6d3b471e9c101ae470e649a6",
+ "email": "updatedFoobar@example.org"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/user_add_ToGroup_fail.json b/core-test/src/main/resources/identity/v3/user_add_ToGroup_fail.json
index b9df9d506..581def17a 100644
--- a/core-test/src/main/resources/identity/v3/user_add_ToGroup_fail.json
+++ b/core-test/src/main/resources/identity/v3/user_add_ToGroup_fail.json
@@ -1,7 +1,7 @@
{
-"error": {
- "message": "Could not find group: invalidGroup",
- "code": 404,
- "title": "Not Found"
- }
+ "error": {
+ "message": "Could not find group: invalidGroup",
+ "code": 404,
+ "title": "Not Found"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/user_delete_fail.json b/core-test/src/main/resources/identity/v3/user_delete_fail.json
index ca163f8eb..5131b8699 100644
--- a/core-test/src/main/resources/identity/v3/user_delete_fail.json
+++ b/core-test/src/main/resources/identity/v3/user_delete_fail.json
@@ -1,7 +1,7 @@
{
- "error": {
- "message": "Could not find user: invalidUser",
- "code": 404,
- "title": "Not Found"
- }
+ "error": {
+ "message": "Could not find user: invalidUser",
+ "code": 404,
+ "title": "Not Found"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/user_get_byId.json b/core-test/src/main/resources/identity/v3/user_get_byId.json
index 84111d2e5..4e8a055b1 100644
--- a/core-test/src/main/resources/identity/v3/user_get_byId.json
+++ b/core-test/src/main/resources/identity/v3/user_get_byId.json
@@ -1,13 +1,13 @@
{
- "user": {
- "domain_id": "default",
- "name": "admin",
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users/aa9f25defa6d4cafb48466df83106065"
- },
- "id": "aa9f25defa6d4cafb48466df83106065",
- "enabled": true,
- "email": null,
- "default_project_id": "123ac695d4db400a9001b91bb3b8aa46"
- }
+ "user": {
+ "domain_id": "default",
+ "name": "admin",
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users/aa9f25defa6d4cafb48466df83106065"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "enabled": true,
+ "email": null,
+ "default_project_id": "123ac695d4db400a9001b91bb3b8aa46"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/user_get_byName.json b/core-test/src/main/resources/identity/v3/user_get_byName.json
index f33d58d5d..229a242d0 100644
--- a/core-test/src/main/resources/identity/v3/user_get_byName.json
+++ b/core-test/src/main/resources/identity/v3/user_get_byName.json
@@ -1,28 +1,31 @@
{
- "users": [{
- "domain_id": "default",
- "name": "admin",
- "links": {
- "self": "https://identity:35357/v3/users/aa9f25defa6d4cafb48466df83106065"
- },
- "id": "aa9f25defa6d4cafb48466df83106065",
- "enabled": true,
- "email": "admin@example.com",
- "default_project_id": "123ac695d4db400a9001b91bb3b8aa46"
- }, {
- "domain_id": "anotherDomain",
- "name": "admin",
- "links": {
- "self": "https://identity:35357/v3/users/fba5560a39594863a284cbd759380185"
- },
- "id": "fba5560a39594863a284cbd759380185",
- "enabled": true,
- "email": "admin@AnotherDomain.com",
- "default_project_id": "9e6aa6c98ce540898a6cea3c71336b32"
- }],
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users?name=admin",
- "previous": null,
- "next": null
+ "users": [
+ {
+ "domain_id": "default",
+ "name": "admin",
+ "links": {
+ "self": "https://identity:35357/v3/users/aa9f25defa6d4cafb48466df83106065"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "enabled": true,
+ "email": "admin@example.com",
+ "default_project_id": "123ac695d4db400a9001b91bb3b8aa46"
+ },
+ {
+ "domain_id": "anotherDomain",
+ "name": "admin",
+ "links": {
+ "self": "https://identity:35357/v3/users/fba5560a39594863a284cbd759380185"
+ },
+ "id": "fba5560a39594863a284cbd759380185",
+ "enabled": true,
+ "email": "admin@AnotherDomain.com",
+ "default_project_id": "9e6aa6c98ce540898a6cea3c71336b32"
}
+ ],
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users?name=admin",
+ "previous": null,
+ "next": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId.json b/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId.json
index 24c58a5c8..44e8994c7 100644
--- a/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId.json
+++ b/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId.json
@@ -1,18 +1,20 @@
{
- "users": [{
- "domain_id": "default",
- "name": "admin",
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users/aa9f25defa6d4cafb48466df83106065"
- },
- "id": "aa9f25defa6d4cafb48466df83106065",
- "enabled": true,
- "email": null,
- "default_project_id": "123ac695d4db400a9001b91bb3b8aa46"
- }],
- "links": {
- "self": "http://devstack.openstack.stack:5000/v3/users?domain_id=default&name=admin",
- "previous": null,
- "next": null
+ "users": [
+ {
+ "domain_id": "default",
+ "name": "admin",
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users/aa9f25defa6d4cafb48466df83106065"
+ },
+ "id": "aa9f25defa6d4cafb48466df83106065",
+ "enabled": true,
+ "email": null,
+ "default_project_id": "123ac695d4db400a9001b91bb3b8aa46"
}
+ ],
+ "links": {
+ "self": "http://devstack.openstack.stack:5000/v3/users?domain_id=default&name=admin",
+ "previous": null,
+ "next": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId_not_exist.json b/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId_not_exist.json
index 6f4f0f703..cdec42cd9 100644
--- a/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId_not_exist.json
+++ b/core-test/src/main/resources/identity/v3/user_get_byName_byDomainId_not_exist.json
@@ -1,8 +1,8 @@
{
- "users": [],
- "links": {
- "self": "http://127.0.0.1:5000/v3/users",
- "previous": null,
- "next": null
- }
+ "users": [],
+ "links": {
+ "self": "http://127.0.0.1:5000/v3/users",
+ "previous": null,
+ "next": null
+ }
}
diff --git a/core-test/src/main/resources/identity/v3/users.json b/core-test/src/main/resources/identity/v3/users.json
index f09204a8b..6aca60a0c 100644
--- a/core-test/src/main/resources/identity/v3/users.json
+++ b/core-test/src/main/resources/identity/v3/users.json
@@ -1,69 +1,69 @@
{
-"users": [
- {
- "name": "glance",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/07cfb841cddd46819e3dcd5df238ae04"
- },
- "domain_id": "default",
- "enabled": true,
- "email": null,
- "id": "07cfb841cddd46819e3dcd5df238ae04"
- },
- {
- "name": "demo",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/11ba3db90590446fb6d7e0efe6c1f46a"
- },
- "domain_id": "default",
- "enabled": true,
- "email": "demo@example.com",
- "id": "11ba3db90590446fb6d7e0efe6c1f46a"
- },
- {
- "name": "cinder",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/1523e8606bd1400cae36a40e0f3f817e"
- },
- "domain_id": "default",
- "enabled": true,
- "email": null,
- "id": "1523e8606bd1400cae36a40e0f3f817e"
- },
- {
- "name": "nova",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/7afec08993c24bb09df141e513738030"
- },
- "domain_id": "default",
- "enabled": true,
- "email": null,
- "id": "7afec08993c24bb09df141e513738030"
- },
- {
- "name": "u-foobar",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/938bd5585fd145efaadb4a7e588078c1"
- },
- "domain_id": "default",
- "enabled": true,
- "email": "foobar@example.com",
- "id": "938bd5585fd145efaadb4a7e588078c1"
- },
- {
- "name": "admin",
- "links": {
- "self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"
- },
- "domain_id": "default",
- "enabled": true,
- "email": null,
- "id": "aa9f25defa6d4cafb48466df83106065"
- }
- ],
-"links": {
- "self": "http://devstack.openstack.stack:35357/v3/users",
- "previous": null,
- "next": null
- }
+ "users": [
+ {
+ "name": "glance",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/07cfb841cddd46819e3dcd5df238ae04"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": null,
+ "id": "07cfb841cddd46819e3dcd5df238ae04"
+ },
+ {
+ "name": "demo",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/11ba3db90590446fb6d7e0efe6c1f46a"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": "demo@example.com",
+ "id": "11ba3db90590446fb6d7e0efe6c1f46a"
+ },
+ {
+ "name": "cinder",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/1523e8606bd1400cae36a40e0f3f817e"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": null,
+ "id": "1523e8606bd1400cae36a40e0f3f817e"
+ },
+ {
+ "name": "nova",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/7afec08993c24bb09df141e513738030"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": null,
+ "id": "7afec08993c24bb09df141e513738030"
+ },
+ {
+ "name": "u-foobar",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/938bd5585fd145efaadb4a7e588078c1"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": "foobar@example.com",
+ "id": "938bd5585fd145efaadb4a7e588078c1"
+ },
+ {
+ "name": "admin",
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"
+ },
+ "domain_id": "default",
+ "enabled": true,
+ "email": null,
+ "id": "aa9f25defa6d4cafb48466df83106065"
+ }
+ ],
+ "links": {
+ "self": "http://devstack.openstack.stack:35357/v3/users",
+ "previous": null,
+ "next": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/image/v2/image-with-locations.json b/core-test/src/main/resources/image/v2/image-with-locations.json
index 3ab605857..0787f8466 100644
--- a/core-test/src/main/resources/image/v2/image-with-locations.json
+++ b/core-test/src/main/resources/image/v2/image-with-locations.json
@@ -14,13 +14,16 @@
"status": "active",
"tags": [],
"visibility": "public",
- "locations": [{
- "url": "rbd://xxxx/images/xxxx/snap",
- "metadata": {}
- }, {
- "url": "rbd://yyyy/images/yyyy/snap",
- "metadata": {}
- }],
+ "locations": [
+ {
+ "url": "rbd://xxxx/images/xxxx/snap",
+ "metadata": {}
+ },
+ {
+ "url": "rbd://yyyy/images/yyyy/snap",
+ "metadata": {}
+ }
+ ],
"min_disk": 0,
"virtual_size": null,
"name": "some-image",
diff --git a/core-test/src/main/resources/image/v2/images.json b/core-test/src/main/resources/image/v2/images.json
index 20fd6a045..99d594c71 100644
--- a/core-test/src/main/resources/image/v2/images.json
+++ b/core-test/src/main/resources/image/v2/images.json
@@ -27,7 +27,6 @@
"status": "active",
"name": "CentOS-7-x86_64-GenericCloud-1604",
"tags": [
-
],
"container_format": "bare",
"created_at": "2016-08-09T21:31:49Z",
diff --git a/core-test/src/main/resources/magnum/baymodel_create_resp.json b/core-test/src/main/resources/magnum/baymodel_create_resp.json
index bdf0fd896..45e3eff4e 100644
--- a/core-test/src/main/resources/magnum/baymodel_create_resp.json
+++ b/core-test/src/main/resources/magnum/baymodel_create_resp.json
@@ -1,44 +1,43 @@
-{
- "insecure_registry":null,
- "links":[
- {
- "href":"http://127.0.0.1:9511/v1/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
- "rel":"self"
- },
- {
- "href":"http://1127.0.0.1:9511/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
- "rel":"bookmark"
- }
- ],
- "http_proxy":"http://10.164.177.169:8080",
- "updated_at":null,
- "floating_ip_enabled":true,
- "fixed_subnet":null,
- "master_flavor_id":null,
- "uuid":"085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
- "no_proxy":"10.0.0.0/8,172.0.0.0/8,192.0.0.0/8,localhost",
- "https_proxy":"http://10.164.177.169:8080",
- "tls_disabled":false,
- "keypair_id":"kp",
- "public":false,
- "labels":{
-
- },
- "docker_volume_size":3,
- "server_type":"vm",
- "external_network_id":"public",
- "cluster_distro":"fedora-atomic",
- "image_id":"fedora-atomic-latest",
- "volume_driver":"cinder",
- "registry_enabled":false,
- "docker_storage_driver":"devicemapper",
- "apiserver_port":null,
- "name":"k8s-bm2",
- "created_at":"2016-08-29T02:08:08+00:00",
- "network_driver":"flannel",
- "fixed_network":null,
- "coe":"kubernetes",
- "flavor_id":"m1.small",
- "master_lb_enabled":true,
- "dns_nameserver":"8.8.8.8"
+{
+ "insecure_registry": null,
+ "links": [
+ {
+ "href": "http://127.0.0.1:9511/v1/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
+ "rel": "self"
+ },
+ {
+ "href": "http://1127.0.0.1:9511/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
+ "rel": "bookmark"
+ }
+ ],
+ "http_proxy": "http://10.164.177.169:8080",
+ "updated_at": null,
+ "floating_ip_enabled": true,
+ "fixed_subnet": null,
+ "master_flavor_id": null,
+ "uuid": "085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
+ "no_proxy": "10.0.0.0/8,172.0.0.0/8,192.0.0.0/8,localhost",
+ "https_proxy": "http://10.164.177.169:8080",
+ "tls_disabled": false,
+ "keypair_id": "kp",
+ "public": false,
+ "labels": {
+ },
+ "docker_volume_size": 3,
+ "server_type": "vm",
+ "external_network_id": "public",
+ "cluster_distro": "fedora-atomic",
+ "image_id": "fedora-atomic-latest",
+ "volume_driver": "cinder",
+ "registry_enabled": false,
+ "docker_storage_driver": "devicemapper",
+ "apiserver_port": null,
+ "name": "k8s-bm2",
+ "created_at": "2016-08-29T02:08:08+00:00",
+ "network_driver": "flannel",
+ "fixed_network": null,
+ "coe": "kubernetes",
+ "flavor_id": "m1.small",
+ "master_lb_enabled": true,
+ "dns_nameserver": "8.8.8.8"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/magnum/baymodel_get_all_resp.json b/core-test/src/main/resources/magnum/baymodel_get_all_resp.json
index 5e6edb0e3..ef41af9af 100644
--- a/core-test/src/main/resources/magnum/baymodel_get_all_resp.json
+++ b/core-test/src/main/resources/magnum/baymodel_get_all_resp.json
@@ -1,53 +1,52 @@
{
- "links": {
- "self": "http://127.0.0.1:9511/v1/baymodels",
- "previous": null,
- "next": null
- },
- "baymodels": [
+ "links": {
+ "self": "http://127.0.0.1:9511/v1/baymodels",
+ "previous": null,
+ "next": null
+ },
+ "baymodels": [
+ {
+ "insecure_registry": null,
+ "links": [
{
- "insecure_registry": null,
- "links": [
- {
- "href": "http://10.164.180.104:9511/v1/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
- "rel": "self"
- },
- {
- "href": "http://10.164.180.104:9511/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
- "rel": "bookmark"
- }
- ],
- "http_proxy": "http://10.164.177.169:8080",
- "updated_at": null,
- "floating_ip_enabled": true,
- "fixed_subnet": null,
- "master_flavor_id": null,
- "uuid": "085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
- "no_proxy": "10.0.0.0/8,172.0.0.0/8,192.0.0.0/8,localhost",
- "https_proxy": "http://10.164.177.169:8080",
- "tls_disabled": false,
- "keypair_id": "kp",
- "public": false,
- "labels": {
-
- },
- "docker_volume_size": 3,
- "server_type": "vm",
- "external_network_id": "public",
- "cluster_distro": "fedora-atomic",
- "image_id": "fedora-atomic-latest",
- "volume_driver": "cinder",
- "registry_enabled": false,
- "docker_storage_driver": "devicemapper",
- "apiserver_port": null,
- "name": "k8s-bm2",
- "created_at": "2016-08-29T02:08:08+00:00",
- "network_driver": "flannel",
- "fixed_network": null,
- "coe": "kubernetes",
- "flavor_id": "m1.small",
- "master_lb_enabled": true,
- "dns_nameserver": "8.8.8.8"
+ "href": "http://10.164.180.104:9511/v1/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
+ "rel": "self"
+ },
+ {
+ "href": "http://10.164.180.104:9511/baymodels/085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
+ "rel": "bookmark"
}
- ]
+ ],
+ "http_proxy": "http://10.164.177.169:8080",
+ "updated_at": null,
+ "floating_ip_enabled": true,
+ "fixed_subnet": null,
+ "master_flavor_id": null,
+ "uuid": "085e1c4d-4f68-4bfd-8462-74b9e14e4f39",
+ "no_proxy": "10.0.0.0/8,172.0.0.0/8,192.0.0.0/8,localhost",
+ "https_proxy": "http://10.164.177.169:8080",
+ "tls_disabled": false,
+ "keypair_id": "kp",
+ "public": false,
+ "labels": {
+ },
+ "docker_volume_size": 3,
+ "server_type": "vm",
+ "external_network_id": "public",
+ "cluster_distro": "fedora-atomic",
+ "image_id": "fedora-atomic-latest",
+ "volume_driver": "cinder",
+ "registry_enabled": false,
+ "docker_storage_driver": "devicemapper",
+ "apiserver_port": null,
+ "name": "k8s-bm2",
+ "created_at": "2016-08-29T02:08:08+00:00",
+ "network_driver": "flannel",
+ "fixed_network": null,
+ "coe": "kubernetes",
+ "flavor_id": "m1.small",
+ "master_lb_enabled": true,
+ "dns_nameserver": "8.8.8.8"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/magnum/mservices.json b/core-test/src/main/resources/magnum/mservices.json
index 9ca7e5922..abc4f582c 100644
--- a/core-test/src/main/resources/magnum/mservices.json
+++ b/core-test/src/main/resources/magnum/mservices.json
@@ -4,16 +4,16 @@
"previous": null,
"next": null
},
- "mservices": [
- {
- "id":"1",
- "binary":"magnum-conductor",
- "state":"up",
- "host":"harsh-OptiPlex-7040",
- "created_at":"2017-02-03T07:03:27+00:00",
- "report_count":1903,
- "updated_at":"2017-02-07T05:41:24+00:00",
- "disabled_reason":null
- }
+ "mservices": [
+ {
+ "id": "1",
+ "binary": "magnum-conductor",
+ "state": "up",
+ "host": "harsh-OptiPlex-7040",
+ "created_at": "2017-02-03T07:03:27+00:00",
+ "report_count": 1903,
+ "updated_at": "2017-02-07T05:41:24+00:00",
+ "disabled_reason": null
+ }
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/metering/alarms.json b/core-test/src/main/resources/metering/alarms.json
index 7c2ab0da9..619317889 100644
--- a/core-test/src/main/resources/metering/alarms.json
+++ b/core-test/src/main/resources/metering/alarms.json
@@ -1,72 +1,82 @@
-[{
- "alarm_actions" : ["http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_out?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=800c42eb3f4a49218f45688547c77266&SignatureVersion=2&Signature=Hgbvixq0VkVKJIKEyuIIEx7a68ut2eCl0EpxoaahUVU%3D"],
- "ok_actions" : [],
- "name" : "sdfasdf-scale_out_WebAS-Sig-l4ue3wfz6otx",
- "timestamp" : "2015-01-20T15:06:06.625000",
- "enabled" : true,
- "state" : "insufficient data",
- "state_timestamp" : "2015-01-20T15:06:06.625000",
- "threshold_rule" : {
- "meter_name" : "cpu",
- "evaluation_periods" : 2,
- "period" : 60,
- "statistic" : "avg",
- "threshold" : 500.0,
- "query" : [{
- "field" : "metadata.metering.metadata.stack_id",
- "value" : "4bb97267-0657-4834-bbe2-eb0a5f40480d",
- "op" : "eq"
- }, {
- "field" : "metadata.metering.metadata.resource_name",
- "value" : "WebAS-OeM",
- "op" : "eq"
- }
- ],
- "comparison_operator" : "gt",
- "exclude_outliers" : false
- },
- "alarm_id" : "7de0effc-bf54-4ffd-bb63-dec286d4f17f",
- "time_constraints" : [],
- "insufficient_data_actions" : [],
- "repeat_actions" : true,
- "user_id" : "de2fd0ebac804ef8970e69ae5a4b4a16",
- "project_id" : "3c8edb30c13d471d96c9881dee761134",
- "type" : "threshold",
- "description" : "scale out"
- }, {
- "alarm_actions" : ["http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_in?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=aca03ce06e4e4aec97aeea345b817249&SignatureVersion=2&Signature=H743x%2FSH8mLzSW%2BHmQLedflGIv69R6EFsa9VIduT6m8%3D"],
- "ok_actions" : [],
- "name" : "sdfasdf-scale_in_WebAS-Sig-ob3jxa7tl6ch",
- "timestamp" : "2015-01-20T15:06:06.724000",
- "enabled" : true,
- "state" : "insufficient data",
- "state_timestamp" : "2015-01-20T15:06:06.724000",
- "threshold_rule" : {
- "meter_name" : "cpu",
- "evaluation_periods" : 2,
- "period" : 60,
- "statistic" : "avg",
- "threshold" : 100.0,
- "query" : [{
- "field" : "metadata.metering.metadata.stack_id",
- "value" : "4bb97267-0657-4834-bbe2-eb0a5f40480d",
- "op" : "eq"
- }, {
- "field" : "metadata.metering.metadata.resource_name",
- "value" : "WebAS-OeM",
- "op" : "eq"
- }
- ],
- "comparison_operator" : "lt",
- "exclude_outliers" : false
- },
- "alarm_id" : "ca1ac89f-5dfe-4209-b92f-f9ca4f4eb85b",
- "time_constraints" : [],
- "insufficient_data_actions" : [],
- "repeat_actions" : true,
- "user_id" : "de2fd0ebac804ef8970e69ae5a4b4a16",
- "project_id" : "3c8edb30c13d471d96c9881dee761134",
- "type" : "threshold",
- "description" : "scale in"
- }
+[
+ {
+ "alarm_actions": [
+ "http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_out?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=800c42eb3f4a49218f45688547c77266&SignatureVersion=2&Signature=Hgbvixq0VkVKJIKEyuIIEx7a68ut2eCl0EpxoaahUVU%3D"
+ ],
+ "ok_actions": [],
+ "name": "sdfasdf-scale_out_WebAS-Sig-l4ue3wfz6otx",
+ "timestamp": "2015-01-20T15:06:06.625000",
+ "enabled": true,
+ "state": "insufficient data",
+ "state_timestamp": "2015-01-20T15:06:06.625000",
+ "threshold_rule": {
+ "meter_name": "cpu",
+ "evaluation_periods": 2,
+ "period": 60,
+ "statistic": "avg",
+ "threshold": 500.0,
+ "query": [
+ {
+ "field": "metadata.metering.metadata.stack_id",
+ "value": "4bb97267-0657-4834-bbe2-eb0a5f40480d",
+ "op": "eq"
+ },
+ {
+ "field": "metadata.metering.metadata.resource_name",
+ "value": "WebAS-OeM",
+ "op": "eq"
+ }
+ ],
+ "comparison_operator": "gt",
+ "exclude_outliers": false
+ },
+ "alarm_id": "7de0effc-bf54-4ffd-bb63-dec286d4f17f",
+ "time_constraints": [],
+ "insufficient_data_actions": [],
+ "repeat_actions": true,
+ "user_id": "de2fd0ebac804ef8970e69ae5a4b4a16",
+ "project_id": "3c8edb30c13d471d96c9881dee761134",
+ "type": "threshold",
+ "description": "scale out"
+ },
+ {
+ "alarm_actions": [
+ "http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_in?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=aca03ce06e4e4aec97aeea345b817249&SignatureVersion=2&Signature=H743x%2FSH8mLzSW%2BHmQLedflGIv69R6EFsa9VIduT6m8%3D"
+ ],
+ "ok_actions": [],
+ "name": "sdfasdf-scale_in_WebAS-Sig-ob3jxa7tl6ch",
+ "timestamp": "2015-01-20T15:06:06.724000",
+ "enabled": true,
+ "state": "insufficient data",
+ "state_timestamp": "2015-01-20T15:06:06.724000",
+ "threshold_rule": {
+ "meter_name": "cpu",
+ "evaluation_periods": 2,
+ "period": 60,
+ "statistic": "avg",
+ "threshold": 100.0,
+ "query": [
+ {
+ "field": "metadata.metering.metadata.stack_id",
+ "value": "4bb97267-0657-4834-bbe2-eb0a5f40480d",
+ "op": "eq"
+ },
+ {
+ "field": "metadata.metering.metadata.resource_name",
+ "value": "WebAS-OeM",
+ "op": "eq"
+ }
+ ],
+ "comparison_operator": "lt",
+ "exclude_outliers": false
+ },
+ "alarm_id": "ca1ac89f-5dfe-4209-b92f-f9ca4f4eb85b",
+ "time_constraints": [],
+ "insufficient_data_actions": [],
+ "repeat_actions": true,
+ "user_id": "de2fd0ebac804ef8970e69ae5a4b4a16",
+ "project_id": "3c8edb30c13d471d96c9881dee761134",
+ "type": "threshold",
+ "description": "scale in"
+ }
]
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/deployments.json b/core-test/src/main/resources/murano/v1/deployments.json
index 19fb754fd..2f3c4247b 100644
--- a/core-test/src/main/resources/murano/v1/deployments.json
+++ b/core-test/src/main/resources/murano/v1/deployments.json
@@ -1,75 +1,75 @@
{
- "deployments" : [
+ "deployments": [
{
- "state" : "completed_w_errors",
- "environment_id" : "3e57cee8b55448f6af0752d31d7e27d6",
- "started" : "2016-10-03T10:59:16",
- "id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "created" : "2016-10-03T10:59:16",
- "description" : {
- "defaultNetworks" : {
- "flat" : null,
- "environment" : {
- "?" : {
- "id" : "382b25faadc34d879f7d8ff00ff5f5a7",
- "type" : "io.murano.resources.NeutronNetwork"
+ "state": "completed_w_errors",
+ "environment_id": "3e57cee8b55448f6af0752d31d7e27d6",
+ "started": "2016-10-03T10:59:16",
+ "id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "created": "2016-10-03T10:59:16",
+ "description": {
+ "defaultNetworks": {
+ "flat": null,
+ "environment": {
+ "?": {
+ "id": "382b25faadc34d879f7d8ff00ff5f5a7",
+ "type": "io.murano.resources.NeutronNetwork"
},
- "name" : "test-network"
+ "name": "test-network"
}
},
- "services" : [
+ "services": [
{
- "instance" : {
- "availabilityZone" : "nova",
- "assignFloatingIp" : true,
- "?" : {
- "type" : "io.murano.resources.LinuxMuranoInstance",
- "id" : "3adbc662-e6a8-4914-ba22-edc46ba2b3b4"
+ "instance": {
+ "availabilityZone": "nova",
+ "assignFloatingIp": true,
+ "?": {
+ "type": "io.murano.resources.LinuxMuranoInstance",
+ "id": "3adbc662-e6a8-4914-ba22-edc46ba2b3b4"
},
- "flavor" : "m1.medium",
- "name" : "jpehxitty1jcc1",
- "keyname" : "ssh-key",
- "image" : "1d35715f-cbca-48ec-9397-82a3fed7d253"
+ "flavor": "m1.medium",
+ "name": "jpehxitty1jcc1",
+ "keyname": "ssh-key",
+ "image": "1d35715f-cbca-48ec-9397-82a3fed7d253"
},
- "name" : "Docker Standalone Host",
- "?" : {
- "id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "type" : "com.mirantis.docker.DockerStandaloneHost",
- "_26411a1861294160833743e45d0eaad9" : {
- "name" : "Docker Standalone Host"
+ "name": "Docker Standalone Host",
+ "?": {
+ "id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "type": "com.mirantis.docker.DockerStandaloneHost",
+ "_26411a1861294160833743e45d0eaad9": {
+ "name": "Docker Standalone Host"
}
},
- "dockerRegistry" : ""
+ "dockerRegistry": ""
},
{
- "name" : "DockerHTTPdSite",
- "?" : {
- "type" : "com.example.docker.DockerHTTPdSite",
- "_26411a1861294160833743e45d0eaad9" : {
- "name" : "Docker HTTPd Site"
+ "name": "DockerHTTPdSite",
+ "?": {
+ "type": "com.example.docker.DockerHTTPdSite",
+ "_26411a1861294160833743e45d0eaad9": {
+ "name": "Docker HTTPd Site"
},
- "id" : "7c449c3c-ccdf-45ba-bf3c-496149918df7"
+ "id": "7c449c3c-ccdf-45ba-bf3c-496149918df7"
},
- "siteRepo" : "https://github.com/nmakhotkin/example-web.git",
- "host" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "publish" : true
+ "siteRepo": "https://github.com/nmakhotkin/example-web.git",
+ "host": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "publish": true
}
],
- "name" : "test",
- "?" : {
- "id" : "3e57cee8b55448f6af0752d31d7e27d6",
- "type" : "io.murano.Environment"
+ "name": "test",
+ "?": {
+ "id": "3e57cee8b55448f6af0752d31d7e27d6",
+ "type": "io.murano.Environment"
}
},
- "finished" : "2016-10-03T12:02:16",
- "result" : {
- "result" : {
- "message" : "[murano.common.exceptions.TimeoutException]: The murano-agent did not respond within 3600 seconds",
- "details" : "murano.common.exceptions.TimeoutException: The murano-agent did not respond within 3600 seconds\nTraceback (most recent call last):\n File \"/tmp/murano-packages-cache/io.murano/0.0.0/e5fe46b0-ba10-4f97-aa0e-ca25b18b7e3d/Classes/Environment.yaml\", "
+ "finished": "2016-10-03T12:02:16",
+ "result": {
+ "result": {
+ "message": "[murano.common.exceptions.TimeoutException]: The murano-agent did not respond within 3600 seconds",
+ "details": "murano.common.exceptions.TimeoutException: The murano-agent did not respond within 3600 seconds\nTraceback (most recent call last):\n File \"/tmp/murano-packages-cache/io.murano/0.0.0/e5fe46b0-ba10-4f97-aa0e-ca25b18b7e3d/Classes/Environment.yaml\", "
},
- "isException" : true
+ "isException": true
},
- "updated" : "2016-10-03T12:02:16"
+ "updated": "2016-10-03T12:02:16"
}
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/environment-rename.json b/core-test/src/main/resources/murano/v1/environment-rename.json
index 9110d51aa..b69e61235 100644
--- a/core-test/src/main/resources/murano/v1/environment-rename.json
+++ b/core-test/src/main/resources/murano/v1/environment-rename.json
@@ -1,9 +1,9 @@
{
- "name" : "renamed-test",
- "tenant_id" : "e62d6f1538074da1a56c5e393398c999",
- "updated" : "2016-09-18T15:30:34",
- "id" : "721f76f9a9d64ebcacc76189cb8978a9",
- "version" : 1,
- "created" : "2016-09-18T14:16:34",
- "status" : "ready"
+ "name": "renamed-test",
+ "tenant_id": "e62d6f1538074da1a56c5e393398c999",
+ "updated": "2016-09-18T15:30:34",
+ "id": "721f76f9a9d64ebcacc76189cb8978a9",
+ "version": 1,
+ "created": "2016-09-18T14:16:34",
+ "status": "ready"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/environment.json b/core-test/src/main/resources/murano/v1/environment.json
index 48346a5e9..669b3637a 100644
--- a/core-test/src/main/resources/murano/v1/environment.json
+++ b/core-test/src/main/resources/murano/v1/environment.json
@@ -1,85 +1,95 @@
{
- "name" : "test",
- "tenant_id" : "e62d6f1538074da1a56c5e393398c999",
- "updated" : "2016-09-18T15:30:34",
- "id" : "721f76f9a9d64ebcacc76189cb8978a9",
- "version" : 1,
- "created" : "2016-09-18T14:16:34",
- "status" : "ready",
- "services" : [
- {
- "instance" : {
- "availabilityZone" : "nova",
- "openstackId" : "8204d92c-9a79-4474-9f65-2f54f092948e",
- "name" : "Docker",
- "securityGroupName" : null,
- "image" : "500375f8-e64b-453e-8b46-5d5d0d1d926a",
- "ipAddresses" : [ "10.0.115.3", "172.16.167.175" ],
- "networks" : {
- "useFlatNetwork" : false,
- "primaryNetwork" : null,
- "useEnvironmentNetwork" : true,
- "customNetworks" : [ ]
+ "name": "test",
+ "tenant_id": "e62d6f1538074da1a56c5e393398c999",
+ "updated": "2016-09-18T15:30:34",
+ "id": "721f76f9a9d64ebcacc76189cb8978a9",
+ "version": 1,
+ "created": "2016-09-18T14:16:34",
+ "status": "ready",
+ "services": [
+ {
+ "instance": {
+ "availabilityZone": "nova",
+ "openstackId": "8204d92c-9a79-4474-9f65-2f54f092948e",
+ "name": "Docker",
+ "securityGroupName": null,
+ "image": "500375f8-e64b-453e-8b46-5d5d0d1d926a",
+ "ipAddresses": [
+ "10.0.115.3",
+ "172.16.167.175"
+ ],
+ "networks": {
+ "useFlatNetwork": false,
+ "primaryNetwork": null,
+ "useEnvironmentNetwork": true,
+ "customNetworks": []
},
- "keyname" : "nmakhotkin",
- "sharedIps" : [ ],
- "floatingIpAddress" : "172.16.167.175",
- "flavor" : "m1.medium",
- "assignFloatingIp" : true,
- "?" : {
- "classVersion" : "0.0.0",
- "name" : null,
- "package" : "io.murano",
- "type" : "io.murano.resources.LinuxMuranoInstance",
- "_actions" : { },
- "id" : "c350d3f6-5d58-44e8-97ce-930f112c7f9e"
+ "keyname": "nmakhotkin",
+ "sharedIps": [],
+ "floatingIpAddress": "172.16.167.175",
+ "flavor": "m1.medium",
+ "assignFloatingIp": true,
+ "?": {
+ "classVersion": "0.0.0",
+ "name": null,
+ "package": "io.murano",
+ "type": "io.murano.resources.LinuxMuranoInstance",
+ "_actions": {},
+ "id": "c350d3f6-5d58-44e8-97ce-930f112c7f9e"
}
},
- "name" : "DockerVM",
- "dockerRegistry" : null,
- "containers" : [ "DockerHTTPdSite" ],
- "applicationEndpoints" : [{
- "applicationName" : "DockerHTTPdSite",
- "portScope" : "public",
- "protocol" : "TCP",
- "containerPort" : 80,
- "address" : "172.16.167.175",
- "scope" : "public",
- "port" : 80
- }],
- "?" : {
- "classVersion" : "0.0.0",
- "_26411a1861294160833743e45d0eaad9" : {
- "name" : "Docker VM Service"
+ "name": "DockerVM",
+ "dockerRegistry": null,
+ "containers": [
+ "DockerHTTPdSite"
+ ],
+ "applicationEndpoints": [
+ {
+ "applicationName": "DockerHTTPdSite",
+ "portScope": "public",
+ "protocol": "TCP",
+ "containerPort": 80,
+ "address": "172.16.167.175",
+ "scope": "public",
+ "port": 80
+ }
+ ],
+ "?": {
+ "classVersion": "0.0.0",
+ "_26411a1861294160833743e45d0eaad9": {
+ "name": "Docker VM Service"
},
- "name" : null,
- "package" : "com.mirantis.docker.DockerStandaloneHost",
- "_actions" : { },
- "status" : "pending",
- "type" : "com.mirantis.docker.DockerStandaloneHost",
- "id" : "2614f193-f13e-42b1-af7e-01729bb5af75"
+ "name": null,
+ "package": "com.mirantis.docker.DockerStandaloneHost",
+ "_actions": {},
+ "status": "pending",
+ "type": "com.mirantis.docker.DockerStandaloneHost",
+ "id": "2614f193-f13e-42b1-af7e-01729bb5af75"
}
- }, {
- "siteRepo" : "https://github.com/nmakhotkin/example-web.git",
- "publish" : true,
- "name" : "DockerHTTPdSite",
- "host" : "2614f193-f13e-42b1-af7e-01729bb5af75",
- "applicationEndpoints" : [{
- "portScope" : "public",
- "protocol" : "TCP",
- "port" : 80,
- "address" : "172.16.167.175",
- "scope" : "public",
- "containerPort" : 80
- }],
- "?" : {
- "classVersion" : "0.0.0",
- "_26411a1861294160833743e45d0eaad9" : {
- "name" : "Docker HTTPd Site"
+ },
+ {
+ "siteRepo": "https://github.com/nmakhotkin/example-web.git",
+ "publish": true,
+ "name": "DockerHTTPdSite",
+ "host": "2614f193-f13e-42b1-af7e-01729bb5af75",
+ "applicationEndpoints": [
+ {
+ "portScope": "public",
+ "protocol": "TCP",
+ "port": 80,
+ "address": "172.16.167.175",
+ "scope": "public",
+ "containerPort": 80
+ }
+ ],
+ "?": {
+ "classVersion": "0.0.0",
+ "_26411a1861294160833743e45d0eaad9": {
+ "name": "Docker HTTPd Site"
},
- "name" : null,
- "package" : "com.example.docker.DockerHTTPdSite",
- "_actions" : {
+ "name": null,
+ "package": "com.example.docker.DockerHTTPdSite",
+ "_actions": {
"e8d61b75-df6a-42c6-be2c-5b6aeaa60f5c_getTest": {
"name": "getTest",
"title": "getTest",
@@ -91,9 +101,9 @@
"enabled": true
}
},
- "status" : "pending",
- "type" : "com.example.docker.DockerHTTPdSite",
- "id" : "e8d61b75-df6a-42c6-be2c-5b6aeaa60f5c"
+ "status": "pending",
+ "type": "com.example.docker.DockerHTTPdSite",
+ "id": "e8d61b75-df6a-42c6-be2c-5b6aeaa60f5c"
}
}
]
diff --git a/core-test/src/main/resources/murano/v1/environments.json b/core-test/src/main/resources/murano/v1/environments.json
index 6ec2fb513..5a41ad01b 100644
--- a/core-test/src/main/resources/murano/v1/environments.json
+++ b/core-test/src/main/resources/murano/v1/environments.json
@@ -1,22 +1,22 @@
{
- "environments" : [
+ "environments": [
{
- "version" : 0,
- "name" : "some_env",
- "id" : "e1c1b5a0b3284f188c5d91ab18bf0451",
- "tenant_id" : "e62d6f1538074da1a56c5e393398c999",
- "status" : "ready",
- "created" : "2016-09-27T11:35:19",
- "updated" : "2016-09-27T11:35:19"
+ "version": 0,
+ "name": "some_env",
+ "id": "e1c1b5a0b3284f188c5d91ab18bf0451",
+ "tenant_id": "e62d6f1538074da1a56c5e393398c999",
+ "status": "ready",
+ "created": "2016-09-27T11:35:19",
+ "updated": "2016-09-27T11:35:19"
},
{
- "updated" : "2016-09-18T15:30:34",
- "created" : "2016-09-18T14:16:34",
- "status" : "deploy failure",
- "id" : "721f76f9a9d64ebcacc76189cb8978a9",
- "tenant_id" : "e62d6f1538074da1a56c5e393398c999",
- "version" : 1,
- "name" : "test"
+ "updated": "2016-09-18T15:30:34",
+ "created": "2016-09-18T14:16:34",
+ "status": "deploy failure",
+ "id": "721f76f9a9d64ebcacc76189cb8978a9",
+ "tenant_id": "e62d6f1538074da1a56c5e393398c999",
+ "version": 1,
+ "name": "test"
}
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/filtered_reports.json b/core-test/src/main/resources/murano/v1/filtered_reports.json
index 47db393eb..d49d33d51 100644
--- a/core-test/src/main/resources/murano/v1/filtered_reports.json
+++ b/core-test/src/main/resources/murano/v1/filtered_reports.json
@@ -1,37 +1,37 @@
{
- "reports" : [
+ "reports": [
{
- "created" : "2016-10-03T10:59:19",
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "entity" : null,
- "entity_id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "text" : "Create VM for Docker Server",
- "updated" : "2016-10-03T10:59:19",
- "level" : "info",
- "details" : null,
- "id" : "ad4b8072a06f46a8889f3844eb2a5854"
+ "created": "2016-10-03T10:59:19",
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "entity": null,
+ "entity_id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "text": "Create VM for Docker Server",
+ "updated": "2016-10-03T10:59:19",
+ "level": "info",
+ "details": null,
+ "id": "ad4b8072a06f46a8889f3844eb2a5854"
},
{
- "level" : "info",
- "id" : "bcaae839106341cca9c09b336c3b225c",
- "details" : null,
- "updated" : "2016-10-03T11:02:15",
- "entity_id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "entity" : null,
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "text" : "Docker Server is up and running",
- "created" : "2016-10-03T11:02:15"
+ "level": "info",
+ "id": "bcaae839106341cca9c09b336c3b225c",
+ "details": null,
+ "updated": "2016-10-03T11:02:15",
+ "entity_id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "entity": null,
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "text": "Docker Server is up and running",
+ "created": "2016-10-03T11:02:15"
},
{
- "updated" : "2016-10-03T11:02:16",
- "details" : null,
- "id" : "e5558d941efb4371a8a316c29cb77cf0",
- "level" : "info",
- "created" : "2016-10-03T11:02:16",
- "text" : "Pulling app image stanlagun/httpdgitsite",
- "entity" : null,
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "entity_id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90"
+ "updated": "2016-10-03T11:02:16",
+ "details": null,
+ "id": "e5558d941efb4371a8a316c29cb77cf0",
+ "level": "info",
+ "created": "2016-10-03T11:02:16",
+ "text": "Pulling app image stanlagun/httpdgitsite",
+ "entity": null,
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "entity_id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90"
}
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/reports.json b/core-test/src/main/resources/murano/v1/reports.json
index baf3a6ad7..15cfa9a1b 100644
--- a/core-test/src/main/resources/murano/v1/reports.json
+++ b/core-test/src/main/resources/murano/v1/reports.json
@@ -1,92 +1,92 @@
{
- "reports" : [
+ "reports": [
{
- "level" : "info",
- "updated" : "2016-10-03T10:59:15",
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "details" : null,
- "created" : "2016-10-03T10:59:15",
- "text" : "Action deploy is scheduled",
- "entity_id" : null,
- "id" : "62ab8549892641ad9c7a2dc67d4ae19e",
- "entity" : null
+ "level": "info",
+ "updated": "2016-10-03T10:59:15",
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "details": null,
+ "created": "2016-10-03T10:59:15",
+ "text": "Action deploy is scheduled",
+ "entity_id": null,
+ "id": "62ab8549892641ad9c7a2dc67d4ae19e",
+ "entity": null
},
{
- "entity" : null,
- "entity_id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "id" : "ad4b8072a06f46a8889f3844eb2a5854",
- "text" : "Create VM for Docker Server",
- "created" : "2016-10-03T10:59:19",
- "details" : null,
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "level" : "info",
- "updated" : "2016-10-03T10:59:19"
+ "entity": null,
+ "entity_id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "id": "ad4b8072a06f46a8889f3844eb2a5854",
+ "text": "Create VM for Docker Server",
+ "created": "2016-10-03T10:59:19",
+ "details": null,
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "level": "info",
+ "updated": "2016-10-03T10:59:19"
},
{
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "level" : "info",
- "updated" : "2016-10-03T11:02:15",
- "details" : null,
- "created" : "2016-10-03T11:02:15",
- "text" : "Docker Server is up and running",
- "id" : "bcaae839106341cca9c09b336c3b225c",
- "entity_id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "entity" : null
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "level": "info",
+ "updated": "2016-10-03T11:02:15",
+ "details": null,
+ "created": "2016-10-03T11:02:15",
+ "text": "Docker Server is up and running",
+ "id": "bcaae839106341cca9c09b336c3b225c",
+ "entity_id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "entity": null
},
{
- "entity" : null,
- "text" : "Installing HTTPd and site from https://github.com/nmakhotkin/example-web.git",
- "id" : "79b9e64e0b1f4e42b27acb7a147ac43b",
- "entity_id" : "7c449c3c-ccdf-45ba-bf3c-496149918df7",
- "level" : "info",
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "updated" : "2016-10-03T11:02:16",
- "details" : null,
- "created" : "2016-10-03T11:02:16"
+ "entity": null,
+ "text": "Installing HTTPd and site from https://github.com/nmakhotkin/example-web.git",
+ "id": "79b9e64e0b1f4e42b27acb7a147ac43b",
+ "entity_id": "7c449c3c-ccdf-45ba-bf3c-496149918df7",
+ "level": "info",
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "updated": "2016-10-03T11:02:16",
+ "details": null,
+ "created": "2016-10-03T11:02:16"
},
{
- "entity" : null,
- "updated" : "2016-10-03T11:02:16",
- "level" : "info",
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "details" : null,
- "created" : "2016-10-03T11:02:16",
- "text" : "Pulling app image stanlagun/httpdgitsite",
- "entity_id" : "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
- "id" : "e5558d941efb4371a8a316c29cb77cf0"
+ "entity": null,
+ "updated": "2016-10-03T11:02:16",
+ "level": "info",
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "details": null,
+ "created": "2016-10-03T11:02:16",
+ "text": "Pulling app image stanlagun/httpdgitsite",
+ "entity_id": "5c2a7dae-097d-4a1c-85cb-e7db2ed62d90",
+ "id": "e5558d941efb4371a8a316c29cb77cf0"
},
{
- "entity_id" : "7c449c3c-ccdf-45ba-bf3c-496149918df7",
- "id" : "c6118ba64013414fab387f627506c711",
- "text" : "Error: The murano-agent did not respond within 3600 seconds",
- "created" : "2016-10-03T12:02:16",
- "details" : null,
- "level" : "error",
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "updated" : "2016-10-03T12:02:16",
- "entity" : null
+ "entity_id": "7c449c3c-ccdf-45ba-bf3c-496149918df7",
+ "id": "c6118ba64013414fab387f627506c711",
+ "text": "Error: The murano-agent did not respond within 3600 seconds",
+ "created": "2016-10-03T12:02:16",
+ "details": null,
+ "level": "error",
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "updated": "2016-10-03T12:02:16",
+ "entity": null
},
{
- "text" : "[murano.common.exceptions.TimeoutException]: The murano-agent did not respond within 3600 seconds",
- "id" : "9a794a79c1ea43bd8adbafeae430de32",
- "entity_id" : "3e57cee8b55448f6af0752d31d7e27d6",
- "level" : "error",
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "updated" : "2016-10-03T12:02:16",
- "created" : "2016-10-03T12:02:16",
- "details" : null,
- "entity" : null
+ "text": "[murano.common.exceptions.TimeoutException]: The murano-agent did not respond within 3600 seconds",
+ "id": "9a794a79c1ea43bd8adbafeae430de32",
+ "entity_id": "3e57cee8b55448f6af0752d31d7e27d6",
+ "level": "error",
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "updated": "2016-10-03T12:02:16",
+ "created": "2016-10-03T12:02:16",
+ "details": null,
+ "entity": null
},
{
- "entity" : null,
- "created" : "2016-10-03T12:02:16",
- "details" : null,
- "task_id" : "ccfd5e951c70428c852bee3b2a9a132e",
- "level" : "info",
- "updated" : "2016-10-03T12:02:16",
- "entity_id" : null,
- "id" : "b49accc24f5944e3a2cf0f620d48fe85",
- "text" : "Deployment finished with errors"
+ "entity": null,
+ "created": "2016-10-03T12:02:16",
+ "details": null,
+ "task_id": "ccfd5e951c70428c852bee3b2a9a132e",
+ "level": "info",
+ "updated": "2016-10-03T12:02:16",
+ "entity_id": null,
+ "id": "b49accc24f5944e3a2cf0f620d48fe85",
+ "text": "Deployment finished with errors"
}
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/service.json b/core-test/src/main/resources/murano/v1/service.json
index 5610eba92..4a24bd053 100644
--- a/core-test/src/main/resources/murano/v1/service.json
+++ b/core-test/src/main/resources/murano/v1/service.json
@@ -1,40 +1,45 @@
{
- "instance" : {
- "availabilityZone" : "nova",
- "openstackId" : "8204d92c-9a79-4474-9f65-2f54f092948e",
- "name" : "Docker",
- "securityGroupName" : null,
- "image" : "500375f8-e64b-453e-8b46-5d5d0d1d926a",
- "ipAddresses" : [ "10.0.115.3", "172.16.167.175" ],
- "networks" : {
- "useFlatNetwork" : false,
- "primaryNetwork" : null,
- "useEnvironmentNetwork" : true,
- "customNetworks" : []
+ "instance": {
+ "availabilityZone": "nova",
+ "openstackId": "8204d92c-9a79-4474-9f65-2f54f092948e",
+ "name": "Docker",
+ "securityGroupName": null,
+ "image": "500375f8-e64b-453e-8b46-5d5d0d1d926a",
+ "ipAddresses": [
+ "10.0.115.3",
+ "172.16.167.175"
+ ],
+ "networks": {
+ "useFlatNetwork": false,
+ "primaryNetwork": null,
+ "useEnvironmentNetwork": true,
+ "customNetworks": []
},
- "keyname" : "nmakhotkin",
- "sharedIps" : [],
- "floatingIpAddress" : "172.16.167.175",
- "flavor" : "m1.medium",
- "assignFloatingIp" : true,
- "?" : {
- "classVersion" : "0.0.0",
- "name" : null,
- "package" : "io.murano",
- "type" : "io.murano.resources.LinuxMuranoInstance",
- "_actions" : {},
- "id" : "c350d3f6-5d58-44e8-97ce-930f112c7f9e"
+ "keyname": "nmakhotkin",
+ "sharedIps": [],
+ "floatingIpAddress": "172.16.167.175",
+ "flavor": "m1.medium",
+ "assignFloatingIp": true,
+ "?": {
+ "classVersion": "0.0.0",
+ "name": null,
+ "package": "io.murano",
+ "type": "io.murano.resources.LinuxMuranoInstance",
+ "_actions": {},
+ "id": "c350d3f6-5d58-44e8-97ce-930f112c7f9e"
}
},
- "name" : "DockerVM",
- "dockerRegistry" : null,
- "containers" : [ "DockerHTTPdSite" ],
- "applicationEndpoints" : [],
+ "name": "DockerVM",
+ "dockerRegistry": null,
+ "containers": [
+ "DockerHTTPdSite"
+ ],
+ "applicationEndpoints": [],
"?": {
"_26411a1861294160833743e45d0eaad9": {
"name": "Docker VM Service"
},
- "_actions" : {
+ "_actions": {
"2614f193-f13e-42b1-af7e-01729bb5af75_getTest": {
"name": "getTest",
"title": "getTest",
diff --git a/core-test/src/main/resources/murano/v1/services.json b/core-test/src/main/resources/murano/v1/services.json
index 2cb946ec9..713b389d1 100644
--- a/core-test/src/main/resources/murano/v1/services.json
+++ b/core-test/src/main/resources/murano/v1/services.json
@@ -1,108 +1,124 @@
-[ {
- "instance" : {
- "availabilityZone" : "nova",
- "openstackId" : "8204d92c-9a79-4474-9f65-2f54f092948e",
- "name" : "Docker",
- "securityGroupName" : null,
- "image" : "500375f8-e64b-453e-8b46-5d5d0d1d926a",
- "ipAddresses" : [ "10.0.115.3", "172.16.167.175" ],
- "networks" : {
- "useFlatNetwork" : false,
- "primaryNetwork" : null,
- "useEnvironmentNetwork" : true,
- "customNetworks" : [ ]
+[
+ {
+ "instance": {
+ "availabilityZone": "nova",
+ "openstackId": "8204d92c-9a79-4474-9f65-2f54f092948e",
+ "name": "Docker",
+ "securityGroupName": null,
+ "image": "500375f8-e64b-453e-8b46-5d5d0d1d926a",
+ "ipAddresses": [
+ "10.0.115.3",
+ "172.16.167.175"
+ ],
+ "networks": {
+ "useFlatNetwork": false,
+ "primaryNetwork": null,
+ "useEnvironmentNetwork": true,
+ "customNetworks": []
+ },
+ "keyname": "nmakhotkin",
+ "sharedIps": [],
+ "floatingIpAddress": "172.16.167.175",
+ "flavor": "m1.medium",
+ "assignFloatingIp": true,
+ "?": {
+ "classVersion": "0.0.0",
+ "name": null,
+ "package": "io.murano",
+ "type": "io.murano.resources.LinuxMuranoInstance",
+ "_actions": {},
+ "id": "c350d3f6-5d58-44e8-97ce-930f112c7f9e"
+ }
},
- "keyname" : "nmakhotkin",
- "sharedIps" : [ ],
- "floatingIpAddress" : "172.16.167.175",
- "flavor" : "m1.medium",
- "assignFloatingIp" : true,
- "?" : {
- "classVersion" : "0.0.0",
- "name" : null,
- "package" : "io.murano",
- "type" : "io.murano.resources.LinuxMuranoInstance",
- "_actions" : { },
- "id" : "c350d3f6-5d58-44e8-97ce-930f112c7f9e"
+ "name": "DockerVM",
+ "dockerRegistry": null,
+ "containers": [
+ "DockerHTTPdSite"
+ ],
+ "applicationEndpoints": [
+ {
+ "applicationName": "DockerHTTPdSite",
+ "portScope": "public",
+ "protocol": "TCP",
+ "containerPort": 80,
+ "address": "10.0.115.3",
+ "scope": "cloud",
+ "port": 80
+ },
+ {
+ "applicationName": "DockerHTTPdSite",
+ "portScope": "public",
+ "protocol": "TCP",
+ "containerPort": 80,
+ "address": "172.16.167.175",
+ "scope": "public",
+ "port": 80
+ },
+ {
+ "applicationName": "DockerHTTPdSite",
+ "portScope": "public",
+ "protocol": "TCP",
+ "containerPort": 80,
+ "address": "172.17.0.1",
+ "scope": "host",
+ "port": 80
+ }
+ ],
+ "?": {
+ "classVersion": "0.0.0",
+ "_26411a1861294160833743e45d0eaad9": {
+ "name": "Docker VM Service"
+ },
+ "name": null,
+ "package": "com.mirantis.docker.DockerStandaloneHost",
+ "_actions": {},
+ "status": "pending",
+ "type": "com.mirantis.docker.DockerStandaloneHost",
+ "id": "2614f193-f13e-42b1-af7e-01729bb5af75"
}
},
- "name" : "DockerVM",
- "dockerRegistry" : null,
- "containers" : [ "DockerHTTPdSite" ],
- "applicationEndpoints" : [ {
- "applicationName" : "DockerHTTPdSite",
- "portScope" : "public",
- "protocol" : "TCP",
- "containerPort" : 80,
- "address" : "10.0.115.3",
- "scope" : "cloud",
- "port" : 80
- }, {
- "applicationName" : "DockerHTTPdSite",
- "portScope" : "public",
- "protocol" : "TCP",
- "containerPort" : 80,
- "address" : "172.16.167.175",
- "scope" : "public",
- "port" : 80
- }, {
- "applicationName" : "DockerHTTPdSite",
- "portScope" : "public",
- "protocol" : "TCP",
- "containerPort" : 80,
- "address" : "172.17.0.1",
- "scope" : "host",
- "port" : 80
- } ],
- "?" : {
- "classVersion" : "0.0.0",
- "_26411a1861294160833743e45d0eaad9" : {
- "name" : "Docker VM Service"
- },
- "name" : null,
- "package" : "com.mirantis.docker.DockerStandaloneHost",
- "_actions" : { },
- "status" : "pending",
- "type" : "com.mirantis.docker.DockerStandaloneHost",
- "id" : "2614f193-f13e-42b1-af7e-01729bb5af75"
- }
-}, {
- "siteRepo" : "https://github.com/nmakhotkin/example-web.git",
- "publish" : true,
- "name" : "DockerHTTPdSite",
- "host" : "2614f193-f13e-42b1-af7e-01729bb5af75",
- "applicationEndpoints" : [ {
- "portScope" : "public",
- "protocol" : "TCP",
- "port" : 80,
- "address" : "10.0.115.3",
- "scope" : "cloud",
- "containerPort" : 80
- }, {
- "portScope" : "public",
- "protocol" : "TCP",
- "port" : 80,
- "address" : "172.16.167.175",
- "scope" : "public",
- "containerPort" : 80
- }, {
- "portScope" : "public",
- "protocol" : "TCP",
- "port" : 80,
- "address" : "172.17.0.1",
- "scope" : "host",
- "containerPort" : 80
- } ],
- "?" : {
- "classVersion" : "0.0.0",
- "_26411a1861294160833743e45d0eaad9" : {
- "name" : "Docker HTTPd Site"
- },
- "name" : null,
- "package" : "com.example.docker.DockerHTTPdSite",
- "_actions" : { },
- "status" : "pending",
- "type" : "com.example.docker.DockerHTTPdSite",
- "id" : "e8d61b75-df6a-42c6-be2c-5b6aeaa60f5c"
+ {
+ "siteRepo": "https://github.com/nmakhotkin/example-web.git",
+ "publish": true,
+ "name": "DockerHTTPdSite",
+ "host": "2614f193-f13e-42b1-af7e-01729bb5af75",
+ "applicationEndpoints": [
+ {
+ "portScope": "public",
+ "protocol": "TCP",
+ "port": 80,
+ "address": "10.0.115.3",
+ "scope": "cloud",
+ "containerPort": 80
+ },
+ {
+ "portScope": "public",
+ "protocol": "TCP",
+ "port": 80,
+ "address": "172.16.167.175",
+ "scope": "public",
+ "containerPort": 80
+ },
+ {
+ "portScope": "public",
+ "protocol": "TCP",
+ "port": 80,
+ "address": "172.17.0.1",
+ "scope": "host",
+ "containerPort": 80
+ }
+ ],
+ "?": {
+ "classVersion": "0.0.0",
+ "_26411a1861294160833743e45d0eaad9": {
+ "name": "Docker HTTPd Site"
+ },
+ "name": null,
+ "package": "com.example.docker.DockerHTTPdSite",
+ "_actions": {},
+ "status": "pending",
+ "type": "com.example.docker.DockerHTTPdSite",
+ "id": "e8d61b75-df6a-42c6-be2c-5b6aeaa60f5c"
+ }
}
-} ]
\ No newline at end of file
+]
\ No newline at end of file
diff --git a/core-test/src/main/resources/murano/v1/session.json b/core-test/src/main/resources/murano/v1/session.json
index 80857217f..902599f68 100644
--- a/core-test/src/main/resources/murano/v1/session.json
+++ b/core-test/src/main/resources/murano/v1/session.json
@@ -1,9 +1,9 @@
{
- "user_id" : "bd6c061b247a477c8717014896a5d66c",
- "state" : "opened",
- "version" : 3,
- "environment_id" : "e1c1b5a0b3284f188c5d91ab18bf0451",
- "id" : "b8f4006064d24c10a33d9ed68e554f0f",
- "created" : "2016-09-28T13:14:13",
- "updated" : "2016-09-28T13:14:13"
+ "user_id": "bd6c061b247a477c8717014896a5d66c",
+ "state": "opened",
+ "version": 3,
+ "environment_id": "e1c1b5a0b3284f188c5d91ab18bf0451",
+ "id": "b8f4006064d24c10a33d9ed68e554f0f",
+ "created": "2016-09-28T13:14:13",
+ "updated": "2016-09-28T13:14:13"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/agents.json b/core-test/src/main/resources/network/agents.json
index ca03363a5..710790be4 100644
--- a/core-test/src/main/resources/network/agents.json
+++ b/core-test/src/main/resources/network/agents.json
@@ -1,271 +1,264 @@
{
- "agents":[
- {
- "binary":"neutron-dhcp-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:22",
- "alive":true,
- "topic":"dhcp_agent",
- "host":"cic-0-3",
- "agent_type":"DHCP agent",
- "created_at":"2015-03-18 20:28:02",
- "started_at":"2015-03-18 20:28:02",
- "id":"086d8a3d-ef23-4708-909b-0c459528e2a6",
- "configurations":{
- "subnets":6,
- "use_namespaces":true,
- "dhcp_lease_duration":120,
- "dhcp_driver":"neutron.agent.linux.dhcp.Dnsmasq",
- "networks":6,
- "ports":8
- }
- },
- {
- "binary":"neutron-l3-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:23",
- "alive":true,
- "topic":"l3_agent",
- "host":"cic-0-2",
- "agent_type":"L3 agent",
- "created_at":"2015-03-18 20:02:02",
- "started_at":"2015-03-18 20:02:02",
- "id":"190ecbc2-77e0-4e4f-a96b-aa849edb357b",
- "configurations":{
- "router_id":"",
- "gateway_external_network_id":"",
- "handle_internal_only_routers":false,
- "use_namespaces":true,
- "routers":0,
- "interfaces":0,
- "floating_ips":0,
- "interface_driver":"neutron.agent.linux.interface.OVSInterfaceDriver",
- "ex_gw_ports":0
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:21",
- "alive":true,
- "topic":"N/A",
- "host":"compute-0-8",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 20:38:39",
- "started_at":"2015-03-18 20:38:56",
- "id":"342d52e4-f253-443e-ab68-b7147b6b01ba",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":1
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:22",
- "alive":true,
- "topic":"N/A",
- "host":"compute-0-7",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 20:38:39",
- "started_at":"2015-03-18 20:38:56",
- "id":"4604070d-cb78-4500-8af8-97b346b5ccca",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":0
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:23",
- "alive":true,
- "topic":"N/A",
- "host":"cic-0-4",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 20:20:57",
- "started_at":"2015-03-18 20:25:42",
- "id":"862ad7e5-11f0-4c3c-86e7-0995b6c66d11",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":0
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:25",
- "alive":true,
- "topic":"N/A",
- "host":"cic-0-3",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 20:20:46",
- "started_at":"2015-03-18 20:25:35",
- "id":"a594869e-cef0-49c9-a06e-54eb3ce74730",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":7
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:24",
- "alive":true,
- "topic":"N/A",
- "host":"compute-0-5",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 20:38:42",
- "started_at":"2015-03-18 20:38:59",
- "id":"c98d1a7a-e972-4bcf-844c-dfb764e806c6",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":2
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:25",
- "alive":true,
- "topic":"N/A",
- "host":"cic-0-2",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 19:57:10",
- "started_at":"2015-03-18 19:59:05",
- "id":"cbccc4f9-9083-4a31-bfba-705556c2c898",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":0
- }
- },
- {
- "binary":"neutron-metadata-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:25",
- "alive":true,
- "topic":"N/A",
- "host":"cic-0-3",
- "agent_type":"Metadata agent",
- "created_at":"2015-03-18 20:26:45",
- "started_at":"2015-03-18 20:26:45",
- "id":"d228eaae-1690-4d5e-b991-929f00df00ae",
- "configurations":{
- "nova_metadata_port":8775,
- "nova_metadata_ip":"192.168.2.20",
- "metadata_proxy_socket":"/var/lib/neutron/metadata_proxy"
- }
- },
- {
- "binary":"neutron-openvswitch-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:21",
- "alive":true,
- "topic":"N/A",
- "host":"compute-0-6",
- "agent_type":"Open vSwitch agent",
- "created_at":"2015-03-18 20:38:39",
- "started_at":"2015-03-18 20:38:56",
- "id":"d30479f4-52a0-4664-aafa-820889edcc05",
- "configurations":{
- "tunnel_types":[
-
- ],
- "tunneling_ip":"",
- "bridge_mappings":{
- "default":"br-prv"
- },
- "l2_population":false,
- "devices":5
- }
- },
- {
- "binary":"neutron-metadata-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:23",
- "alive":true,
- "topic":"N/A",
- "host":"cic-0-2",
- "agent_type":"Metadata agent",
- "created_at":"2015-03-18 19:59:48",
- "started_at":"2015-03-18 19:59:48",
- "id":"d4700160-9945-428b-994c-4570e255e2ee",
- "configurations":{
- "nova_metadata_port":8775,
- "nova_metadata_ip":"192.168.2.20",
- "metadata_proxy_socket":"/var/lib/neutron/metadata_proxy"
- }
- },
- {
- "binary":"neutron-metadata-agent",
- "description":null,
- "admin_state_up":true,
- "heartbeat_timestamp":"2015-03-19 15:55:23",
- "alive":true,
- "topic":"N/A",
- "host":"cic-0-4",
- "agent_type":"Metadata agent",
- "created_at":"2015-03-18 20:26:53",
- "started_at":"2015-03-18 20:26:53",
- "id":"e06c1445-abee-49e2-9f2c-769257f8b989",
- "configurations":{
- "nova_metadata_port":8775,
- "nova_metadata_ip":"192.168.2.20",
- "metadata_proxy_socket":"/var/lib/neutron/metadata_proxy"
- }
+ "agents": [
+ {
+ "binary": "neutron-dhcp-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:22",
+ "alive": true,
+ "topic": "dhcp_agent",
+ "host": "cic-0-3",
+ "agent_type": "DHCP agent",
+ "created_at": "2015-03-18 20:28:02",
+ "started_at": "2015-03-18 20:28:02",
+ "id": "086d8a3d-ef23-4708-909b-0c459528e2a6",
+ "configurations": {
+ "subnets": 6,
+ "use_namespaces": true,
+ "dhcp_lease_duration": 120,
+ "dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq",
+ "networks": 6,
+ "ports": 8
}
- ]
+ },
+ {
+ "binary": "neutron-l3-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:23",
+ "alive": true,
+ "topic": "l3_agent",
+ "host": "cic-0-2",
+ "agent_type": "L3 agent",
+ "created_at": "2015-03-18 20:02:02",
+ "started_at": "2015-03-18 20:02:02",
+ "id": "190ecbc2-77e0-4e4f-a96b-aa849edb357b",
+ "configurations": {
+ "router_id": "",
+ "gateway_external_network_id": "",
+ "handle_internal_only_routers": false,
+ "use_namespaces": true,
+ "routers": 0,
+ "interfaces": 0,
+ "floating_ips": 0,
+ "interface_driver": "neutron.agent.linux.interface.OVSInterfaceDriver",
+ "ex_gw_ports": 0
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:21",
+ "alive": true,
+ "topic": "N/A",
+ "host": "compute-0-8",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 20:38:39",
+ "started_at": "2015-03-18 20:38:56",
+ "id": "342d52e4-f253-443e-ab68-b7147b6b01ba",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 1
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:22",
+ "alive": true,
+ "topic": "N/A",
+ "host": "compute-0-7",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 20:38:39",
+ "started_at": "2015-03-18 20:38:56",
+ "id": "4604070d-cb78-4500-8af8-97b346b5ccca",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 0
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:23",
+ "alive": true,
+ "topic": "N/A",
+ "host": "cic-0-4",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 20:20:57",
+ "started_at": "2015-03-18 20:25:42",
+ "id": "862ad7e5-11f0-4c3c-86e7-0995b6c66d11",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 0
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:25",
+ "alive": true,
+ "topic": "N/A",
+ "host": "cic-0-3",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 20:20:46",
+ "started_at": "2015-03-18 20:25:35",
+ "id": "a594869e-cef0-49c9-a06e-54eb3ce74730",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 7
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:24",
+ "alive": true,
+ "topic": "N/A",
+ "host": "compute-0-5",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 20:38:42",
+ "started_at": "2015-03-18 20:38:59",
+ "id": "c98d1a7a-e972-4bcf-844c-dfb764e806c6",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 2
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:25",
+ "alive": true,
+ "topic": "N/A",
+ "host": "cic-0-2",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 19:57:10",
+ "started_at": "2015-03-18 19:59:05",
+ "id": "cbccc4f9-9083-4a31-bfba-705556c2c898",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 0
+ }
+ },
+ {
+ "binary": "neutron-metadata-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:25",
+ "alive": true,
+ "topic": "N/A",
+ "host": "cic-0-3",
+ "agent_type": "Metadata agent",
+ "created_at": "2015-03-18 20:26:45",
+ "started_at": "2015-03-18 20:26:45",
+ "id": "d228eaae-1690-4d5e-b991-929f00df00ae",
+ "configurations": {
+ "nova_metadata_port": 8775,
+ "nova_metadata_ip": "192.168.2.20",
+ "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"
+ }
+ },
+ {
+ "binary": "neutron-openvswitch-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:21",
+ "alive": true,
+ "topic": "N/A",
+ "host": "compute-0-6",
+ "agent_type": "Open vSwitch agent",
+ "created_at": "2015-03-18 20:38:39",
+ "started_at": "2015-03-18 20:38:56",
+ "id": "d30479f4-52a0-4664-aafa-820889edcc05",
+ "configurations": {
+ "tunnel_types": [
+ ],
+ "tunneling_ip": "",
+ "bridge_mappings": {
+ "default": "br-prv"
+ },
+ "l2_population": false,
+ "devices": 5
+ }
+ },
+ {
+ "binary": "neutron-metadata-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:23",
+ "alive": true,
+ "topic": "N/A",
+ "host": "cic-0-2",
+ "agent_type": "Metadata agent",
+ "created_at": "2015-03-18 19:59:48",
+ "started_at": "2015-03-18 19:59:48",
+ "id": "d4700160-9945-428b-994c-4570e255e2ee",
+ "configurations": {
+ "nova_metadata_port": 8775,
+ "nova_metadata_ip": "192.168.2.20",
+ "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"
+ }
+ },
+ {
+ "binary": "neutron-metadata-agent",
+ "description": null,
+ "admin_state_up": true,
+ "heartbeat_timestamp": "2015-03-19 15:55:23",
+ "alive": true,
+ "topic": "N/A",
+ "host": "cic-0-4",
+ "agent_type": "Metadata agent",
+ "created_at": "2015-03-18 20:26:53",
+ "started_at": "2015-03-18 20:26:53",
+ "id": "e06c1445-abee-49e2-9f2c-769257f8b989",
+ "configurations": {
+ "nova_metadata_port": 8775,
+ "nova_metadata_ip": "192.168.2.20",
+ "metadata_proxy_socket": "/var/lib/neutron/metadata_proxy"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/availability_zones.json b/core-test/src/main/resources/network/availability_zones.json
index 26012a65c..d5cc4cdf5 100644
--- a/core-test/src/main/resources/network/availability_zones.json
+++ b/core-test/src/main/resources/network/availability_zones.json
@@ -1,9 +1,9 @@
{
- "availability_zones": [
- {
- "state": "available",
- "resource": "network",
- "name": "nova"
- }
- ]
+ "availability_zones": [
+ {
+ "state": "available",
+ "resource": "network",
+ "name": "nova"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewall.json b/core-test/src/main/resources/network/firewalls/firewall.json
index 461f4e660..bd1f4143f 100644
--- a/core-test/src/main/resources/network/firewalls/firewall.json
+++ b/core-test/src/main/resources/network/firewalls/firewall.json
@@ -1,11 +1,11 @@
{
- "firewall": {
- "admin_state_up": true,
- "description": "Sample-Firewall",
- "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977",
- "name": "Sample-Firewall",
- "status": "ACTIVE",
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
+ "firewall": {
+ "admin_state_up": true,
+ "description": "Sample-Firewall",
+ "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977",
+ "name": "Sample-Firewall",
+ "status": "ACTIVE",
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallpolicies.json b/core-test/src/main/resources/network/firewalls/firewallpolicies.json
index 10f9d47ac..9f6b791d4 100644
--- a/core-test/src/main/resources/network/firewalls/firewallpolicies.json
+++ b/core-test/src/main/resources/network/firewalls/firewallpolicies.json
@@ -1,15 +1,15 @@
{
- "firewall_policies": [
- {
- "audited": false,
- "description": "Sample-Firewall-Policy",
- "firewall_rules": [
- "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
- ],
- "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "name": "Sample-Firewall-Policy",
- "shared": false,
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
- ]
+ "firewall_policies": [
+ {
+ "audited": false,
+ "description": "Sample-Firewall-Policy",
+ "firewall_rules": [
+ "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
+ ],
+ "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "name": "Sample-Firewall-Policy",
+ "shared": false,
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallpolicy.json b/core-test/src/main/resources/network/firewalls/firewallpolicy.json
index e0533cab9..673ab9c12 100644
--- a/core-test/src/main/resources/network/firewalls/firewallpolicy.json
+++ b/core-test/src/main/resources/network/firewalls/firewallpolicy.json
@@ -1,13 +1,13 @@
{
- "firewall_policy": {
- "audited": false,
- "description": "Test-Firewall-Policy",
- "firewall_rules": [
- "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
- ],
- "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "name": "Test-Firewall-Policy",
- "shared": false,
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
+ "firewall_policy": {
+ "audited": false,
+ "description": "Test-Firewall-Policy",
+ "firewall_rules": [
+ "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
+ ],
+ "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "name": "Test-Firewall-Policy",
+ "shared": false,
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallpolicyrule.json b/core-test/src/main/resources/network/firewalls/firewallpolicyrule.json
index eb411b631..0ec984add 100644
--- a/core-test/src/main/resources/network/firewalls/firewallpolicyrule.json
+++ b/core-test/src/main/resources/network/firewalls/firewallpolicyrule.json
@@ -1,13 +1,13 @@
{
- "audited": false,
- "description": "",
- "firewall_list": [],
- "firewall_rules": [
- "a08ef905-0ff6-4784-8374-175fffe7dade",
- "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
- ],
- "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "name": "test-policy",
- "shared": false,
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ "audited": false,
+ "description": "",
+ "firewall_list": [],
+ "firewall_rules": [
+ "a08ef905-0ff6-4784-8374-175fffe7dade",
+ "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
+ ],
+ "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "name": "test-policy",
+ "shared": false,
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallpolicyupdate.json b/core-test/src/main/resources/network/firewalls/firewallpolicyupdate.json
index 0e54e7d2b..ed79a6776 100644
--- a/core-test/src/main/resources/network/firewalls/firewallpolicyupdate.json
+++ b/core-test/src/main/resources/network/firewalls/firewallpolicyupdate.json
@@ -1,12 +1,12 @@
{
- "firewall_policy": {
- "audited": true,
- "description": "Test-Firewall-Policy-Update",
- "firewall_rules": [
- "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
- ],
- "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "name": "Test-Firewall-Policy-Update",
- "shared": true
- }
+ "firewall_policy": {
+ "audited": true,
+ "description": "Test-Firewall-Policy-Update",
+ "firewall_rules": [
+ "8722e0e0-9cc9-4490-9660-8c9a5732fbb0"
+ ],
+ "id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "name": "Test-Firewall-Policy-Update",
+ "shared": true
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallrule.json b/core-test/src/main/resources/network/firewalls/firewallrule.json
index 7a27e26af..f0ce1b99b 100644
--- a/core-test/src/main/resources/network/firewalls/firewallrule.json
+++ b/core-test/src/main/resources/network/firewalls/firewallrule.json
@@ -1,19 +1,19 @@
{
- "firewall_rule": {
- "action": "allow",
- "description": "Sample-Firewall-Rule",
- "destination_ip_address": "2.2.2.0/24",
- "destination_port": "80",
- "enabled": true,
- "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "id": "8722e0e0-9cc9-4490-9660-8c9a5732fbb0",
- "ip_version": 4,
- "name": "ALLOW_HTTP",
- "position": 1,
- "protocol": "tcp",
- "shared": false,
- "source_ip_address": "1.1.1.0/24",
- "source_port": "20",
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
+ "firewall_rule": {
+ "action": "allow",
+ "description": "Sample-Firewall-Rule",
+ "destination_ip_address": "2.2.2.0/24",
+ "destination_port": "80",
+ "enabled": true,
+ "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "id": "8722e0e0-9cc9-4490-9660-8c9a5732fbb0",
+ "ip_version": 4,
+ "name": "ALLOW_HTTP",
+ "position": 1,
+ "protocol": "tcp",
+ "shared": false,
+ "source_ip_address": "1.1.1.0/24",
+ "source_port": "20",
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallrules.json b/core-test/src/main/resources/network/firewalls/firewallrules.json
index ce1bd940e..d03aed097 100644
--- a/core-test/src/main/resources/network/firewalls/firewallrules.json
+++ b/core-test/src/main/resources/network/firewalls/firewallrules.json
@@ -1,21 +1,21 @@
{
- "firewall_rules": [
- {
- "action": "allow",
- "description": "Sample-Firewall-Rule",
- "destination_ip_address": "2.2.2.0/24",
- "destination_port": "80",
- "enabled": true,
- "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "id": "8722e0e0-9cc9-4490-9660-8c9a5732fbb0",
- "ip_version": 4,
- "name": "ALLOW_HTTP",
- "position": 1,
- "protocol": "tcp",
- "shared": false,
- "source_ip_address": "1.1.1.0/24",
- "source_port": "20",
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
- ]
+ "firewall_rules": [
+ {
+ "action": "allow",
+ "description": "Sample-Firewall-Rule",
+ "destination_ip_address": "2.2.2.0/24",
+ "destination_port": "80",
+ "enabled": true,
+ "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "id": "8722e0e0-9cc9-4490-9660-8c9a5732fbb0",
+ "ip_version": 4,
+ "name": "ALLOW_HTTP",
+ "position": 1,
+ "protocol": "tcp",
+ "shared": false,
+ "source_ip_address": "1.1.1.0/24",
+ "source_port": "20",
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallruleupdate.json b/core-test/src/main/resources/network/firewalls/firewallruleupdate.json
index de2970f8b..99ce8331b 100644
--- a/core-test/src/main/resources/network/firewalls/firewallruleupdate.json
+++ b/core-test/src/main/resources/network/firewalls/firewallruleupdate.json
@@ -1,19 +1,19 @@
{
- "firewall_rule": {
- "action": "deny",
- "description": "Sample-Firewall-Rule-Update",
- "destination_ip_address": "2.2.2.0/24",
- "destination_port": "80",
- "enabled": false,
- "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "id": "8722e0e0-9cc9-4490-9660-8c9a5732fbb0",
- "ip_version": 4,
- "name": "ALLOW_HTTP",
- "position": 1,
- "protocol": "tcp",
- "shared": false,
- "source_ip_address": "1.1.1.0/24",
- "source_port": "20",
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
+ "firewall_rule": {
+ "action": "deny",
+ "description": "Sample-Firewall-Rule-Update",
+ "destination_ip_address": "2.2.2.0/24",
+ "destination_port": "80",
+ "enabled": false,
+ "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "id": "8722e0e0-9cc9-4490-9660-8c9a5732fbb0",
+ "ip_version": 4,
+ "name": "ALLOW_HTTP",
+ "position": 1,
+ "protocol": "tcp",
+ "shared": false,
+ "source_ip_address": "1.1.1.0/24",
+ "source_port": "20",
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewalls.json b/core-test/src/main/resources/network/firewalls/firewalls.json
index 21991e0be..fd2034608 100644
--- a/core-test/src/main/resources/network/firewalls/firewalls.json
+++ b/core-test/src/main/resources/network/firewalls/firewalls.json
@@ -1,13 +1,13 @@
{
- "firewalls": [
- {
- "admin_state_up": true,
- "description": "Simple-Firewall-Test",
- "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977",
- "name": "firewall-test",
- "status": "ACTIVE",
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
- ]
+ "firewalls": [
+ {
+ "admin_state_up": true,
+ "description": "Simple-Firewall-Test",
+ "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977",
+ "name": "firewall-test",
+ "status": "ACTIVE",
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/firewalls/firewallupdate.json b/core-test/src/main/resources/network/firewalls/firewallupdate.json
index f15e9e7a9..560015614 100644
--- a/core-test/src/main/resources/network/firewalls/firewallupdate.json
+++ b/core-test/src/main/resources/network/firewalls/firewallupdate.json
@@ -1,11 +1,11 @@
{
- "firewall": {
- "admin_state_up": false,
- "description": "Test-Firewall-Update",
- "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
- "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977",
- "name": "Test-Firewall-Update",
- "status": "ACTIVE",
- "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
- }
+ "firewall": {
+ "admin_state_up": false,
+ "description": "Test-Firewall-Update",
+ "firewall_policy_id": "c69933c1-b472-44f9-8226-30dc4ffd454c",
+ "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977",
+ "name": "Test-Firewall-Update",
+ "status": "ACTIVE",
+ "tenant_id": "45977fa2dbd7482098dd68d0d8970117"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/external_policies.json b/core-test/src/main/resources/network/gbp/external_policies.json
index bb174ba78..345aa024d 100644
--- a/core-test/src/main/resources/network/gbp/external_policies.json
+++ b/core-test/src/main/resources/network/gbp/external_policies.json
@@ -1,42 +1,40 @@
{
- "external_policies":[
- {
- "consumed_policy_rule_sets":[
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "description":"test-ext-grp-desc-1",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "provided_policy_rule_sets":[
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "shared":false,
- "external_segments":[
- "fff89eb8-8f9d-49a2-b66c-ad75d9a95287"
- ],
- "id":"6294837a-8f35-4071-b766-3a4ff3d8afbb",
- "name":"test-ext-grp-1"
- },
- {
- "consumed_policy_rule_sets":[
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "description":"test-ext-grp-desc-2",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "provided_policy_rule_sets":[
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "shared":false,
- "external_segments":[
- "fff89eb8-8f9d-49a2-b66c-ad75d9a95287"
- ],
- "id":"7294837a-8f35-4071-b766-3a4ff3d8afbb",
- "name":"test-ext-grp-2"
- }
-
-
- ]
+ "external_policies": [
+ {
+ "consumed_policy_rule_sets": [
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "description": "test-ext-grp-desc-1",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "provided_policy_rule_sets": [
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "shared": false,
+ "external_segments": [
+ "fff89eb8-8f9d-49a2-b66c-ad75d9a95287"
+ ],
+ "id": "6294837a-8f35-4071-b766-3a4ff3d8afbb",
+ "name": "test-ext-grp-1"
+ },
+ {
+ "consumed_policy_rule_sets": [
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "description": "test-ext-grp-desc-2",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "provided_policy_rule_sets": [
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "shared": false,
+ "external_segments": [
+ "fff89eb8-8f9d-49a2-b66c-ad75d9a95287"
+ ],
+ "id": "7294837a-8f35-4071-b766-3a4ff3d8afbb",
+ "name": "test-ext-grp-2"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/external_policy.json b/core-test/src/main/resources/network/gbp/external_policy.json
index e789ab04c..fedfdf450 100644
--- a/core-test/src/main/resources/network/gbp/external_policy.json
+++ b/core-test/src/main/resources/network/gbp/external_policy.json
@@ -1,32 +1,32 @@
{
- "external_policy":{
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "f19a90af-0103-429d-8118-3920bf2f27db",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "description":"test-ext-policy-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "f19a90af-0103-429d-8118-3920bf2f27db",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "shared":false,
- "external_segments":[
- "f062e3b9-a668-4265-95d0-239c2061ca12"
- ],
- "id":"8d14b663-c67d-4fa7-b23f-0732cb9aa292",
- "name":"test-ext-policy"
- }
+ "external_policy": {
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "f19a90af-0103-429d-8118-3920bf2f27db",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "description": "test-ext-policy-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "f19a90af-0103-429d-8118-3920bf2f27db",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "shared": false,
+ "external_segments": [
+ "f062e3b9-a668-4265-95d0-239c2061ca12"
+ ],
+ "id": "8d14b663-c67d-4fa7-b23f-0732cb9aa292",
+ "name": "test-ext-policy"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/external_policy_update.json b/core-test/src/main/resources/network/gbp/external_policy_update.json
index 62098a3a0..3b1158bca 100644
--- a/core-test/src/main/resources/network/gbp/external_policy_update.json
+++ b/core-test/src/main/resources/network/gbp/external_policy_update.json
@@ -1,22 +1,22 @@
{
- "external_policy":{
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "description":"test-ext-policy-desc-update",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "shared":false,
- "external_segments":[
- "f062e3b9-a668-4265-95d0-239c2061ca12"
- ],
- "id":"8d14b663-c67d-4fa7-b23f-0732cb9aa292",
- "name":"test-ext-policy-update"
- }
+ "external_policy": {
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "description": "test-ext-policy-desc-update",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "shared": false,
+ "external_segments": [
+ "f062e3b9-a668-4265-95d0-239c2061ca12"
+ ],
+ "id": "8d14b663-c67d-4fa7-b23f-0732cb9aa292",
+ "name": "test-ext-policy-update"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/external_segment.json b/core-test/src/main/resources/network/gbp/external_segment.json
index e6e4b4447..e7a526fd6 100644
--- a/core-test/src/main/resources/network/gbp/external_segment.json
+++ b/core-test/src/main/resources/network/gbp/external_segment.json
@@ -1,25 +1,21 @@
{
- "external_segment":{
- "description":"extSeg01-desc",
- "external_policies":[
-
- ],
- "port_address_translation":false,
- "shared":false,
- "cidr":"172.16.0.0/12",
- "id":"df9e5238-084e-4053-8871-81b63167e2f4",
- "name":"extSeg01",
- "l3_policies":[
-
- ],
- "subnet_id":null,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "nat_pools":[
-
- ],
- "ip_version":4,
- "external_routes":[
-
- ]
- }
+ "external_segment": {
+ "description": "extSeg01-desc",
+ "external_policies": [
+ ],
+ "port_address_translation": false,
+ "shared": false,
+ "cidr": "172.16.0.0/12",
+ "id": "df9e5238-084e-4053-8871-81b63167e2f4",
+ "name": "extSeg01",
+ "l3_policies": [
+ ],
+ "subnet_id": null,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "nat_pools": [
+ ],
+ "ip_version": 4,
+ "external_routes": [
+ ]
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/external_segment_update.json b/core-test/src/main/resources/network/gbp/external_segment_update.json
index 7d2e3e150..87b81d028 100644
--- a/core-test/src/main/resources/network/gbp/external_segment_update.json
+++ b/core-test/src/main/resources/network/gbp/external_segment_update.json
@@ -1,25 +1,21 @@
{
- "external_segment":{
- "description":"extSeg01-desc-update",
- "external_policies":[
-
- ],
- "port_address_translation":false,
- "shared":false,
- "cidr":"172.16.0.0/12",
- "id":"df9e5238-084e-4053-8871-81b63167e2f4",
- "name":"extSeg01-update",
- "l3_policies":[
-
- ],
- "subnet_id":null,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "nat_pools":[
-
- ],
- "ip_version":4,
- "external_routes":[
-
- ]
- }
+ "external_segment": {
+ "description": "extSeg01-desc-update",
+ "external_policies": [
+ ],
+ "port_address_translation": false,
+ "shared": false,
+ "cidr": "172.16.0.0/12",
+ "id": "df9e5238-084e-4053-8871-81b63167e2f4",
+ "name": "extSeg01-update",
+ "l3_policies": [
+ ],
+ "subnet_id": null,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "nat_pools": [
+ ],
+ "ip_version": 4,
+ "external_routes": [
+ ]
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/external_segments.json b/core-test/src/main/resources/network/gbp/external_segments.json
index 9fa9f8389..81e43ea7d 100644
--- a/core-test/src/main/resources/network/gbp/external_segments.json
+++ b/core-test/src/main/resources/network/gbp/external_segments.json
@@ -1,56 +1,56 @@
{
- "external_segments":[
- {
- "description":"Datacenter-Out-desc",
- "external_policies":[
- "6294837a-8f35-4071-b766-3a4ff3d8afbb"
- ],
- "port_address_translation":false,
- "shared":true,
- "cidr":"1.101.2.1/28",
- "id":"fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
- "name":"Datacenter-Out",
- "l3_policies":[
- "da7083c6-3d5b-450c-8163-0b156d55eba6"
- ],
- "subnet_id":"182c0b15-3f48-453d-b163-ea91effe2784",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "nat_pools":[
- "e2d4fce7-4c55-497b-ac4c-290dd202c71a"
- ],
- "ip_version":4,
- "external_routes":[
- {
- "nexthop":"",
- "destination":"0.0.0.0/0"
- }
- ]
- },
- {
- "description":"Datacenter-Out-2-desc",
- "external_policies":[
- "6294837a-8f35-4071-b766-3a4ff3d8afbb"
- ],
- "port_address_translation":false,
- "shared":true,
- "cidr":"1.101.2.1/28",
- "id":"ggg89eb8-8f9d-49a2-b66c-ad75d9a95287",
- "name":"Datacenter-Out-2",
- "l3_policies":[
- "da7083c6-3d5b-450c-8163-0b156d55eba6"
- ],
- "subnet_id":"182c0b15-3f48-453d-b163-ea91effe2784",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "nat_pools":[
- "e2d4fce7-4c55-497b-ac4c-290dd202c71a"
- ],
- "ip_version":4,
- "external_routes":[
- {
- "nexthop":"",
- "destination":"0.0.0.0/0"
- }
- ]
- }
- ]
+ "external_segments": [
+ {
+ "description": "Datacenter-Out-desc",
+ "external_policies": [
+ "6294837a-8f35-4071-b766-3a4ff3d8afbb"
+ ],
+ "port_address_translation": false,
+ "shared": true,
+ "cidr": "1.101.2.1/28",
+ "id": "fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
+ "name": "Datacenter-Out",
+ "l3_policies": [
+ "da7083c6-3d5b-450c-8163-0b156d55eba6"
+ ],
+ "subnet_id": "182c0b15-3f48-453d-b163-ea91effe2784",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "nat_pools": [
+ "e2d4fce7-4c55-497b-ac4c-290dd202c71a"
+ ],
+ "ip_version": 4,
+ "external_routes": [
+ {
+ "nexthop": "",
+ "destination": "0.0.0.0/0"
+ }
+ ]
+ },
+ {
+ "description": "Datacenter-Out-2-desc",
+ "external_policies": [
+ "6294837a-8f35-4071-b766-3a4ff3d8afbb"
+ ],
+ "port_address_translation": false,
+ "shared": true,
+ "cidr": "1.101.2.1/28",
+ "id": "ggg89eb8-8f9d-49a2-b66c-ad75d9a95287",
+ "name": "Datacenter-Out-2",
+ "l3_policies": [
+ "da7083c6-3d5b-450c-8163-0b156d55eba6"
+ ],
+ "subnet_id": "182c0b15-3f48-453d-b163-ea91effe2784",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "nat_pools": [
+ "e2d4fce7-4c55-497b-ac4c-290dd202c71a"
+ ],
+ "ip_version": 4,
+ "external_routes": [
+ {
+ "nexthop": "",
+ "destination": "0.0.0.0/0"
+ }
+ ]
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/l2_policies.json b/core-test/src/main/resources/network/gbp/l2_policies.json
index 65a4a49ea..b8c98772b 100644
--- a/core-test/src/main/resources/network/gbp/l2_policies.json
+++ b/core-test/src/main/resources/network/gbp/l2_policies.json
@@ -1,124 +1,124 @@
{
- "l2_policies":[
- {
- "description":"Implicitly created L2 policy",
- "network_id":"f9c1f545-6ea6-4b05-99d5-50f02ed3c640",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "1fb00129-06cf-48e5-8282-d15dbf4be60b"
- ],
- "shared":false,
- "id":"08c1c093-6337-4383-938e-2d9c6cac531a",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"43f98ed6-3e4a-4dfe-a1d4-3b7692641811",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "62acdf14-184d-4565-9660-e5f0ec454e79"
- ],
- "shared":false,
- "id":"138305c9-2749-4291-b9ff-adb901a660f1",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"58a69068-075b-44a4-8829-52b233cafd70",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "d3f59dc9-f7c4-4183-8315-4fa3f5ca3202"
- ],
- "shared":false,
- "id":"36af9906-300e-465a-85fc-716694de38c7",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"20e0314c-3d75-496a-ab7f-14fac20d6efd",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "l3_policy_id":"8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
- "policy_target_groups":[
- "2b2a44de-0992-4cf8-bbd6-b2e4c565e16d"
- ],
- "shared":false,
- "id":"65fc10d2-f173-48db-ad50-72f29790c4d1",
- "name":"test"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"852eb20e-edf2-48c4-a498-a776fe93bb4d",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "ab19a691-24e1-44e8-bc74-38b233305f52"
- ],
- "shared":false,
- "id":"7dc44fbd-bc2b-4aa3-808c-0498183f5e21",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"e05accfc-c550-4528-bfe3-5a52382482fd",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "aab0872f-890f-46b1-b461-86877039c23e"
- ],
- "shared":false,
- "id":"7eea106a-714d-41aa-ac69-de4c3f2e4b44",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"6f9a05c9-b162-4e75-8ae3-9fea2c5eee31",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "3ecf2178-25bb-4611-8a10-0dc074e90295"
- ],
- "shared":false,
- "id":"9fe34254-28fd-4db2-bba6-f8c35c51617e",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"c0631952-3247-40ad-bb0e-8e7dc7c9feff",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "61073812-3994-40c2-96f0-6bff03804e47"
- ],
- "shared":false,
- "id":"a8aea144-92d8-4830-ae9f-41af291adb42",
- "name":"test-policy-target-group"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"e16c1817-463b-42ab-afbf-801434e845be",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "a72f99fa-68d1-494a-bc63-8b9e9b526f76"
- ],
- "shared":false,
- "id":"c1cc9bd8-49a5-4699-aa26-b276ced4cc67",
- "name":"sha1-test"
- },
- {
- "description":"Implicitly created L2 policy",
- "network_id":"1f3d040d-0cd4-4ae2-839d-bccbd718a58f",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "793c0497-39e8-4c76-a751-1d115d7a3b21"
- ],
- "shared":false,
- "id":"d02b17ad-ef26-4a04-9071-82a5cfa100a6",
- "name":"test-policy-target-group"
- }
- ]
+ "l2_policies": [
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "f9c1f545-6ea6-4b05-99d5-50f02ed3c640",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "1fb00129-06cf-48e5-8282-d15dbf4be60b"
+ ],
+ "shared": false,
+ "id": "08c1c093-6337-4383-938e-2d9c6cac531a",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "43f98ed6-3e4a-4dfe-a1d4-3b7692641811",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "62acdf14-184d-4565-9660-e5f0ec454e79"
+ ],
+ "shared": false,
+ "id": "138305c9-2749-4291-b9ff-adb901a660f1",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "58a69068-075b-44a4-8829-52b233cafd70",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "d3f59dc9-f7c4-4183-8315-4fa3f5ca3202"
+ ],
+ "shared": false,
+ "id": "36af9906-300e-465a-85fc-716694de38c7",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "20e0314c-3d75-496a-ab7f-14fac20d6efd",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "l3_policy_id": "8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
+ "policy_target_groups": [
+ "2b2a44de-0992-4cf8-bbd6-b2e4c565e16d"
+ ],
+ "shared": false,
+ "id": "65fc10d2-f173-48db-ad50-72f29790c4d1",
+ "name": "test"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "852eb20e-edf2-48c4-a498-a776fe93bb4d",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "ab19a691-24e1-44e8-bc74-38b233305f52"
+ ],
+ "shared": false,
+ "id": "7dc44fbd-bc2b-4aa3-808c-0498183f5e21",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "e05accfc-c550-4528-bfe3-5a52382482fd",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "aab0872f-890f-46b1-b461-86877039c23e"
+ ],
+ "shared": false,
+ "id": "7eea106a-714d-41aa-ac69-de4c3f2e4b44",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "6f9a05c9-b162-4e75-8ae3-9fea2c5eee31",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "3ecf2178-25bb-4611-8a10-0dc074e90295"
+ ],
+ "shared": false,
+ "id": "9fe34254-28fd-4db2-bba6-f8c35c51617e",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "c0631952-3247-40ad-bb0e-8e7dc7c9feff",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "61073812-3994-40c2-96f0-6bff03804e47"
+ ],
+ "shared": false,
+ "id": "a8aea144-92d8-4830-ae9f-41af291adb42",
+ "name": "test-policy-target-group"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "e16c1817-463b-42ab-afbf-801434e845be",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "a72f99fa-68d1-494a-bc63-8b9e9b526f76"
+ ],
+ "shared": false,
+ "id": "c1cc9bd8-49a5-4699-aa26-b276ced4cc67",
+ "name": "sha1-test"
+ },
+ {
+ "description": "Implicitly created L2 policy",
+ "network_id": "1f3d040d-0cd4-4ae2-839d-bccbd718a58f",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "793c0497-39e8-4c76-a751-1d115d7a3b21"
+ ],
+ "shared": false,
+ "id": "d02b17ad-ef26-4a04-9071-82a5cfa100a6",
+ "name": "test-policy-target-group"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/l2_policy.json b/core-test/src/main/resources/network/gbp/l2_policy.json
index 22bf9a4b1..f64ae404b 100644
--- a/core-test/src/main/resources/network/gbp/l2_policy.json
+++ b/core-test/src/main/resources/network/gbp/l2_policy.json
@@ -1,14 +1,14 @@
{
- "l2_policy":{
- "description":"Implicitly created L2 policy",
- "network_id":"f9c1f545-6ea6-4b05-99d5-50f02ed3c640",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "1fb00129-06cf-48e5-8282-d15dbf4be60b"
- ],
- "shared":false,
- "id":"08c1c093-6337-4383-938e-2d9c6cac531a",
- "name":"test-policy-target-group"
- }
+ "l2_policy": {
+ "description": "Implicitly created L2 policy",
+ "network_id": "f9c1f545-6ea6-4b05-99d5-50f02ed3c640",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "1fb00129-06cf-48e5-8282-d15dbf4be60b"
+ ],
+ "shared": false,
+ "id": "08c1c093-6337-4383-938e-2d9c6cac531a",
+ "name": "test-policy-target-group"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/l2_policy_update.json b/core-test/src/main/resources/network/gbp/l2_policy_update.json
index 30468f4cb..411920140 100644
--- a/core-test/src/main/resources/network/gbp/l2_policy_update.json
+++ b/core-test/src/main/resources/network/gbp/l2_policy_update.json
@@ -1,14 +1,14 @@
{
- "l2_policy":{
- "description":"Implicitly created L2 policy-update",
- "network_id":"f9c1f545-6ea6-4b05-99d5-50f02ed3c640",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "l3_policy_id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "policy_target_groups":[
- "1fb00129-06cf-48e5-8282-d15dbf4be60b"
- ],
- "shared":false,
- "id":"08c1c093-6337-4383-938e-2d9c6cac531a",
- "name":"test-policy-target-group-update"
- }
+ "l2_policy": {
+ "description": "Implicitly created L2 policy-update",
+ "network_id": "f9c1f545-6ea6-4b05-99d5-50f02ed3c640",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "l3_policy_id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "policy_target_groups": [
+ "1fb00129-06cf-48e5-8282-d15dbf4be60b"
+ ],
+ "shared": false,
+ "id": "08c1c093-6337-4383-938e-2d9c6cac531a",
+ "name": "test-policy-target-group-update"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/l3_policies.json b/core-test/src/main/resources/network/gbp/l3_policies.json
index eee034060..d8baf71d8 100644
--- a/core-test/src/main/resources/network/gbp/l3_policies.json
+++ b/core-test/src/main/resources/network/gbp/l3_policies.json
@@ -1,52 +1,50 @@
{
- "l3_policies":[
- {
- "description":"Implicitly created L3 policy",
- "routers":[
-
- ],
- "subnet_prefix_length":24,
- "l2_policies":[
- "65fc10d2-f173-48db-ad50-72f29790c4d1"
- ],
- "id":"8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
- "ip_pool":"192.168.0.0/16",
- "name":"default",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "ip_version":4,
- "shared":false,
- "external_segments":{
-
- }
- },
- {
- "description":"Implicitly created L3 policy",
- "routers":[
- "d0b07840-a86c-4848-b61c-a8febc196feb"
- ],
- "subnet_prefix_length":24,
- "l2_policies":[
- "08c1c093-6337-4383-938e-2d9c6cac531a",
- "138305c9-2749-4291-b9ff-adb901a660f1",
- "36af9906-300e-465a-85fc-716694de38c7",
- "7dc44fbd-bc2b-4aa3-808c-0498183f5e21",
- "7eea106a-714d-41aa-ac69-de4c3f2e4b44",
- "9fe34254-28fd-4db2-bba6-f8c35c51617e",
- "a8aea144-92d8-4830-ae9f-41af291adb42",
- "c1cc9bd8-49a5-4699-aa26-b276ced4cc67",
- "d02b17ad-ef26-4a04-9071-82a5cfa100a6"
- ],
- "id":"da7083c6-3d5b-450c-8163-0b156d55eba6",
- "ip_pool":"192.168.0.0/16",
- "name":"default",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "ip_version":4,
- "shared":false,
- "external_segments":{
- "fff89eb8-8f9d-49a2-b66c-ad75d9a95287":[
- "169.254.0.2"
- ]
- }
+ "l3_policies": [
+ {
+ "description": "Implicitly created L3 policy",
+ "routers": [
+ ],
+ "subnet_prefix_length": 24,
+ "l2_policies": [
+ "65fc10d2-f173-48db-ad50-72f29790c4d1"
+ ],
+ "id": "8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
+ "ip_pool": "192.168.0.0/16",
+ "name": "default",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "ip_version": 4,
+ "shared": false,
+ "external_segments": {
}
- ]
+ },
+ {
+ "description": "Implicitly created L3 policy",
+ "routers": [
+ "d0b07840-a86c-4848-b61c-a8febc196feb"
+ ],
+ "subnet_prefix_length": 24,
+ "l2_policies": [
+ "08c1c093-6337-4383-938e-2d9c6cac531a",
+ "138305c9-2749-4291-b9ff-adb901a660f1",
+ "36af9906-300e-465a-85fc-716694de38c7",
+ "7dc44fbd-bc2b-4aa3-808c-0498183f5e21",
+ "7eea106a-714d-41aa-ac69-de4c3f2e4b44",
+ "9fe34254-28fd-4db2-bba6-f8c35c51617e",
+ "a8aea144-92d8-4830-ae9f-41af291adb42",
+ "c1cc9bd8-49a5-4699-aa26-b276ced4cc67",
+ "d02b17ad-ef26-4a04-9071-82a5cfa100a6"
+ ],
+ "id": "da7083c6-3d5b-450c-8163-0b156d55eba6",
+ "ip_pool": "192.168.0.0/16",
+ "name": "default",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "ip_version": 4,
+ "shared": false,
+ "external_segments": {
+ "fff89eb8-8f9d-49a2-b66c-ad75d9a95287": [
+ "169.254.0.2"
+ ]
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/l3_policy.json b/core-test/src/main/resources/network/gbp/l3_policy.json
index 7b8cba552..636d1c653 100644
--- a/core-test/src/main/resources/network/gbp/l3_policy.json
+++ b/core-test/src/main/resources/network/gbp/l3_policy.json
@@ -1,21 +1,19 @@
{
- "l3_policy":{
- "description":"Implicitly created L3 policy",
- "routers":[
-
- ],
- "subnet_prefix_length":24,
- "l2_policies":[
- "65fc10d2-f173-48db-ad50-72f29790c4d1"
- ],
- "id":"8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
- "ip_pool":"192.168.0.0/16",
- "name":"default",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "ip_version":4,
- "shared":false,
- "external_segments":{
-
- }
- }
+ "l3_policy": {
+ "description": "Implicitly created L3 policy",
+ "routers": [
+ ],
+ "subnet_prefix_length": 24,
+ "l2_policies": [
+ "65fc10d2-f173-48db-ad50-72f29790c4d1"
+ ],
+ "id": "8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
+ "ip_pool": "192.168.0.0/16",
+ "name": "default",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "ip_version": 4,
+ "shared": false,
+ "external_segments": {
+ }
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/l3_policy_update.json b/core-test/src/main/resources/network/gbp/l3_policy_update.json
index 14c3a6bdd..8afe63f2a 100644
--- a/core-test/src/main/resources/network/gbp/l3_policy_update.json
+++ b/core-test/src/main/resources/network/gbp/l3_policy_update.json
@@ -1,21 +1,19 @@
{
- "l3_policy":{
- "description":"Implicitly created L3 policy-update",
- "routers":[
-
- ],
- "subnet_prefix_length":24,
- "l2_policies":[
- "65fc10d2-f173-48db-ad50-72f29790c4d1"
- ],
- "id":"8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
- "ip_pool":"192.168.0.0/16",
- "name":"default-update",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "ip_version":4,
- "shared":false,
- "external_segments":{
-
- }
- }
+ "l3_policy": {
+ "description": "Implicitly created L3 policy-update",
+ "routers": [
+ ],
+ "subnet_prefix_length": 24,
+ "l2_policies": [
+ "65fc10d2-f173-48db-ad50-72f29790c4d1"
+ ],
+ "id": "8a45f76f-888b-4f3b-ad00-88c3b0ba9e6d",
+ "ip_pool": "192.168.0.0/16",
+ "name": "default-update",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "ip_version": 4,
+ "shared": false,
+ "external_segments": {
+ }
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/nat_pool.json b/core-test/src/main/resources/network/gbp/nat_pool.json
index dc45383d2..4ec4295de 100644
--- a/core-test/src/main/resources/network/gbp/nat_pool.json
+++ b/core-test/src/main/resources/network/gbp/nat_pool.json
@@ -1,13 +1,13 @@
{
- "nat_pool":{
- "subnet_id":"0703a1f7-f641-41a5-abd0-c8302bf01af8",
- "name":"ptg_nat_pool",
- "external_segment_id":"fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
- "shared":true,
- "ip_version":4,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "ip_pool":"1.101.2.112/28",
- "id":"e2d4fce7-4c55-497b-ac4c-290dd202c71a",
- "description":""
- }
+ "nat_pool": {
+ "subnet_id": "0703a1f7-f641-41a5-abd0-c8302bf01af8",
+ "name": "ptg_nat_pool",
+ "external_segment_id": "fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
+ "shared": true,
+ "ip_version": 4,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "ip_pool": "1.101.2.112/28",
+ "id": "e2d4fce7-4c55-497b-ac4c-290dd202c71a",
+ "description": ""
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/nat_pool_update.json b/core-test/src/main/resources/network/gbp/nat_pool_update.json
index d35952f55..81d2d1b94 100644
--- a/core-test/src/main/resources/network/gbp/nat_pool_update.json
+++ b/core-test/src/main/resources/network/gbp/nat_pool_update.json
@@ -1,13 +1,13 @@
{
- "nat_pool":{
- "subnet_id":"0703a1f7-f641-41a5-abd0-c8302bf01af8",
- "name":"ptg_nat_pool-update",
- "external_segment_id":"fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
- "shared":true,
- "ip_version":4,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "ip_pool":"1.101.2.112/28",
- "id":"e2d4fce7-4c55-497b-ac4c-290dd202c71a",
- "description":""
- }
+ "nat_pool": {
+ "subnet_id": "0703a1f7-f641-41a5-abd0-c8302bf01af8",
+ "name": "ptg_nat_pool-update",
+ "external_segment_id": "fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
+ "shared": true,
+ "ip_version": 4,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "ip_pool": "1.101.2.112/28",
+ "id": "e2d4fce7-4c55-497b-ac4c-290dd202c71a",
+ "description": ""
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/nat_pools.json b/core-test/src/main/resources/network/gbp/nat_pools.json
index 641f2b331..c2289c497 100644
--- a/core-test/src/main/resources/network/gbp/nat_pools.json
+++ b/core-test/src/main/resources/network/gbp/nat_pools.json
@@ -1,27 +1,26 @@
{
- "nat_pools":[
- {
- "subnet_id":"0703a1f7-f641-41a5-abd0-c8302bf01af8",
- "name":"ptg_nat_pool-1",
- "external_segment_id":"fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
- "shared":true,
- "ip_version":4,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "ip_pool":"1.101.2.112/28",
- "id":"f2e4fce7-4c55-497b-ac4c-290dd202c71a",
- "description":""
- },
- {
- "subnet_id":"1233a1f7-f641-41a5-abd0-c8302bf01af8",
- "name":"ptg_nat_pool-2",
- "external_segment_id":"fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
- "shared":true,
- "ip_version":4,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "ip_pool":"1.102.3.113/28",
- "id":"e2d4fce7-4c55-497b-ac4c-290dd202c71a",
- "description":""
- }
-
- ]
+ "nat_pools": [
+ {
+ "subnet_id": "0703a1f7-f641-41a5-abd0-c8302bf01af8",
+ "name": "ptg_nat_pool-1",
+ "external_segment_id": "fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
+ "shared": true,
+ "ip_version": 4,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "ip_pool": "1.101.2.112/28",
+ "id": "f2e4fce7-4c55-497b-ac4c-290dd202c71a",
+ "description": ""
+ },
+ {
+ "subnet_id": "1233a1f7-f641-41a5-abd0-c8302bf01af8",
+ "name": "ptg_nat_pool-2",
+ "external_segment_id": "fff89eb8-8f9d-49a2-b66c-ad75d9a95287",
+ "shared": true,
+ "ip_version": 4,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "ip_pool": "1.102.3.113/28",
+ "id": "e2d4fce7-4c55-497b-ac4c-290dd202c71a",
+ "description": ""
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/network_service_policies.json b/core-test/src/main/resources/network/gbp/network_service_policies.json
index 463ced722..8c253c547 100644
--- a/core-test/src/main/resources/network/gbp/network_service_policies.json
+++ b/core-test/src/main/resources/network/gbp/network_service_policies.json
@@ -1,38 +1,36 @@
{
- "network_service_policies":[
+ "network_service_policies": [
{
- "description":"Second network service profile",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "network_service_params":[
+ "description": "Second network service profile",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "network_service_params": [
{
- "type":"ip_pool",
- "name":"param2",
- "value":"nat_pool"
+ "type": "ip_pool",
+ "name": "param2",
+ "value": "nat_pool"
}
],
- "policy_target_groups":[
-
+ "policy_target_groups": [
],
- "shared":false,
- "id":"d98e3cd5-3eb4-41ba-9069-6f5867ceb162",
- "name":"Test2"
+ "shared": false,
+ "id": "d98e3cd5-3eb4-41ba-9069-6f5867ceb162",
+ "name": "Test2"
},
{
- "description":"First network service profile",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "network_service_params":[
+ "description": "First network service profile",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "network_service_params": [
{
- "type":"ip_single",
- "name":"param1",
- "value":"self_subnet"
+ "type": "ip_single",
+ "name": "param1",
+ "value": "self_subnet"
}
],
- "policy_target_groups":[
-
+ "policy_target_groups": [
],
- "shared":true,
- "id":"e252a688-2b09-4aab-ae4a-ad57fd9154f2",
- "name":"Test1"
+ "shared": true,
+ "id": "e252a688-2b09-4aab-ae4a-ad57fd9154f2",
+ "name": "Test1"
}
]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/network_service_policy.json b/core-test/src/main/resources/network/gbp/network_service_policy.json
index 17f2b2ad2..1d0cbb640 100644
--- a/core-test/src/main/resources/network/gbp/network_service_policy.json
+++ b/core-test/src/main/resources/network/gbp/network_service_policy.json
@@ -1,19 +1,18 @@
{
"network_service_policy": {
- "description":"Second network service profile",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "network_service_params":[
- {
- "type":"ip_pool",
- "name":"param2",
- "value":"nat_pool"
- }
- ],
- "policy_target_groups":[
-
- ],
- "shared":false,
- "id":"d98e3cd5-3eb4-41ba-9069-6f5867ceb162",
- "name":"Test2"
- }
+ "description": "Second network service profile",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "network_service_params": [
+ {
+ "type": "ip_pool",
+ "name": "param2",
+ "value": "nat_pool"
+ }
+ ],
+ "policy_target_groups": [
+ ],
+ "shared": false,
+ "id": "d98e3cd5-3eb4-41ba-9069-6f5867ceb162",
+ "name": "Test2"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/network_service_policy_update.json b/core-test/src/main/resources/network/gbp/network_service_policy_update.json
index f8b40def6..807d0af43 100644
--- a/core-test/src/main/resources/network/gbp/network_service_policy_update.json
+++ b/core-test/src/main/resources/network/gbp/network_service_policy_update.json
@@ -1,19 +1,18 @@
{
"network_service_policy": {
- "description":"Updated network service profile",
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "network_service_params":[
+ "description": "Updated network service profile",
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "network_service_params": [
{
- "type":"ip_pool",
- "name":"param",
- "value":"nat_pool"
+ "type": "ip_pool",
+ "name": "param",
+ "value": "nat_pool"
}
],
- "policy_target_groups":[
-
+ "policy_target_groups": [
],
- "shared":false,
- "id":"d98e3cd5-3eb4-41ba-9069-6f5867ceb162",
- "name":"TestUpdate"
+ "shared": false,
+ "id": "d98e3cd5-3eb4-41ba-9069-6f5867ceb162",
+ "name": "TestUpdate"
}
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_action.json b/core-test/src/main/resources/network/gbp/policy_action.json
index 316767d9d..2d7788d2d 100644
--- a/core-test/src/main/resources/network/gbp/policy_action.json
+++ b/core-test/src/main/resources/network/gbp/policy_action.json
@@ -1,11 +1,11 @@
{
- "policy_action":{
- "action_value":null,
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "action_type":"allow",
- "shared":false,
- "id":"b25bbad7-224b-4810-ae1c-7d10fb4468b5",
- "name":"allow"
- }
+ "policy_action": {
+ "action_value": null,
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "action_type": "allow",
+ "shared": false,
+ "id": "b25bbad7-224b-4810-ae1c-7d10fb4468b5",
+ "name": "allow"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_action_update.json b/core-test/src/main/resources/network/gbp/policy_action_update.json
index c0773efb9..d29be8908 100644
--- a/core-test/src/main/resources/network/gbp/policy_action_update.json
+++ b/core-test/src/main/resources/network/gbp/policy_action_update.json
@@ -1,11 +1,11 @@
{
- "policy_action":{
- "action_value":null,
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "action_type":"redirect",
- "shared":false,
- "id":"b25bbad7-224b-4810-ae1c-7d10fb4468b5",
- "name":"redirect"
- }
+ "policy_action": {
+ "action_value": null,
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "action_type": "redirect",
+ "shared": false,
+ "id": "b25bbad7-224b-4810-ae1c-7d10fb4468b5",
+ "name": "redirect"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_actions.json b/core-test/src/main/resources/network/gbp/policy_actions.json
index b8728bb51..8b97a7154 100644
--- a/core-test/src/main/resources/network/gbp/policy_actions.json
+++ b/core-test/src/main/resources/network/gbp/policy_actions.json
@@ -1,22 +1,22 @@
{
- "policy_actions":[
- {
- "action_value":null,
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "action_type":"allow",
- "shared":false,
- "id":"b25bbad7-224b-4810-ae1c-7d10fb4468b5",
- "name":"allow"
- },
- {
- "action_value":null,
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "action_type":"redirect",
- "shared":false,
- "id":"f26bbad7-224b-4810-ae1c-7d10fb4468b5",
- "name":"redirect"
- }
- ]
+ "policy_actions": [
+ {
+ "action_value": null,
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "action_type": "allow",
+ "shared": false,
+ "id": "b25bbad7-224b-4810-ae1c-7d10fb4468b5",
+ "name": "allow"
+ },
+ {
+ "action_value": null,
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "action_type": "redirect",
+ "shared": false,
+ "id": "f26bbad7-224b-4810-ae1c-7d10fb4468b5",
+ "name": "redirect"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_classifier.json b/core-test/src/main/resources/network/gbp/policy_classifier.json
index c54f5fcde..3ac8ed7c9 100644
--- a/core-test/src/main/resources/network/gbp/policy_classifier.json
+++ b/core-test/src/main/resources/network/gbp/policy_classifier.json
@@ -1,12 +1,12 @@
{
- "policy_classifier":{
- "direction":"bi",
- "protocol":"icmp",
- "name":"icmp",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "port_range":null,
- "shared":false,
- "id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "description":""
- }
+ "policy_classifier": {
+ "direction": "bi",
+ "protocol": "icmp",
+ "name": "icmp",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "port_range": null,
+ "shared": false,
+ "id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "description": ""
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_classifier_update.json b/core-test/src/main/resources/network/gbp/policy_classifier_update.json
index 811c1e5af..ac86435e4 100644
--- a/core-test/src/main/resources/network/gbp/policy_classifier_update.json
+++ b/core-test/src/main/resources/network/gbp/policy_classifier_update.json
@@ -1,12 +1,12 @@
{
- "policy_classifier":{
- "direction":"bi",
- "protocol":"icmp",
- "name":"icmp",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "port_range":null,
- "shared":false,
- "id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "description":"icmp-update"
- }
+ "policy_classifier": {
+ "direction": "bi",
+ "protocol": "icmp",
+ "name": "icmp",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "port_range": null,
+ "shared": false,
+ "id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "description": "icmp-update"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_classifiers.json b/core-test/src/main/resources/network/gbp/policy_classifiers.json
index 969e17287..951ffdb27 100644
--- a/core-test/src/main/resources/network/gbp/policy_classifiers.json
+++ b/core-test/src/main/resources/network/gbp/policy_classifiers.json
@@ -1,24 +1,24 @@
{
- "policy_classifiers":[
- {
- "direction":"bi",
- "protocol":"icmp",
- "name":"icmp",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "port_range":null,
- "shared":false,
- "id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "description":""
- },
- {
- "direction":"bi",
- "protocol":"tcp",
- "name":"tcp-22-classifier",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "port_range":"22",
- "shared":false,
- "id":"48c702a8-80e0-4781-a8d5-80ae7de53cdc",
- "description":""
- }
- ]
+ "policy_classifiers": [
+ {
+ "direction": "bi",
+ "protocol": "icmp",
+ "name": "icmp",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "port_range": null,
+ "shared": false,
+ "id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "description": ""
+ },
+ {
+ "direction": "bi",
+ "protocol": "tcp",
+ "name": "tcp-22-classifier",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "port_range": "22",
+ "shared": false,
+ "id": "48c702a8-80e0-4781-a8d5-80ae7de53cdc",
+ "description": ""
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_rule.json b/core-test/src/main/resources/network/gbp/policy_rule.json
index 52c36209c..0460ab715 100644
--- a/core-test/src/main/resources/network/gbp/policy_rule.json
+++ b/core-test/src/main/resources/network/gbp/policy_rule.json
@@ -1,14 +1,14 @@
{
- "policy_rule":{
- "description":"",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":true,
- "shared":false,
- "id":"059909d1-7f20-40cf-a78a-27c340a5aaac",
- "name":"icmp-rule"
- }
+ "policy_rule": {
+ "description": "",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": true,
+ "shared": false,
+ "id": "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "name": "icmp-rule"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_rule_set.json b/core-test/src/main/resources/network/gbp/policy_rule_set.json
index a6ab52515..0f898921d 100644
--- a/core-test/src/main/resources/network/gbp/policy_rule_set.json
+++ b/core-test/src/main/resources/network/gbp/policy_rule_set.json
@@ -1,20 +1,19 @@
{
- "policy_rule_set":{
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "e3c53e40-2035-47e1-9fef-90e7f4178207"
- ],
- "parent_id":null,
- "shared":false,
- "id":"1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- }
+ "policy_rule_set": {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_rule_set_update.json b/core-test/src/main/resources/network/gbp/policy_rule_set_update.json
index ba8e526f6..19c69ca7f 100644
--- a/core-test/src/main/resources/network/gbp/policy_rule_set_update.json
+++ b/core-test/src/main/resources/network/gbp/policy_rule_set_update.json
@@ -1,20 +1,19 @@
{
- "policy_rule_set":{
- "description":"test-rule-set-desc-update",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "e3c53e40-2035-47e1-9fef-90e7f4178207"
- ],
- "parent_id":null,
- "shared":false,
- "id":"1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set-update"
- }
+ "policy_rule_set": {
+ "description": "test-rule-set-desc-update",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set-update"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_rule_sets.json b/core-test/src/main/resources/network/gbp/policy_rule_sets.json
index 2e26f509e..220c4dea1 100644
--- a/core-test/src/main/resources/network/gbp/policy_rule_sets.json
+++ b/core-test/src/main/resources/network/gbp/policy_rule_sets.json
@@ -1,188 +1,178 @@
{
- "policy_rule_sets":[
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "e3c53e40-2035-47e1-9fef-90e7f4178207"
- ],
- "parent_id":null,
- "shared":false,
- "id":"1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "090e386e-d666-4970-b7ae-96c3dc1de201",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "5e36495c-e120-41b9-91b5-e416b3679e80",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
- "e3c53e40-2035-47e1-9fef-90e7f4178207",
- "ebf19fd2-73c0-43fa-9276-9690d5bc7467"
- ],
- "parent_id":null,
- "shared":false,
- "id":"3d8a2e5b-e5c8-4f53-b1e3-75602398397d",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06"
- ],
- "parent_id":null,
- "shared":false,
- "id":"408a5153-efc5-4bea-a3ef-2c838e330254",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2"
- ],
- "parent_id":null,
- "shared":false,
- "id":"590f005f-de21-4466-905f-457487cc9a60",
- "child_policy_rule_sets":[
-
- ],
- "name":"tcp-22"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "090e386e-d666-4970-b7ae-96c3dc1de201",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "5e36495c-e120-41b9-91b5-e416b3679e80",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "9ddb8b9c-f630-4e0b-821f-26ad4b43762b",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
- "e3c53e40-2035-47e1-9fef-90e7f4178207",
- "ebf19fd2-73c0-43fa-9276-9690d5bc7467"
- ],
- "parent_id":null,
- "shared":false,
- "id":"b2ab358d-93fb-4ffc-bbb7-b6c582042520",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "090e386e-d666-4970-b7ae-96c3dc1de201",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
- "e3c53e40-2035-47e1-9fef-90e7f4178207"
- ],
- "parent_id":null,
- "shared":false,
- "id":"b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "e3c53e40-2035-47e1-9fef-90e7f4178207"
- ],
- "parent_id":null,
- "shared":false,
- "id":"c3207474-19ee-4241-81e5-9e20995f2065",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac"
- ],
- "parent_id":null,
- "shared":false,
- "id":"de829eb3-4867-442f-bac7-c59906c610b0",
- "child_policy_rule_sets":[
-
- ],
- "name":"icmp-allow"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "090e386e-d666-4970-b7ae-96c3dc1de201",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
- "e3c53e40-2035-47e1-9fef-90e7f4178207",
- "ebf19fd2-73c0-43fa-9276-9690d5bc7467"
- ],
- "parent_id":null,
- "shared":false,
- "id":"ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- },
- {
- "description":"test-rule-set-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_rules":[
- "059909d1-7f20-40cf-a78a-27c340a5aaac",
- "090e386e-d666-4970-b7ae-96c3dc1de201",
- "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "e3c53e40-2035-47e1-9fef-90e7f4178207"
- ],
- "parent_id":null,
- "shared":false,
- "id":"f19a90af-0103-429d-8118-3920bf2f27db",
- "child_policy_rule_sets":[
-
- ],
- "name":"test-rule-set"
- }
- ]
+ "policy_rule_sets": [
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "090e386e-d666-4970-b7ae-96c3dc1de201",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "5e36495c-e120-41b9-91b5-e416b3679e80",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207",
+ "ebf19fd2-73c0-43fa-9276-9690d5bc7467"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "3d8a2e5b-e5c8-4f53-b1e3-75602398397d",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "590f005f-de21-4466-905f-457487cc9a60",
+ "child_policy_rule_sets": [
+ ],
+ "name": "tcp-22"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "090e386e-d666-4970-b7ae-96c3dc1de201",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "5e36495c-e120-41b9-91b5-e416b3679e80",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "9ddb8b9c-f630-4e0b-821f-26ad4b43762b",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207",
+ "ebf19fd2-73c0-43fa-9276-9690d5bc7467"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "b2ab358d-93fb-4ffc-bbb7-b6c582042520",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "090e386e-d666-4970-b7ae-96c3dc1de201",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "c3207474-19ee-4241-81e5-9e20995f2065",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "de829eb3-4867-442f-bac7-c59906c610b0",
+ "child_policy_rule_sets": [
+ ],
+ "name": "icmp-allow"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "090e386e-d666-4970-b7ae-96c3dc1de201",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207",
+ "ebf19fd2-73c0-43fa-9276-9690d5bc7467"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ },
+ {
+ "description": "test-rule-set-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_rules": [
+ "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "090e386e-d666-4970-b7ae-96c3dc1de201",
+ "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "e3c53e40-2035-47e1-9fef-90e7f4178207"
+ ],
+ "parent_id": null,
+ "shared": false,
+ "id": "f19a90af-0103-429d-8118-3920bf2f27db",
+ "child_policy_rule_sets": [
+ ],
+ "name": "test-rule-set"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_rule_update.json b/core-test/src/main/resources/network/gbp/policy_rule_update.json
index 9e1364a2d..304488bc2 100644
--- a/core-test/src/main/resources/network/gbp/policy_rule_update.json
+++ b/core-test/src/main/resources/network/gbp/policy_rule_update.json
@@ -1,14 +1,14 @@
{
- "policy_rule":{
- "description":"icmp-rule-desc-update",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":true,
- "shared":false,
- "id":"059909d1-7f20-40cf-a78a-27c340a5aaac",
- "name":"icmp-rule-update"
- }
+ "policy_rule": {
+ "description": "icmp-rule-desc-update",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": true,
+ "shared": false,
+ "id": "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "name": "icmp-rule-update"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_rules.json b/core-test/src/main/resources/network/gbp/policy_rules.json
index 3271f456f..f34f91c4f 100644
--- a/core-test/src/main/resources/network/gbp/policy_rules.json
+++ b/core-test/src/main/resources/network/gbp/policy_rules.json
@@ -1,124 +1,124 @@
{
- "policy_rules":[
- {
- "description":"",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":true,
- "shared":false,
- "id":"059909d1-7f20-40cf-a78a-27c340a5aaac",
- "name":"icmp-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"090e386e-d666-4970-b7ae-96c3dc1de201",
- "name":"test-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"1fc1a2fc-4701-49dc-95b1-01aac2101eee",
- "name":"test-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"5e36495c-e120-41b9-91b5-e416b3679e80",
- "name":"test-rule"
- },
- {
- "description":"",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"48c702a8-80e0-4781-a8d5-80ae7de53cdc",
- "enabled":true,
- "shared":false,
- "id":"8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
- "name":"tcp-22-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"9ddb8b9c-f630-4e0b-821f-26ad4b43762b",
- "name":"test-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
- "name":"test-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"cafef68e-a7c0-4c86-8a2f-1ade01388b61",
- "name":"test-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"e3c53e40-2035-47e1-9fef-90e7f4178207",
- "name":"test-rule"
- },
- {
- "description":"test-rule-desc",
- "policy_actions":[
- "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
- ],
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_classifier_id":"36e41adb-0b9b-4a11-abd5-66e5386139d4",
- "enabled":false,
- "shared":false,
- "id":"ebf19fd2-73c0-43fa-9276-9690d5bc7467",
- "name":"test-rule"
- }
- ]
+ "policy_rules": [
+ {
+ "description": "",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": true,
+ "shared": false,
+ "id": "059909d1-7f20-40cf-a78a-27c340a5aaac",
+ "name": "icmp-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "090e386e-d666-4970-b7ae-96c3dc1de201",
+ "name": "test-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "1fc1a2fc-4701-49dc-95b1-01aac2101eee",
+ "name": "test-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "5e36495c-e120-41b9-91b5-e416b3679e80",
+ "name": "test-rule"
+ },
+ {
+ "description": "",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "48c702a8-80e0-4781-a8d5-80ae7de53cdc",
+ "enabled": true,
+ "shared": false,
+ "id": "8f993007-1f2a-4ae1-9882-2fddec5f3bd2",
+ "name": "tcp-22-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "9ddb8b9c-f630-4e0b-821f-26ad4b43762b",
+ "name": "test-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "ab3e99cc-ffb4-48c4-9111-c4c4721c9d06",
+ "name": "test-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "cafef68e-a7c0-4c86-8a2f-1ade01388b61",
+ "name": "test-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "e3c53e40-2035-47e1-9fef-90e7f4178207",
+ "name": "test-rule"
+ },
+ {
+ "description": "test-rule-desc",
+ "policy_actions": [
+ "b25bbad7-224b-4810-ae1c-7d10fb4468b5"
+ ],
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_classifier_id": "36e41adb-0b9b-4a11-abd5-66e5386139d4",
+ "enabled": false,
+ "shared": false,
+ "id": "ebf19fd2-73c0-43fa-9276-9690d5bc7467",
+ "name": "test-rule"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_target.json b/core-test/src/main/resources/network/gbp/policy_target.json
index bdf596ad0..5d76fd559 100644
--- a/core-test/src/main/resources/network/gbp/policy_target.json
+++ b/core-test/src/main/resources/network/gbp/policy_target.json
@@ -1,11 +1,11 @@
{
- "policy_target":{
- "description":"test-policytarget-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"36af8850-3514-4343-8293-9f9faae980d6",
- "id":"0d65eebe-4efe-456e-aec3-7856e4e839b4",
- "name":"test-policytarget"
- }
+ "policy_target": {
+ "description": "test-policytarget-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "36af8850-3514-4343-8293-9f9faae980d6",
+ "id": "0d65eebe-4efe-456e-aec3-7856e4e839b4",
+ "name": "test-policytarget"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_target_group.json b/core-test/src/main/resources/network/gbp/policy_target_group.json
index ec1778255..3045d781a 100644
--- a/core-test/src/main/resources/network/gbp/policy_target_group.json
+++ b/core-test/src/main/resources/network/gbp/policy_target_group.json
@@ -1,38 +1,37 @@
{
- "policy_target_group":{
- "subnets":[
- "a9eb39d9-9dd4-4ad5-be9d-b96456d64078"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "f19a90af-0103-429d-8118-3920bf2f27db",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "l2_policy_id":"a8aea144-92d8-4830-ae9f-41af291adb42",
- "id":"61073812-3994-40c2-96f0-6bff03804e47",
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "f19a90af-0103-429d-8118-3920bf2f27db",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- }
+ "policy_target_group": {
+ "subnets": [
+ "a9eb39d9-9dd4-4ad5-be9d-b96456d64078"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "f19a90af-0103-429d-8118-3920bf2f27db",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "l2_policy_id": "a8aea144-92d8-4830-ae9f-41af291adb42",
+ "id": "61073812-3994-40c2-96f0-6bff03804e47",
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "f19a90af-0103-429d-8118-3920bf2f27db",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_target_group_update.json b/core-test/src/main/resources/network/gbp/policy_target_group_update.json
index 63a9ae552..359db9abf 100644
--- a/core-test/src/main/resources/network/gbp/policy_target_group_update.json
+++ b/core-test/src/main/resources/network/gbp/policy_target_group_update.json
@@ -1,38 +1,37 @@
{
- "policy_target_group":{
- "subnets":[
- "a9eb39d9-9dd4-4ad5-be9d-b96456d64078"
- ],
- "description":"test-policy-target-group-desc-update",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "f19a90af-0103-429d-8118-3920bf2f27db",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "l2_policy_id":"a8aea144-92d8-4830-ae9f-41af291adb42",
- "id":"61073812-3994-40c2-96f0-6bff03804e47",
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "f19a90af-0103-429d-8118-3920bf2f27db",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "name":"test-policy-target-group-update",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- }
+ "policy_target_group": {
+ "subnets": [
+ "a9eb39d9-9dd4-4ad5-be9d-b96456d64078"
+ ],
+ "description": "test-policy-target-group-desc-update",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "f19a90af-0103-429d-8118-3920bf2f27db",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "l2_policy_id": "a8aea144-92d8-4830-ae9f-41af291adb42",
+ "id": "61073812-3994-40c2-96f0-6bff03804e47",
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "f19a90af-0103-429d-8118-3920bf2f27db",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "name": "test-policy-target-group-update",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_target_groups.json b/core-test/src/main/resources/network/gbp/policy_target_groups.json
index c11459380..02783b906 100644
--- a/core-test/src/main/resources/network/gbp/policy_target_groups.json
+++ b/core-test/src/main/resources/network/gbp/policy_target_groups.json
@@ -1,240 +1,231 @@
{
- "policy_target_groups":[
- {
- "subnets":[
- "21d17ece-2d2a-4a48-b274-5889db2dc6cf"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "l2_policy_id":"08c1c093-6337-4383-938e-2d9c6cac531a",
- "id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "consumed_policy_rule_sets":[
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
- "53067983-9d3e-4109-97a6-e70cd656aedc",
- "d448d8e8-0297-4d91-8fad-bb53d12cd999"
- ],
- "shared":false
- },
- {
- "subnets":[
- "c3fe0204-182f-4758-8ff7-79e5e859f17e"
- ],
- "description":"",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
-
- ],
- "l2_policy_id":"65fc10d2-f173-48db-ad50-72f29790c4d1",
- "id":"2b2a44de-0992-4cf8-bbd6-b2e4c565e16d",
- "consumed_policy_rule_sets":[
-
- ],
- "name":"test",
- "service_management":false,
- "tenant_id":"abc0b828ace347049b0835f4a4d10040",
- "policy_targets":[
-
- ],
- "shared":false
- },
- {
- "subnets":[
- "c6b667bf-f9cb-4f12-ae75-c9e76f9d491d"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0",
- "f19a90af-0103-429d-8118-3920bf2f27db"
- ],
- "l2_policy_id":"9fe34254-28fd-4db2-bba6-f8c35c51617e",
- "id":"3ecf2178-25bb-4611-8a10-0dc074e90295",
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0",
- "f19a90af-0103-429d-8118-3920bf2f27db"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- },
- {
- "subnets":[
- "a9eb39d9-9dd4-4ad5-be9d-b96456d64078"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "f19a90af-0103-429d-8118-3920bf2f27db"
- ],
- "l2_policy_id":"a8aea144-92d8-4830-ae9f-41af291adb42",
- "id":"61073812-3994-40c2-96f0-6bff03804e47",
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "b8a116d4-d674-438c-9fc6-973f2d6f5019",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0",
- "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
- "f19a90af-0103-429d-8118-3920bf2f27db"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- },
- {
- "subnets":[
- "e3111e17-8b29-46af-9385-41b1fb65b7ac"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "l2_policy_id":"d02b17ad-ef26-4a04-9071-82a5cfa100a6",
- "id":"793c0497-39e8-4c76-a751-1d115d7a3b21",
- "consumed_policy_rule_sets":[
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- },
- {
- "subnets":[
- "9aadf5e8-5353-4681-87b2-0852fe5ce535"
- ],
- "description":"",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "590f005f-de21-4466-905f-457487cc9a60",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "l2_policy_id":"c1cc9bd8-49a5-4699-aa26-b276ced4cc67",
- "id":"a72f99fa-68d1-494a-bc63-8b9e9b526f76",
- "consumed_policy_rule_sets":[
-
- ],
- "name":"sha1-test",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
- "7f518810-fa72-4b3d-8e28-c98970c868d5",
- "8b3eb48f-1f12-43fb-806d-36890935dcdd",
- "96e32649-1c39-4083-aeec-05d87c02a95a",
- "b129c48a-94e1-4894-af44-1b46acb7a405",
- "e29bb234-ee3c-4dc4-8b55-eae90da9d11a"
- ],
- "shared":false
- },
- {
- "subnets":[
- "cdeefff4-2b54-4ed4-bd83-fd73c6f63691"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "l2_policy_id":"7eea106a-714d-41aa-ac69-de4c3f2e4b44",
- "id":"aab0872f-890f-46b1-b461-86877039c23e",
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- },
- {
- "subnets":[
- "af933a15-dafc-4ad5-aa1e-6ad84df85d30"
- ],
- "description":"test-policy-target-group-desc",
- "network_service_policy_id":null,
- "provided_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0",
- "f19a90af-0103-429d-8118-3920bf2f27db"
- ],
- "l2_policy_id":"7dc44fbd-bc2b-4aa3-808c-0498183f5e21",
- "id":"ab19a691-24e1-44e8-bc74-38b233305f52",
- "consumed_policy_rule_sets":[
- "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
- "408a5153-efc5-4bea-a3ef-2c838e330254",
- "590f005f-de21-4466-905f-457487cc9a60",
- "c3207474-19ee-4241-81e5-9e20995f2065",
- "de829eb3-4867-442f-bac7-c59906c610b0",
- "f19a90af-0103-429d-8118-3920bf2f27db"
- ],
- "name":"test-policy-target-group",
- "service_management":false,
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_targets":[
-
- ],
- "shared":false
- }
- ]
+ "policy_target_groups": [
+ {
+ "subnets": [
+ "21d17ece-2d2a-4a48-b274-5889db2dc6cf"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "l2_policy_id": "08c1c093-6337-4383-938e-2d9c6cac531a",
+ "id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "consumed_policy_rule_sets": [
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ "53067983-9d3e-4109-97a6-e70cd656aedc",
+ "d448d8e8-0297-4d91-8fad-bb53d12cd999"
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "c3fe0204-182f-4758-8ff7-79e5e859f17e"
+ ],
+ "description": "",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ ],
+ "l2_policy_id": "65fc10d2-f173-48db-ad50-72f29790c4d1",
+ "id": "2b2a44de-0992-4cf8-bbd6-b2e4c565e16d",
+ "consumed_policy_rule_sets": [
+ ],
+ "name": "test",
+ "service_management": false,
+ "tenant_id": "abc0b828ace347049b0835f4a4d10040",
+ "policy_targets": [
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "c6b667bf-f9cb-4f12-ae75-c9e76f9d491d"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0",
+ "f19a90af-0103-429d-8118-3920bf2f27db"
+ ],
+ "l2_policy_id": "9fe34254-28fd-4db2-bba6-f8c35c51617e",
+ "id": "3ecf2178-25bb-4611-8a10-0dc074e90295",
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0",
+ "f19a90af-0103-429d-8118-3920bf2f27db"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "a9eb39d9-9dd4-4ad5-be9d-b96456d64078"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "f19a90af-0103-429d-8118-3920bf2f27db"
+ ],
+ "l2_policy_id": "a8aea144-92d8-4830-ae9f-41af291adb42",
+ "id": "61073812-3994-40c2-96f0-6bff03804e47",
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "b8a116d4-d674-438c-9fc6-973f2d6f5019",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0",
+ "ec0b5a7d-f963-45de-b4e4-864d59dc8c0b",
+ "f19a90af-0103-429d-8118-3920bf2f27db"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "e3111e17-8b29-46af-9385-41b1fb65b7ac"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "l2_policy_id": "d02b17ad-ef26-4a04-9071-82a5cfa100a6",
+ "id": "793c0497-39e8-4c76-a751-1d115d7a3b21",
+ "consumed_policy_rule_sets": [
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "9aadf5e8-5353-4681-87b2-0852fe5ce535"
+ ],
+ "description": "",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "l2_policy_id": "c1cc9bd8-49a5-4699-aa26-b276ced4cc67",
+ "id": "a72f99fa-68d1-494a-bc63-8b9e9b526f76",
+ "consumed_policy_rule_sets": [
+ ],
+ "name": "sha1-test",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ "7f518810-fa72-4b3d-8e28-c98970c868d5",
+ "8b3eb48f-1f12-43fb-806d-36890935dcdd",
+ "96e32649-1c39-4083-aeec-05d87c02a95a",
+ "b129c48a-94e1-4894-af44-1b46acb7a405",
+ "e29bb234-ee3c-4dc4-8b55-eae90da9d11a"
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "cdeefff4-2b54-4ed4-bd83-fd73c6f63691"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "l2_policy_id": "7eea106a-714d-41aa-ac69-de4c3f2e4b44",
+ "id": "aab0872f-890f-46b1-b461-86877039c23e",
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ },
+ {
+ "subnets": [
+ "af933a15-dafc-4ad5-aa1e-6ad84df85d30"
+ ],
+ "description": "test-policy-target-group-desc",
+ "network_service_policy_id": null,
+ "provided_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0",
+ "f19a90af-0103-429d-8118-3920bf2f27db"
+ ],
+ "l2_policy_id": "7dc44fbd-bc2b-4aa3-808c-0498183f5e21",
+ "id": "ab19a691-24e1-44e8-bc74-38b233305f52",
+ "consumed_policy_rule_sets": [
+ "1bbc10a8-aeb2-4e53-ab31-a1fed18763f4",
+ "408a5153-efc5-4bea-a3ef-2c838e330254",
+ "590f005f-de21-4466-905f-457487cc9a60",
+ "c3207474-19ee-4241-81e5-9e20995f2065",
+ "de829eb3-4867-442f-bac7-c59906c610b0",
+ "f19a90af-0103-429d-8118-3920bf2f27db"
+ ],
+ "name": "test-policy-target-group",
+ "service_management": false,
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_targets": [
+ ],
+ "shared": false
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_target_update.json b/core-test/src/main/resources/network/gbp/policy_target_update.json
index 1f1e5831f..176a6495b 100644
--- a/core-test/src/main/resources/network/gbp/policy_target_update.json
+++ b/core-test/src/main/resources/network/gbp/policy_target_update.json
@@ -1,11 +1,11 @@
{
- "policy_target":{
- "description":"test-policytarget-desc-update",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"36af8850-3514-4343-8293-9f9faae980d6",
- "id":"0d65eebe-4efe-456e-aec3-7856e4e839b4",
- "name":"test-policytarget-update"
- }
+ "policy_target": {
+ "description": "test-policytarget-desc-update",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "36af8850-3514-4343-8293-9f9faae980d6",
+ "id": "0d65eebe-4efe-456e-aec3-7856e4e839b4",
+ "name": "test-policytarget-update"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/gbp/policy_targets.json b/core-test/src/main/resources/network/gbp/policy_targets.json
index e04878a51..9b259c676 100644
--- a/core-test/src/main/resources/network/gbp/policy_targets.json
+++ b/core-test/src/main/resources/network/gbp/policy_targets.json
@@ -1,94 +1,94 @@
{
- "policy_targets":[
- {
- "description":"test-policytarget-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"36af8850-3514-4343-8293-9f9faae980d6",
- "id":"0d65eebe-4efe-456e-aec3-7856e4e839b4",
- "name":"test-policytarget"
- },
- {
- "description":"test-policytarget-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"fa9fac04-5d25-4a20-8175-04a6f791ea99",
- "id":"4a61a578-27e6-4198-b9e7-f98ef3e485fa",
- "name":"test-policytarget"
- },
- {
- "description":"test-policytarget-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"0e957061-8434-454d-96da-b0979ec5cd24",
- "id":"53067983-9d3e-4109-97a6-e70cd656aedc",
- "name":"test-policytarget"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"a72f99fa-68d1-494a-bc63-8b9e9b526f76",
- "cluster_id":"",
- "port_id":"0c6efb28-f381-454d-bd95-34e3bcd9223e",
- "id":"7f518810-fa72-4b3d-8e28-c98970c868d5",
- "name":"sha1-test-5_gbpui"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"a72f99fa-68d1-494a-bc63-8b9e9b526f76",
- "cluster_id":"",
- "port_id":"83ec2dd8-7509-40ed-a3b3-b2999b80cefc",
- "id":"8b3eb48f-1f12-43fb-806d-36890935dcdd",
- "name":"test-sha1-3_gbpui"
- },
- {
- "description":"test-policytarget-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"7bc1fb71-3512-4e8b-84db-40ca553bc14c",
- "id":"93dc0ff9-ef62-4be1-9723-1902a816df49",
- "name":"test-policytarget"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"a72f99fa-68d1-494a-bc63-8b9e9b526f76",
- "cluster_id":"",
- "port_id":"d05221a2-d1a8-450d-bc1f-d1b3eb349cca",
- "id":"96e32649-1c39-4083-aeec-05d87c02a95a",
- "name":"test-sha1-2_gbpui"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"a72f99fa-68d1-494a-bc63-8b9e9b526f76",
- "cluster_id":"",
- "port_id":"886de83e-dcaa-4a98-a206-7acecd8ded50",
- "id":"b129c48a-94e1-4894-af44-1b46acb7a405",
- "name":"test-sha1-1_gbpui"
- },
- {
- "description":"test-policytarget-desc",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"1fb00129-06cf-48e5-8282-d15dbf4be60b",
- "cluster_id":"",
- "port_id":"87f9f3b8-e8f2-427b-a2ef-2312931d0a35",
- "id":"d448d8e8-0297-4d91-8fad-bb53d12cd999",
- "name":"test-policytarget"
- },
- {
- "description":"",
- "tenant_id":"8be60cc30edc44978d24d51ce5f8d9da",
- "policy_target_group_id":"a72f99fa-68d1-494a-bc63-8b9e9b526f76",
- "cluster_id":"",
- "port_id":"bbdf8e39-088a-4cc6-8d17-e64ab2a469c0",
- "id":"e29bb234-ee3c-4dc4-8b55-eae90da9d11a",
- "name":"sha1-test-4_gbpui"
- }
- ]
+ "policy_targets": [
+ {
+ "description": "test-policytarget-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "36af8850-3514-4343-8293-9f9faae980d6",
+ "id": "0d65eebe-4efe-456e-aec3-7856e4e839b4",
+ "name": "test-policytarget"
+ },
+ {
+ "description": "test-policytarget-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "fa9fac04-5d25-4a20-8175-04a6f791ea99",
+ "id": "4a61a578-27e6-4198-b9e7-f98ef3e485fa",
+ "name": "test-policytarget"
+ },
+ {
+ "description": "test-policytarget-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "0e957061-8434-454d-96da-b0979ec5cd24",
+ "id": "53067983-9d3e-4109-97a6-e70cd656aedc",
+ "name": "test-policytarget"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "a72f99fa-68d1-494a-bc63-8b9e9b526f76",
+ "cluster_id": "",
+ "port_id": "0c6efb28-f381-454d-bd95-34e3bcd9223e",
+ "id": "7f518810-fa72-4b3d-8e28-c98970c868d5",
+ "name": "sha1-test-5_gbpui"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "a72f99fa-68d1-494a-bc63-8b9e9b526f76",
+ "cluster_id": "",
+ "port_id": "83ec2dd8-7509-40ed-a3b3-b2999b80cefc",
+ "id": "8b3eb48f-1f12-43fb-806d-36890935dcdd",
+ "name": "test-sha1-3_gbpui"
+ },
+ {
+ "description": "test-policytarget-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "7bc1fb71-3512-4e8b-84db-40ca553bc14c",
+ "id": "93dc0ff9-ef62-4be1-9723-1902a816df49",
+ "name": "test-policytarget"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "a72f99fa-68d1-494a-bc63-8b9e9b526f76",
+ "cluster_id": "",
+ "port_id": "d05221a2-d1a8-450d-bc1f-d1b3eb349cca",
+ "id": "96e32649-1c39-4083-aeec-05d87c02a95a",
+ "name": "test-sha1-2_gbpui"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "a72f99fa-68d1-494a-bc63-8b9e9b526f76",
+ "cluster_id": "",
+ "port_id": "886de83e-dcaa-4a98-a206-7acecd8ded50",
+ "id": "b129c48a-94e1-4894-af44-1b46acb7a405",
+ "name": "test-sha1-1_gbpui"
+ },
+ {
+ "description": "test-policytarget-desc",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "1fb00129-06cf-48e5-8282-d15dbf4be60b",
+ "cluster_id": "",
+ "port_id": "87f9f3b8-e8f2-427b-a2ef-2312931d0a35",
+ "id": "d448d8e8-0297-4d91-8fad-bb53d12cd999",
+ "name": "test-policytarget"
+ },
+ {
+ "description": "",
+ "tenant_id": "8be60cc30edc44978d24d51ce5f8d9da",
+ "policy_target_group_id": "a72f99fa-68d1-494a-bc63-8b9e9b526f76",
+ "cluster_id": "",
+ "port_id": "bbdf8e39-088a-4cc6-8d17-e64ab2a469c0",
+ "id": "e29bb234-ee3c-4dc4-8b55-eae90da9d11a",
+ "name": "sha1-test-4_gbpui"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/lbpool.json b/core-test/src/main/resources/network/lbpool.json
index 972e3892d..4c06d7644 100644
--- a/core-test/src/main/resources/network/lbpool.json
+++ b/core-test/src/main/resources/network/lbpool.json
@@ -1,19 +1,19 @@
{
- "pool": {
- "admin_state_up": true,
- "description": "simple pool",
- "healthmonitor_id": null,
- "id": "4c0a0a5f-cf8f-44b7-b912-957daa8ce5e5",
- "lb_method": "ROUND_ROBIN",
- "listeners": [
- {
- "id": "35cb8516-1173-4035-8dae-0dae3453f37f"
- }
- ],
- "members": [],
- "name": "pool1",
- "protocol": "HTTP",
- "subnet_id":"7d1dab60-cf8a-4f75-af5c-44aab98b0c42",
- "tenant_id":"d7fd03242ffa4933863bc528ed884fb6"
- }
+ "pool": {
+ "admin_state_up": true,
+ "description": "simple pool",
+ "healthmonitor_id": null,
+ "id": "4c0a0a5f-cf8f-44b7-b912-957daa8ce5e5",
+ "lb_method": "ROUND_ROBIN",
+ "listeners": [
+ {
+ "id": "35cb8516-1173-4035-8dae-0dae3453f37f"
+ }
+ ],
+ "members": [],
+ "name": "pool1",
+ "protocol": "HTTP",
+ "subnet_id": "7d1dab60-cf8a-4f75-af5c-44aab98b0c42",
+ "tenant_id": "d7fd03242ffa4933863bc528ed884fb6"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/lbpool_update.json b/core-test/src/main/resources/network/lbpool_update.json
index 3b8005c15..24b3cdddf 100644
--- a/core-test/src/main/resources/network/lbpool_update.json
+++ b/core-test/src/main/resources/network/lbpool_update.json
@@ -1,19 +1,19 @@
{
- "pool": {
- "admin_state_up": false,
- "description": "update",
- "healthmonitor_id": null,
- "id": "4c0a0a5f-cf8f-44b7-b912-957daa8ce5e5",
- "lb_method": "LEAST_CONNECTIONS",
- "listeners": [
- {
- "id": "35cb8516-1173-4035-8dae-0dae3453f37f"
- }
- ],
- "members": [],
- "name": "update",
- "protocol": "HTTP",
- "subnet_id":"7d1dab60-cf8a-4f75-af5c-44aab98b0c42",
- "tenant_id":"d7fd03242ffa4933863bc528ed884fb6"
- }
+ "pool": {
+ "admin_state_up": false,
+ "description": "update",
+ "healthmonitor_id": null,
+ "id": "4c0a0a5f-cf8f-44b7-b912-957daa8ce5e5",
+ "lb_method": "LEAST_CONNECTIONS",
+ "listeners": [
+ {
+ "id": "35cb8516-1173-4035-8dae-0dae3453f37f"
+ }
+ ],
+ "members": [],
+ "name": "update",
+ "protocol": "HTTP",
+ "subnet_id": "7d1dab60-cf8a-4f75-af5c-44aab98b0c42",
+ "tenant_id": "d7fd03242ffa4933863bc528ed884fb6"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/lbpools.json b/core-test/src/main/resources/network/lbpools.json
index 41bb48a7e..67c0e39b0 100644
--- a/core-test/src/main/resources/network/lbpools.json
+++ b/core-test/src/main/resources/network/lbpools.json
@@ -1,24 +1,24 @@
{
- "pools":[
- {
- "status":"ACTIVE",
- "lb_method":"ROUND_ROBIN",
- "protocol":"HTTP",
- "description":"",
- "health_monitors":[
- "466c8345-28d8-4f84-a246-e04380b0461d",
- "5d4b5228-33b0-4e60-b225-9b727c1a20e7"
- ],
- "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
- "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
- "admin_state_up":true,
- "name":"app_pool",
- "members":[
- "701b531b-111a-4f21-ad85-4795b7b12af6",
- "beb53b4d-230b-4abd-8118-575b8fa006ef"
- ],
- "id":"72741b06-df4d-4715-b142-276b6bce75ab",
- "vip_id":"4ec89087-d057-4e2c-911f-60a3b47ee304"
- }
- ]
+ "pools": [
+ {
+ "status": "ACTIVE",
+ "lb_method": "ROUND_ROBIN",
+ "protocol": "HTTP",
+ "description": "",
+ "health_monitors": [
+ "466c8345-28d8-4f84-a246-e04380b0461d",
+ "5d4b5228-33b0-4e60-b225-9b727c1a20e7"
+ ],
+ "subnet_id": "8032909d-47a1-4715-90af-5153ffe39861",
+ "tenant_id": "83657cfcdfe44cd5920adaf26c48ceea",
+ "admin_state_up": true,
+ "name": "app_pool",
+ "members": [
+ "701b531b-111a-4f21-ad85-4795b7b12af6",
+ "beb53b4d-230b-4abd-8118-575b8fa006ef"
+ ],
+ "id": "72741b06-df4d-4715-b142-276b6bce75ab",
+ "vip_id": "4ec89087-d057-4e2c-911f-60a3b47ee304"
+ }
+ ]
}
diff --git a/core-test/src/main/resources/network/lbpoolsv2.json b/core-test/src/main/resources/network/lbpoolsv2.json
index 4d41ec572..634571235 100644
--- a/core-test/src/main/resources/network/lbpoolsv2.json
+++ b/core-test/src/main/resources/network/lbpoolsv2.json
@@ -14,7 +14,6 @@
}
],
"members": [
-
],
"id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
"name": "testlbpool"
@@ -33,7 +32,6 @@
}
],
"members": [
-
],
"id": "ff2f9954-2481-4e11-93ee-72b77b6c5c98",
"name": "pool1"
diff --git a/core-test/src/main/resources/network/lbpoolv2.json b/core-test/src/main/resources/network/lbpoolv2.json
index ea194fe2a..462521486 100644
--- a/core-test/src/main/resources/network/lbpoolv2.json
+++ b/core-test/src/main/resources/network/lbpoolv2.json
@@ -13,7 +13,6 @@
}
],
"members": [
-
],
"id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
"name": "testlbpool"
diff --git a/core-test/src/main/resources/network/lbpoolv2_update.json b/core-test/src/main/resources/network/lbpoolv2_update.json
index 514d0a788..6e6f524f7 100644
--- a/core-test/src/main/resources/network/lbpoolv2_update.json
+++ b/core-test/src/main/resources/network/lbpoolv2_update.json
@@ -13,7 +13,6 @@
}
],
"members": [
-
],
"id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
"name": "v2update"
diff --git a/core-test/src/main/resources/network/listenersv2.json b/core-test/src/main/resources/network/listenersv2.json
index 443dbab9b..58f1247c0 100644
--- a/core-test/src/main/resources/network/listenersv2.json
+++ b/core-test/src/main/resources/network/listenersv2.json
@@ -13,7 +13,6 @@
],
"tenant_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"sni_container_refs": [
-
],
"connection_limit": -1,
"default_pool_id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
@@ -33,7 +32,6 @@
],
"tenant_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"sni_container_refs": [
-
],
"connection_limit": -1,
"default_pool_id": "e0467102-6406-484d-8262-3922a2f2b36b",
diff --git a/core-test/src/main/resources/network/loadbalancersv2.json b/core-test/src/main/resources/network/loadbalancersv2.json
index 0844fcfdd..11fc1bd2e 100644
--- a/core-test/src/main/resources/network/loadbalancersv2.json
+++ b/core-test/src/main/resources/network/loadbalancersv2.json
@@ -6,7 +6,6 @@
"tenant_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"provisioning_status": "ACTIVE",
"listeners": [
-
],
"vip_address": "10.0.0.13",
"vip_port_id": "82fbaa1c-a8af-47d3-94fe-a0ac1a33257b",
diff --git a/core-test/src/main/resources/network/loadbalancerv2.json b/core-test/src/main/resources/network/loadbalancerv2.json
index c230bf0b9..b808b4132 100644
--- a/core-test/src/main/resources/network/loadbalancerv2.json
+++ b/core-test/src/main/resources/network/loadbalancerv2.json
@@ -5,7 +5,6 @@
"tenant_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"provisioning_status": "ACTIVE",
"listeners": [
-
],
"vip_address": "10.0.0.13",
"vip_port_id": "82fbaa1c-a8af-47d3-94fe-a0ac1a33257b",
diff --git a/core-test/src/main/resources/network/loadbalancerv2_update.json b/core-test/src/main/resources/network/loadbalancerv2_update.json
index 4b42fda9b..7c37e468e 100644
--- a/core-test/src/main/resources/network/loadbalancerv2_update.json
+++ b/core-test/src/main/resources/network/loadbalancerv2_update.json
@@ -5,7 +5,6 @@
"tenant_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"provisioning_status": "ACTIVE",
"listeners": [
-
],
"vip_address": "10.0.0.13",
"vip_port_id": "82fbaa1c-a8af-47d3-94fe-a0ac1a33257b",
diff --git a/core-test/src/main/resources/network/network-external.json b/core-test/src/main/resources/network/network-external.json
index 60437dd0a..a5a31a084 100644
--- a/core-test/src/main/resources/network/network-external.json
+++ b/core-test/src/main/resources/network/network-external.json
@@ -1,25 +1,27 @@
{
- "network": {
- "status": "ACTIVE",
- "subnets": [],
- "name": "net1",
- "admin_state_up": true,
- "tenant_id": "9bacb3c5d39d41a79512987f338cf177",
- "segments": [
- {
- "provider:segmentation_id": 2,
- "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
- "provider:network_type": "vlan"
- },
- {
- "provider:segmentation_id": null,
- "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
- "provider:network_type": "stt"
- }
- ],
- "router:external": true,
- "shared": false,
- "port_security_enabled": true,
- "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c"
- }
+ "network": {
+ "status": "ACTIVE",
+ "subnets": [],
+ "name": "net1",
+ "admin_state_up": true,
+ "tenant_id": "9bacb3c5d39d41a79512987f338cf177",
+ "segments": [
+ {
+ "provider:segmentation_id": 2,
+ "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
+ "provider:network_type": "vlan"
+ },
+ {
+ "provider:segmentation_id": null,
+ "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
+ "provider:network_type": "stt"
+ }
+ ],
+ "router:external": true,
+ "shared": false,
+ "port_security_enabled": true,
+ "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
+ "created_at": "2020-10-30T22:16:01Z",
+ "updated_at": "2020-10-30T22:16:01Z"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/network.json b/core-test/src/main/resources/network/network.json
index 7b3c5cae8..0778be11d 100644
--- a/core-test/src/main/resources/network/network.json
+++ b/core-test/src/main/resources/network/network.json
@@ -1,24 +1,26 @@
{
- "network": {
- "status": "ACTIVE",
- "subnets": [],
- "name": "net1",
- "admin_state_up": true,
- "tenant_id": "9bacb3c5d39d41a79512987f338cf177",
- "segments": [
- {
- "provider:segmentation_id": 2,
- "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
- "provider:network_type": "vlan"
- },
- {
- "provider:segmentation_id": null,
- "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
- "provider:network_type": "stt"
- }
- ],
- "shared": false,
- "port_security_enabled": true,
- "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c"
- }
+ "network": {
+ "status": "ACTIVE",
+ "subnets": [],
+ "name": "net1",
+ "admin_state_up": true,
+ "tenant_id": "9bacb3c5d39d41a79512987f338cf177",
+ "segments": [
+ {
+ "provider:segmentation_id": 2,
+ "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
+ "provider:network_type": "vlan"
+ },
+ {
+ "provider:segmentation_id": null,
+ "provider:physical_network": "8bab8453-1bc9-45af-8c70-f83aa9b50453",
+ "provider:network_type": "stt"
+ }
+ ],
+ "shared": false,
+ "port_security_enabled": true,
+ "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
+ "created_at": "2020-10-30T22:16:01Z",
+ "updated_at": "2020-10-30T22:16:01Z"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/network_ip_availabilities.json b/core-test/src/main/resources/network/network_ip_availabilities.json
new file mode 100644
index 000000000..fcf99496d
--- /dev/null
+++ b/core-test/src/main/resources/network/network_ip_availabilities.json
@@ -0,0 +1,56 @@
+{
+ "network_ip_availabilities": [
+ {
+ "network_id": "4cf895c9-c3d1-489e-b02e-59b5c8976809",
+ "network_name": "public",
+ "subnet_ip_availability": [
+ {
+ "cidr": "2001:db8::/64",
+ "ip_version": 6,
+ "subnet_id": "ca3f46c4-c6ff-4272-9be4-0466f84c6077",
+ "subnet_name": "ipv6-public-subnet",
+ "total_ips": 18446744073709552000,
+ "used_ips": 1
+ },
+ {
+ "cidr": "172.24.4.0/24",
+ "ip_version": 4,
+ "subnet_id": "cc02efc1-9d47-46bd-bab6-760919c836b5",
+ "subnet_name": "public-subnet",
+ "total_ips": 253,
+ "used_ips": 1
+ }
+ ],
+ "project_id": "1a02cc95f1734fcc9d3c753818f03002",
+ "tenant_id": "1a02cc95f1734fcc9d3c753818f03002",
+ "total_ips": 253,
+ "used_ips": 2
+ },
+ {
+ "network_id": "6801d9c8-20e6-4b27-945d-62499f00002e",
+ "network_name": "private",
+ "subnet_ip_availability": [
+ {
+ "cidr": "10.0.0.0/24",
+ "ip_version": 4,
+ "subnet_id": "44e70d00-80a2-4fb1-ab59-6190595ceb61",
+ "subnet_name": "private-subnet",
+ "total_ips": 253,
+ "used_ips": 2
+ },
+ {
+ "ip_version": 6,
+ "cidr": "fdbf:ac66:9be8::/64",
+ "subnet_id": "a90623df-00e1-4902-a675-40674385d74c",
+ "subnet_name": "ipv6-private-subnet",
+ "total_ips": 18446744073709552000,
+ "used_ips": 2
+ }
+ ],
+ "project_id": "d56d3b8dd6894a508cf41b96b522328c",
+ "tenant_id": "d56d3b8dd6894a508cf41b96b522328c",
+ "total_ips": 18446744073709552000,
+ "used_ips": 4
+ }
+ ]
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/network_ip_availability.json b/core-test/src/main/resources/network/network_ip_availability.json
new file mode 100644
index 000000000..634bb28c8
--- /dev/null
+++ b/core-test/src/main/resources/network/network_ip_availability.json
@@ -0,0 +1,28 @@
+{
+ "network_ip_availability": {
+ "used_ips": 4,
+ "subnet_ip_availability": [
+ {
+ "used_ips": 2,
+ "subnet_id": "44e70d00-80a2-4fb1-ab59-6190595ceb61",
+ "subnet_name": "private-subnet",
+ "ip_version": 4,
+ "cidr": "10.0.0.0/24",
+ "total_ips": 253
+ },
+ {
+ "used_ips": 2,
+ "subnet_id": "a90623df-00e1-4902-a675-40674385d74c",
+ "subnet_name": "ipv6-private-subnet",
+ "ip_version": 6,
+ "cidr": "fdbf:ac66:9be8::/64",
+ "total_ips": 18446744073709552000
+ }
+ ],
+ "network_id": "6801d9c8-20e6-4b27-945d-62499f00002e",
+ "project_id": "d56d3b8dd6894a508cf41b96b522328c",
+ "tenant_id": "d56d3b8dd6894a508cf41b96b522328c",
+ "total_ips": 18446744073709552000,
+ "network_name": "private"
+ }
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/network_zone.json b/core-test/src/main/resources/network/network_zone.json
index 97c922546..fa47665b3 100644
--- a/core-test/src/main/resources/network/network_zone.json
+++ b/core-test/src/main/resources/network/network_zone.json
@@ -1,22 +1,24 @@
{
- "network": {
- "admin_state_up": true,
- "availability_zone_hints": ["nova"],
- "availability_zones": [],
- "created_at": "2016-03-08T20:19:41",
- "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
- "mtu": 0,
- "name": "net1",
- "port_security_enabled": true,
- "project_id": "9bacb3c5d39d41a79512987f338cf177",
- "qos_policy_id": "6a8454ade84346f59e8d40665f878b2e",
- "router:external": false,
- "shared": false,
- "status": "ACTIVE",
- "subnets": [],
- "tenant_id": "9bacb3c5d39d41a79512987f338cf177",
- "updated_at": "2016-03-08T20:19:41",
- "vlan_transparent": false,
- "description": ""
- }
+ "network": {
+ "admin_state_up": true,
+ "availability_zone_hints": [
+ "nova"
+ ],
+ "availability_zones": [],
+ "created_at": "2016-03-08T20:19:41",
+ "id": "4e8e5957-649f-477b-9e5b-f1f75b21c03c",
+ "mtu": 0,
+ "name": "net1",
+ "port_security_enabled": true,
+ "project_id": "9bacb3c5d39d41a79512987f338cf177",
+ "qos_policy_id": "6a8454ade84346f59e8d40665f878b2e",
+ "router:external": false,
+ "shared": false,
+ "status": "ACTIVE",
+ "subnets": [],
+ "tenant_id": "9bacb3c5d39d41a79512987f338cf177",
+ "updated_at": "2016-03-08T20:19:41",
+ "vlan_transparent": false,
+ "description": ""
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/networks_filtered.json b/core-test/src/main/resources/network/networks_filtered.json
index 8197c21f7..5527350f9 100644
--- a/core-test/src/main/resources/network/networks_filtered.json
+++ b/core-test/src/main/resources/network/networks_filtered.json
@@ -1,16 +1,20 @@
{
- "networks": [{
- "status": "ACTIVE",
- "subnets": ["0c4faf33-8c23-4dc9-8bf5-30dd1ab452f9"],
- "name": "netOK",
- "provider:physical_network": null,
- "admin_state_up": true,
- "tenant_id": "9712d107d5f9445a9fc5b4108502e312",
- "mtu": 0,
- "router:external": true,
- "shared": true,
- "provider:network_type": "vxlan",
- "id": "73f6f1ac-5e58-4801-88c3-7e12c6ddfb39",
- "provider:segmentation_id": 101101
- }]
+ "networks": [
+ {
+ "status": "ACTIVE",
+ "subnets": [
+ "0c4faf33-8c23-4dc9-8bf5-30dd1ab452f9"
+ ],
+ "name": "netOK",
+ "provider:physical_network": null,
+ "admin_state_up": true,
+ "tenant_id": "9712d107d5f9445a9fc5b4108502e312",
+ "mtu": 0,
+ "router:external": true,
+ "shared": true,
+ "provider:network_type": "vxlan",
+ "id": "73f6f1ac-5e58-4801-88c3-7e12c6ddfb39",
+ "provider:segmentation_id": 101101
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/port_external.json b/core-test/src/main/resources/network/port_external.json
index 21f732eb5..0e81a7549 100644
--- a/core-test/src/main/resources/network/port_external.json
+++ b/core-test/src/main/resources/network/port_external.json
@@ -1,18 +1,20 @@
{
- "port": {
- "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
- "binding:host_id": "4df8d9ff-6f6f-438f-90a1-ef660d4586ad",
- "binding:profile": {
- "local_link_information": [
- {
- "port_id": "Ethernet3/1",
- "switch_id": "0a:1b:2c:3d:4e:5f",
- "switch_info": "switch1"
- }
- ]
- },
- "binding:vnic_type": "baremetal",
- "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2",
- "device_owner": "baremetal:none"
- }
+ "port": {
+ "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
+ "binding:host_id": "4df8d9ff-6f6f-438f-90a1-ef660d4586ad",
+ "binding:profile": {
+ "local_link_information": [
+ {
+ "port_id": "Ethernet3/1",
+ "switch_id": "0a:1b:2c:3d:4e:5f",
+ "switch_info": "switch1"
+ }
+ ]
+ },
+ "binding:vnic_type": "baremetal",
+ "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2",
+ "device_owner": "baremetal:none",
+ "created_at": "2020-10-30T22:16:01Z",
+ "updated_at": "2020-10-30T22:16:01Z"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/ports_external.json b/core-test/src/main/resources/network/ports_external.json
index 7b6f5915f..ec7e78541 100644
--- a/core-test/src/main/resources/network/ports_external.json
+++ b/core-test/src/main/resources/network/ports_external.json
@@ -1,52 +1,56 @@
{
- "ports": [
+ "ports": [
+ {
+ "admin_state_up": false,
+ "allowed_address_pairs": [],
+ "data_plane_status": null,
+ "description": "",
+ "device_id": "",
+ "device_owner": "",
+ "fixed_ips": [
{
- "admin_state_up": false,
- "allowed_address_pairs": [],
- "data_plane_status": null,
- "description": "",
- "device_id": "",
- "device_owner": "",
- "fixed_ips": [
- {
- "ip_address": "10.0.0.5",
- "subnet_id": "a0304c3a-4f08-4c43-88af-d796509c97d2"
- }
- ],
- "id": "94225baa-9d3f-4b93-bf12-b41e7ce49cdb",
- "mac_address": "fa:16:3e:48:b8:9f",
- "name": "sample_port_1",
- "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
- "project_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa",
- "security_groups": [
- "f0ac4394-7e4a-4409-9701-ba8be283dbc3"
- ],
- "status": "DOWN",
- "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa"
- },
+ "ip_address": "10.0.0.5",
+ "subnet_id": "a0304c3a-4f08-4c43-88af-d796509c97d2"
+ }
+ ],
+ "id": "94225baa-9d3f-4b93-bf12-b41e7ce49cdb",
+ "mac_address": "fa:16:3e:48:b8:9f",
+ "name": "sample_port_1",
+ "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
+ "project_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa",
+ "security_groups": [
+ "f0ac4394-7e4a-4409-9701-ba8be283dbc3"
+ ],
+ "status": "DOWN",
+ "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa",
+ "created_at": "2020-10-30T22:16:01Z",
+ "updated_at": "2020-10-30T22:16:01Z"
+ },
+ {
+ "admin_state_up": false,
+ "allowed_address_pairs": [],
+ "data_plane_status": null,
+ "description": "",
+ "device_id": "",
+ "device_owner": "",
+ "fixed_ips": [
{
- "admin_state_up": false,
- "allowed_address_pairs": [],
- "data_plane_status": null,
- "description": "",
- "device_id": "",
- "device_owner": "",
- "fixed_ips": [
- {
- "ip_address": "10.0.0.6",
- "subnet_id": "a0304c3a-4f08-4c43-88af-d796509c97d2"
- }
- ],
- "id": "235b09e0-63c4-47f1-b221-66ba54c21760",
- "mac_address": "fa:16:3e:f4:73:df",
- "name": "sample_port_2",
- "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
- "project_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa",
- "security_groups": [
- "f0ac4394-7e4a-4409-9701-ba8be283dbc3"
- ],
- "status": "DOWN",
- "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa"
+ "ip_address": "10.0.0.6",
+ "subnet_id": "a0304c3a-4f08-4c43-88af-d796509c97d2"
}
- ]
+ ],
+ "id": "235b09e0-63c4-47f1-b221-66ba54c21760",
+ "mac_address": "fa:16:3e:f4:73:df",
+ "name": "sample_port_2",
+ "network_id": "a87cc70a-3e15-4acf-8205-9b711a3531b7",
+ "project_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa",
+ "security_groups": [
+ "f0ac4394-7e4a-4409-9701-ba8be283dbc3"
+ ],
+ "status": "DOWN",
+ "tenant_id": "d6700c0c9ffa4f1cb322cd4a1f3906fa",
+ "created_at": "2020-10-30T22:16:01Z",
+ "updated_at": "2020-10-30T22:16:01Z"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/qos_policies.json b/core-test/src/main/resources/network/qos_policies.json
new file mode 100644
index 000000000..b23719e7b
--- /dev/null
+++ b/core-test/src/main/resources/network/qos_policies.json
@@ -0,0 +1,32 @@
+{
+ "policies": [
+ {
+ "project_id": "8d4c70a21fed4aeba121a1a429ba0d04",
+ "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04",
+ "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
+ "is_default": false,
+ "name": "10Mbit",
+ "description": "This policy limits the ports to 10Mbit max.",
+ "revision_number": 3,
+ "created_at": "2018-04-03T21:26:39Z",
+ "updated_at": "2018-04-03T21:26:39Z",
+ "shared": false,
+ "rules": [
+ {
+ "max_kbps": 10000,
+ "type": "bandwidth_limit",
+ "id": "b1866696-032a-4228-857f-846075f63487",
+ "max_burst_kbps": 0,
+ "qos_policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4"
+ },
+ {
+ "dscp_mark": 20,
+ "type": "dscp_marking",
+ "id": "d9c021d5-5433-4d7c-8bfa-69cca486aac8",
+ "qos_policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4"
+ }
+ ],
+ "tags": ["tag1,tag2"]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/qos_policy.json b/core-test/src/main/resources/network/qos_policy.json
new file mode 100644
index 000000000..4fc839abf
--- /dev/null
+++ b/core-test/src/main/resources/network/qos_policy.json
@@ -0,0 +1,30 @@
+{
+ "policy": {
+ "project_id": "8d4c70a21fed4aeba121a1a429ba0d04",
+ "tenant_id": "8d4c70a21fed4aeba121a1a429ba0d04",
+ "id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
+ "is_default": false,
+ "name": "10Mbit",
+ "description": "This policy limits the ports to 10Mbit max.",
+ "revision_number": 3,
+ "created_at": "2018-04-03T21:26:39Z",
+ "updated_at": "2018-04-03T21:26:39Z",
+ "shared": false,
+ "rules": [
+ {
+ "id": "5f126d84-551a-4dcf-bb01-0e9c0df0c793",
+ "qos_policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
+ "max_kbps": 10000,
+ "max_burst_kbps": 0,
+ "type": "bandwidth_limit"
+ },
+ {
+ "id": "5f126d84-551a-4dcf-bb01-0e9c0df0c794",
+ "qos_policy_id": "46ebaec0-0570-43ac-82f6-60d2b03168c4",
+ "dscp_mark": 26,
+ "type": "dscp_marking"
+ }
+ ],
+ "tags": ["tag1,tag2"]
+ }
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/sfc/flow_classifier.json b/core-test/src/main/resources/network/sfc/flow_classifier.json
index 9a2ff9b29..39f381c67 100644
--- a/core-test/src/main/resources/network/sfc/flow_classifier.json
+++ b/core-test/src/main/resources/network/sfc/flow_classifier.json
@@ -1,22 +1,22 @@
{
- "flow_classifier": {
- "id": "12345678-abcd-abcd-abcd-abcdefabcdef",
- "name": "FC1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 1",
- "protocol": "TCP",
- "ethertype": "IPv4",
- "source_port_range_min": 22,
- "source_port_range_max": 3000,
- "destination_port_range_min": 80,
- "destination_port_range_max": 80,
- "source_ip_prefix": null,
- "destination_ip_prefix": "10.20.30.40",
- "logical_destination_port": null,
- "logical_source_port": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "l7_parameters": {
- "aparam": "A"
- }
+ "flow_classifier": {
+ "id": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "name": "FC1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 1",
+ "protocol": "TCP",
+ "ethertype": "IPv4",
+ "source_port_range_min": 22,
+ "source_port_range_max": 3000,
+ "destination_port_range_min": 80,
+ "destination_port_range_max": 80,
+ "source_ip_prefix": null,
+ "destination_ip_prefix": "10.20.30.40",
+ "logical_destination_port": null,
+ "logical_source_port": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "l7_parameters": {
+ "aparam": "A"
}
+ }
}
diff --git a/core-test/src/main/resources/network/sfc/flow_classifiers.json b/core-test/src/main/resources/network/sfc/flow_classifiers.json
index 99913937d..90778d17d 100644
--- a/core-test/src/main/resources/network/sfc/flow_classifiers.json
+++ b/core-test/src/main/resources/network/sfc/flow_classifiers.json
@@ -1,40 +1,44 @@
{
- "flow_classifiers": [
- {
- "id" : "12345678-abcd-abcd-abcd-abcdefabcdef",
- "name": "FC1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 1",
- "protocol": "TCP",
- "ethertype": "IPv4",
- "source_port_range_min": 22,
- "source_port_range_max": 3000,
- "destination_port_range_min": 80,
- "destination_port_range_max": 80,
- "source_ip_prefix": null,
- "destination_ip_prefix": "10.20.30.40",
- "logical_destination_port": "12345678-abcd-abcd-abcd-abcdefabcdef",
- "logical_source_port": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "l7_parameters": { "aparam": "A"}
- },
- {
- "id" : "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "name": "FC2",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 2",
- "protocol": "TCP",
- "ethertype": "IPv4",
- "source_port_range_min": 22,
- "source_port_range_max": 3000,
- "destination_port_range_min": 80,
- "destination_port_range_max": 80,
- "source_ip_prefix": null,
- "destination_ip_prefix": "50.60.70.80",
- "logical_destination_port": "12345678-abcd-abcd-abcd-abcdefabcdef",
- "logical_source_port": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "l7_parameters": { "bparam": "B"}
- }
- ]
+ "flow_classifiers": [
+ {
+ "id": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "name": "FC1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 1",
+ "protocol": "TCP",
+ "ethertype": "IPv4",
+ "source_port_range_min": 22,
+ "source_port_range_max": 3000,
+ "destination_port_range_min": 80,
+ "destination_port_range_max": 80,
+ "source_ip_prefix": null,
+ "destination_ip_prefix": "10.20.30.40",
+ "logical_destination_port": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "logical_source_port": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "l7_parameters": {
+ "aparam": "A"
+ }
+ },
+ {
+ "id": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "name": "FC2",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 2",
+ "protocol": "TCP",
+ "ethertype": "IPv4",
+ "source_port_range_min": 22,
+ "source_port_range_max": 3000,
+ "destination_port_range_min": 80,
+ "destination_port_range_max": 80,
+ "source_ip_prefix": null,
+ "destination_ip_prefix": "50.60.70.80",
+ "logical_destination_port": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "logical_source_port": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "l7_parameters": {
+ "bparam": "B"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/sfc/port_chain.json b/core-test/src/main/resources/network/sfc/port_chain.json
index 16dd071e8..887fa0886 100644
--- a/core-test/src/main/resources/network/sfc/port_chain.json
+++ b/core-test/src/main/resources/network/sfc/port_chain.json
@@ -1,13 +1,19 @@
{
- "port_chain": {
- "id" : "0abcdef",
- "name": "PC1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test port chain",
- "chain_id": "43210",
- "flow_classifiers": [ "12345678-abcd-abcd-abcd-abcdefabcdef" ],
- "port_pair_groups": [ "abcdefab-abcd-abcd-abcd-abcdefabcdef" ],
- "chain_parameters": { "aparam": "A"}
+ "port_chain": {
+ "id": "0abcdef",
+ "name": "PC1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test port chain",
+ "chain_id": "43210",
+ "flow_classifiers": [
+ "12345678-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "port_pair_groups": [
+ "abcdefab-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "chain_parameters": {
+ "aparam": "A"
}
+ }
}
diff --git a/core-test/src/main/resources/network/sfc/port_chains.json b/core-test/src/main/resources/network/sfc/port_chains.json
index 2eb8a816c..388f049cf 100644
--- a/core-test/src/main/resources/network/sfc/port_chains.json
+++ b/core-test/src/main/resources/network/sfc/port_chains.json
@@ -1,26 +1,38 @@
{
- "port_chains": [
- {
- "id" : "0abcdef",
- "name": "PC1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test port chain 1",
- "chain_id": "43210",
- "flow_classifiers": [ "12345678-abcd-abcd-abcd-abcdefabcdef" ],
- "port_pair_groups": [ "abcdefab-abcd-abcd-abcd-abcdefabcdef" ],
- "chain_parameters": { "aparam": "A"}
- },
- {
- "id" : "1fedcba",
- "name": "PC2",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test port chain 2",
- "chain_id": "98765",
- "flow_classifiers": [ "12345678-abcd-abcd-abcd-abcdefabcdef" ],
- "port_pair_groups": [ "abcdefab-abcd-abcd-abcd-abcdefabcdef" ],
- "chain_parameters": { "aparam": "A"}
- }
- ]
+ "port_chains": [
+ {
+ "id": "0abcdef",
+ "name": "PC1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test port chain 1",
+ "chain_id": "43210",
+ "flow_classifiers": [
+ "12345678-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "port_pair_groups": [
+ "abcdefab-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "chain_parameters": {
+ "aparam": "A"
+ }
+ },
+ {
+ "id": "1fedcba",
+ "name": "PC2",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test port chain 2",
+ "chain_id": "98765",
+ "flow_classifiers": [
+ "12345678-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "port_pair_groups": [
+ "abcdefab-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "chain_parameters": {
+ "aparam": "A"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/sfc/port_pair.json b/core-test/src/main/resources/network/sfc/port_pair.json
index 9af2add0b..49355912d 100644
--- a/core-test/src/main/resources/network/sfc/port_pair.json
+++ b/core-test/src/main/resources/network/sfc/port_pair.json
@@ -1,12 +1,14 @@
{
- "port_pair": {
- "id" : "abcdef",
- "name": "PP1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 1",
- "egress": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "ingress": "12345678-abcd-abcd-abcd-abcdefabcdef",
- "service_function_parameters": { "aparam": "A"}
+ "port_pair": {
+ "id": "abcdef",
+ "name": "PP1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 1",
+ "egress": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "ingress": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "service_function_parameters": {
+ "aparam": "A"
}
+ }
}
diff --git a/core-test/src/main/resources/network/sfc/port_pair_group.json b/core-test/src/main/resources/network/sfc/port_pair_group.json
index 35bf2696e..90e6eeb04 100644
--- a/core-test/src/main/resources/network/sfc/port_pair_group.json
+++ b/core-test/src/main/resources/network/sfc/port_pair_group.json
@@ -1,13 +1,15 @@
{
- "port_pair_group": {
- "id" : "abcdef",
- "name": "PP1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 1",
- "port_pairs": [ "abcdefab-abcd-abcd-abcd-abcdefabcdef" ],
- "port_pair_group_parameters": {
- "lb_fields": "ip_src"
- }
+ "port_pair_group": {
+ "id": "abcdef",
+ "name": "PP1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 1",
+ "port_pairs": [
+ "abcdefab-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "port_pair_group_parameters": {
+ "lb_fields": "ip_src"
}
+ }
}
diff --git a/core-test/src/main/resources/network/sfc/port_pair_groups.json b/core-test/src/main/resources/network/sfc/port_pair_groups.json
index 6ddd15ff3..9f30935db 100644
--- a/core-test/src/main/resources/network/sfc/port_pair_groups.json
+++ b/core-test/src/main/resources/network/sfc/port_pair_groups.json
@@ -1,26 +1,30 @@
{
- "port_pair_groups": [
- {
- "id" : "0abcdef",
- "name": "PP1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 1",
- "port_pairs": [ "abcdefab-abcd-abcd-abcd-abcdefabcdef" ],
- "port_pair_group_parameters": {
- "lb_fields": "ip_src"
- }
- },
- {
- "id" : "1fedcba",
- "name": "PP2",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 2",
- "port_pairs": [ "abcdefab-abcd-abcd-abcd-abcdefabcdef" ],
- "port_pair_group_parameters": {
- "lb_fields": "ip_src"
- }
- }
- ]
+ "port_pair_groups": [
+ {
+ "id": "0abcdef",
+ "name": "PP1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 1",
+ "port_pairs": [
+ "abcdefab-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "port_pair_group_parameters": {
+ "lb_fields": "ip_src"
+ }
+ },
+ {
+ "id": "1fedcba",
+ "name": "PP2",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 2",
+ "port_pairs": [
+ "abcdefab-abcd-abcd-abcd-abcdefabcdef"
+ ],
+ "port_pair_group_parameters": {
+ "lb_fields": "ip_src"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/sfc/port_pairs.json b/core-test/src/main/resources/network/sfc/port_pairs.json
index ca22793fd..688f57dd0 100644
--- a/core-test/src/main/resources/network/sfc/port_pairs.json
+++ b/core-test/src/main/resources/network/sfc/port_pairs.json
@@ -1,24 +1,28 @@
{
- "port_pairs": [
- {
- "id" : "0abcdef",
- "name": "PP1",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 1",
- "egress": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "ingress": "12345678-abcd-abcd-abcd-abcdefabcdef",
- "service_function_parameters": { "aparam": "A"}
- },
- {
- "id" : "1fedcba",
- "name": "PP2",
- "project_id": "12345678909876543210abcdefabcdef",
- "tenant_id": "12345678909876543210abcdefabcdef",
- "description": "Openstack4j test flow classifier 2",
- "egress": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
- "ingress": "12345678-abcd-abcd-abcd-abcdefabcdef",
- "service_function_parameters": { "bparam": "B"}
- }
- ]
+ "port_pairs": [
+ {
+ "id": "0abcdef",
+ "name": "PP1",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 1",
+ "egress": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "ingress": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "service_function_parameters": {
+ "aparam": "A"
+ }
+ },
+ {
+ "id": "1fedcba",
+ "name": "PP2",
+ "project_id": "12345678909876543210abcdefabcdef",
+ "tenant_id": "12345678909876543210abcdefabcdef",
+ "description": "Openstack4j test flow classifier 2",
+ "egress": "abcdefab-abcd-abcd-abcd-abcdefabcdef",
+ "ingress": "12345678-abcd-abcd-abcd-abcdefabcdef",
+ "service_function_parameters": {
+ "bparam": "B"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/subnet_ipv6.json b/core-test/src/main/resources/network/subnet_ipv6.json
index 1984f6741..4688f3121 100644
--- a/core-test/src/main/resources/network/subnet_ipv6.json
+++ b/core-test/src/main/resources/network/subnet_ipv6.json
@@ -1,30 +1,30 @@
{
- "subnet": {
- "name": "sub1",
- "enable_dhcp": true,
- "network_id": "d32019d3-bc6e-4319-9c1d-6722fc136a22",
- "segment_id": null,
- "project_id": "4fd44f30292945e481c7b8a0c8908869",
- "tenant_id": "4fd44f30292945e481c7b8a0c8908869",
- "dns_nameservers": [],
- "allocation_pools": [
- {
- "start": "2620:0:2d0:200::2",
- "end": "2620:0:2d0:200:ffff:ffff:ffff:fffe"
- }
- ],
- "host_routes": [],
- "ip_version": 6,
- "gateway_ip": "2620:0:2d0:200::1",
- "cidr": "2620:0:2d0:200::/64",
- "id": "3b80198d-4f7b-4f77-9ef5-774d54e17126",
- "created_at": "2016-10-10T14:35:47Z",
- "description": "",
- "ipv6_address_mode": "dhcpv6-stateful",
- "ipv6_ra_mode": "dhcpv6-stateful",
- "revision_number": 2,
- "service_types": [],
- "subnetpool_id": null,
- "updated_at": "2016-10-10T14:35:47Z"
- }
+ "subnet": {
+ "name": "sub1",
+ "enable_dhcp": true,
+ "network_id": "d32019d3-bc6e-4319-9c1d-6722fc136a22",
+ "segment_id": null,
+ "project_id": "4fd44f30292945e481c7b8a0c8908869",
+ "tenant_id": "4fd44f30292945e481c7b8a0c8908869",
+ "dns_nameservers": [],
+ "allocation_pools": [
+ {
+ "start": "2620:0:2d0:200::2",
+ "end": "2620:0:2d0:200:ffff:ffff:ffff:fffe"
+ }
+ ],
+ "host_routes": [],
+ "ip_version": 6,
+ "gateway_ip": "2620:0:2d0:200::1",
+ "cidr": "2620:0:2d0:200::/64",
+ "id": "3b80198d-4f7b-4f77-9ef5-774d54e17126",
+ "description": "",
+ "ipv6_address_mode": "dhcpv6-stateful",
+ "ipv6_ra_mode": "dhcpv6-stateful",
+ "revision_number": 2,
+ "service_types": [],
+ "subnetpool_id": null,
+ "created_at": "2020-10-30T22:16:01Z",
+ "updated_at": "2020-10-30T22:16:01Z"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/network/tags.json b/core-test/src/main/resources/network/tags.json
new file mode 100644
index 000000000..0103db685
--- /dev/null
+++ b/core-test/src/main/resources/network/tags.json
@@ -0,0 +1,3 @@
+{
+ "tags": ["tag1", "tag2"]
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/octavia/lbpoolsv2.json b/core-test/src/main/resources/octavia/lbpoolsv2.json
index 6545a7f20..83cc0eb31 100644
--- a/core-test/src/main/resources/octavia/lbpoolsv2.json
+++ b/core-test/src/main/resources/octavia/lbpoolsv2.json
@@ -14,7 +14,6 @@
}
],
"members": [
-
],
"id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
"name": "testlbpool"
@@ -33,7 +32,6 @@
}
],
"members": [
-
],
"id": "ff2f9954-2481-4e11-93ee-72b77b6c5c98",
"name": "pool1"
diff --git a/core-test/src/main/resources/octavia/lbpoolv2.json b/core-test/src/main/resources/octavia/lbpoolv2.json
index 462fbf032..e84b2ef28 100644
--- a/core-test/src/main/resources/octavia/lbpoolv2.json
+++ b/core-test/src/main/resources/octavia/lbpoolv2.json
@@ -13,7 +13,6 @@
}
],
"members": [
-
],
"id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
"name": "testlbpool"
diff --git a/core-test/src/main/resources/octavia/lbpoolv2_update.json b/core-test/src/main/resources/octavia/lbpoolv2_update.json
index d6148ff9b..575a61042 100644
--- a/core-test/src/main/resources/octavia/lbpoolv2_update.json
+++ b/core-test/src/main/resources/octavia/lbpoolv2_update.json
@@ -13,7 +13,6 @@
}
],
"members": [
-
],
"id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
"name": "v2update"
diff --git a/core-test/src/main/resources/octavia/listenersv2.json b/core-test/src/main/resources/octavia/listenersv2.json
index 52b8548cf..b2b3f9a68 100644
--- a/core-test/src/main/resources/octavia/listenersv2.json
+++ b/core-test/src/main/resources/octavia/listenersv2.json
@@ -13,7 +13,6 @@
],
"project_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"sni_container_refs": [
-
],
"connection_limit": -1,
"default_pool_id": "b7f6a49f-ebd8-43c5-b792-5748366eff21",
@@ -33,7 +32,6 @@
],
"project_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"sni_container_refs": [
-
],
"connection_limit": -1,
"default_pool_id": "e0467102-6406-484d-8262-3922a2f2b36b",
diff --git a/core-test/src/main/resources/octavia/loadbalancersv2.json b/core-test/src/main/resources/octavia/loadbalancersv2.json
index ee8a19972..6e785c91b 100644
--- a/core-test/src/main/resources/octavia/loadbalancersv2.json
+++ b/core-test/src/main/resources/octavia/loadbalancersv2.json
@@ -6,7 +6,6 @@
"project_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"provisioning_status": "ACTIVE",
"listeners": [
-
],
"vip_address": "10.0.0.13",
"vip_port_id": "82fbaa1c-a8af-47d3-94fe-a0ac1a33257b",
diff --git a/core-test/src/main/resources/octavia/loadbalancerv2.json b/core-test/src/main/resources/octavia/loadbalancerv2.json
index 188e41961..72296b10f 100644
--- a/core-test/src/main/resources/octavia/loadbalancerv2.json
+++ b/core-test/src/main/resources/octavia/loadbalancerv2.json
@@ -5,7 +5,6 @@
"project_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"provisioning_status": "ACTIVE",
"listeners": [
-
],
"vip_address": "10.0.0.13",
"vip_port_id": "82fbaa1c-a8af-47d3-94fe-a0ac1a33257b",
diff --git a/core-test/src/main/resources/octavia/loadbalancerv2_update.json b/core-test/src/main/resources/octavia/loadbalancerv2_update.json
index 55475f302..dd49567ab 100644
--- a/core-test/src/main/resources/octavia/loadbalancerv2_update.json
+++ b/core-test/src/main/resources/octavia/loadbalancerv2_update.json
@@ -5,7 +5,6 @@
"project_id": "6f759d84e3ca496ab77f8c0ffaa0311e",
"provisioning_status": "ACTIVE",
"listeners": [
-
],
"vip_address": "10.0.0.13",
"vip_port_id": "82fbaa1c-a8af-47d3-94fe-a0ac1a33257b",
diff --git a/core-test/src/main/resources/sahara/cluster_create_req.json b/core-test/src/main/resources/sahara/cluster_create_req.json
index 029964694..e69c60ffa 100644
--- a/core-test/src/main/resources/sahara/cluster_create_req.json
+++ b/core-test/src/main/resources/sahara/cluster_create_req.json
@@ -1,29 +1,32 @@
{
- "name" : "cluster-test-1",
- "cluster_configs" : {
- "HDFS" : {
- "dfs.replication" : 1
+ "name": "cluster-test-1",
+ "cluster_configs": {
+ "HDFS": {
+ "dfs.replication": 1
},
- "Spark" : {
- "spark.executor.memory" : "1g",
- "spark.executor.cores" : 2
+ "Spark": {
+ "spark.executor.memory": "1g",
+ "spark.executor.cores": 2
}
},
- "default_image_id" : "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
- "user_keypair_id" : "tester",
- "plugin_name" : "spark",
- "neutron_management_network" : "4c065f9c-ad1b-43c4-ba1e-893d330da079",
- "node_groups" : [ {
- "name" : "worker",
- "count" : 2,
- "node_group_template_id" : "f78dda4d-17e1-48cd-ab85-ee56261382ef",
- "flavor_id" : "ef7f4d7f-267f-4762-abe2-729fe350256c"
- }, {
- "name" : "master",
- "count" : 1,
- "node_group_template_id" : "0febf422-98ee-47e6-a1c5-60f90f1f9c96",
- "flavor_id" : "ef7f4d7f-267f-4762-abe2-729fe350256c"
- } ],
- "hadoop_version" : "1.6.2"
+ "default_image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
+ "user_keypair_id": "tester",
+ "plugin_name": "spark",
+ "neutron_management_network": "4c065f9c-ad1b-43c4-ba1e-893d330da079",
+ "node_groups": [
+ {
+ "name": "worker",
+ "count": 2,
+ "node_group_template_id": "f78dda4d-17e1-48cd-ab85-ee56261382ef",
+ "flavor_id": "ef7f4d7f-267f-4762-abe2-729fe350256c"
+ },
+ {
+ "name": "master",
+ "count": 1,
+ "node_group_template_id": "0febf422-98ee-47e6-a1c5-60f90f1f9c96",
+ "flavor_id": "ef7f4d7f-267f-4762-abe2-729fe350256c"
+ }
+ ],
+ "hadoop_version": "1.6.2"
}
diff --git a/core-test/src/main/resources/sahara/cluster_create_resp.json b/core-test/src/main/resources/sahara/cluster_create_resp.json
index 5154a807a..905da79cb 100644
--- a/core-test/src/main/resources/sahara/cluster_create_resp.json
+++ b/core-test/src/main/resources/sahara/cluster_create_resp.json
@@ -1,106 +1,106 @@
{
- "cluster": {
- "provision_progress": [],
- "user_keypair_id": "tester",
- "updated_at": "2017-08-04T08:33:44",
- "is_transient": false,
- "use_autoconfig": true,
- "node_groups": [
- {
- "volume_local_to_instance": false,
- "availability_zone": "nova",
- "updated_at": null,
- "instances": [],
- "node_group_template_id": "f78dda4d-17e1-48cd-ab85-ee56261382ef",
- "volumes_per_node": 0,
- "id": "36f4ecc7-e098-4fbc-826b-e645a4e0561c",
- "security_groups": [
- "0a3f7e8d-3769-45ac-ac74-89efaa179404"
- ],
- "shares": [],
- "node_configs": {
- "HDFS": {}
- },
- "auto_security_group": false,
- "volumes_availability_zone": null,
- "volume_mount_prefix": "/volumes/disk",
- "floating_ip_pool": "7c6358b6-11da-4da5-9ae6-cb42dd51f483",
- "image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
- "volumes_size": null,
- "is_proxy_gateway": false,
- "count": 2,
- "name": "worker",
- "created_at": "2017-08-04T08:33:43",
- "volume_type": null,
- "node_processes": [
- "datanode",
- "slave"
- ],
- "flavor_id": "ef7f4d7f-267f-4762-abe2-729fe350256c",
- "use_autoconfig": true
- },
- {
- "volume_local_to_instance": false,
- "availability_zone": "nova",
- "updated_at": null,
- "instances": [],
- "node_group_template_id": "0febf422-98ee-47e6-a1c5-60f90f1f9c96",
- "volumes_per_node": 0,
- "id": "d4a382ca-6c9c-48ef-84c2-c9ad3360cd81",
- "security_groups": [
- "0a3f7e8d-3769-45ac-ac74-89efaa179404"
- ],
- "shares": [],
- "node_configs": {
- "HDFS": {}
- },
- "auto_security_group": false,
- "volumes_availability_zone": null,
- "volume_mount_prefix": "/volumes/disk",
- "floating_ip_pool": "7c6358b6-11da-4da5-9ae6-cb42dd51f483",
- "image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
- "volumes_size": null,
- "is_proxy_gateway": false,
- "count": 1,
- "name": "master",
- "created_at": "2017-08-04T08:33:43",
- "volume_type": null,
- "node_processes": [
- "namenode",
- "master"
- ],
- "flavor_id": "ef7f4d7f-267f-4762-abe2-729fe350256c",
- "use_autoconfig": true
- }
- ],
- "management_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDaOGD3eWnT48rv3MlnF5D9z8B0Xw76IjlSt2fijRKUnlB3EAdMsi8QutO2Z+uPJXtZZsxfBvKabCpuSh5C6NWq2cjvEcb+HisXcRD5LDfJ7KUkNJRqJcHMiLMZv3WSfUSn37HXhPW09vz72Td8e0bkr7kbcbO5goc/hMoszP/Q5Yt62I6j6tgPBTr4mZuSXTlhIxg27RIvrHueWUhKL4iT3yCBgk+QU9PNRFDzHPg5ZLCAoQerOkj7yuN0iwWUvXx5McLQiLI5bB3th1Ov65rsLw+Me/WrTLHmbY2AK24gTQ8XtuLbKei84WGMkmZBQ15B27kC0uoos8EeiZcvO9cb Generated-by-Sahara\n",
- "id": "c7ce1662-0ee7-4307-a7ed-a77fa1b0e667",
- "trust_id": null,
- "cluster_configs": {
- "HDFS": {
- "dfs.replication": 1
- },
- "Spark": {
- "spark.executor.memory": "1g",
- "spark.executor.cores": 2
- }
- },
- "default_image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
- "domain_name": null,
- "shares": null,
- "status": "Validating",
- "neutron_management_network": "4c065f9c-ad1b-43c4-ba1e-893d330da079",
- "description": null,
- "plugin_name": "spark",
- "anti_affinity": [],
- "is_public": false,
- "status_description": "",
- "hadoop_version": "1.6.2",
- "info": {},
- "cluster_template_id": null,
- "name": "cluster-test-1",
- "tenant_id": "31f13106bac54c1992077cca18f02c6e",
- "created_at": "2017-08-04T08:33:43",
- "is_protected": false
- }
+ "cluster": {
+ "provision_progress": [],
+ "user_keypair_id": "tester",
+ "updated_at": "2017-08-04T08:33:44",
+ "is_transient": false,
+ "use_autoconfig": true,
+ "node_groups": [
+ {
+ "volume_local_to_instance": false,
+ "availability_zone": "nova",
+ "updated_at": null,
+ "instances": [],
+ "node_group_template_id": "f78dda4d-17e1-48cd-ab85-ee56261382ef",
+ "volumes_per_node": 0,
+ "id": "36f4ecc7-e098-4fbc-826b-e645a4e0561c",
+ "security_groups": [
+ "0a3f7e8d-3769-45ac-ac74-89efaa179404"
+ ],
+ "shares": [],
+ "node_configs": {
+ "HDFS": {}
+ },
+ "auto_security_group": false,
+ "volumes_availability_zone": null,
+ "volume_mount_prefix": "/volumes/disk",
+ "floating_ip_pool": "7c6358b6-11da-4da5-9ae6-cb42dd51f483",
+ "image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
+ "volumes_size": null,
+ "is_proxy_gateway": false,
+ "count": 2,
+ "name": "worker",
+ "created_at": "2017-08-04T08:33:43",
+ "volume_type": null,
+ "node_processes": [
+ "datanode",
+ "slave"
+ ],
+ "flavor_id": "ef7f4d7f-267f-4762-abe2-729fe350256c",
+ "use_autoconfig": true
+ },
+ {
+ "volume_local_to_instance": false,
+ "availability_zone": "nova",
+ "updated_at": null,
+ "instances": [],
+ "node_group_template_id": "0febf422-98ee-47e6-a1c5-60f90f1f9c96",
+ "volumes_per_node": 0,
+ "id": "d4a382ca-6c9c-48ef-84c2-c9ad3360cd81",
+ "security_groups": [
+ "0a3f7e8d-3769-45ac-ac74-89efaa179404"
+ ],
+ "shares": [],
+ "node_configs": {
+ "HDFS": {}
+ },
+ "auto_security_group": false,
+ "volumes_availability_zone": null,
+ "volume_mount_prefix": "/volumes/disk",
+ "floating_ip_pool": "7c6358b6-11da-4da5-9ae6-cb42dd51f483",
+ "image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
+ "volumes_size": null,
+ "is_proxy_gateway": false,
+ "count": 1,
+ "name": "master",
+ "created_at": "2017-08-04T08:33:43",
+ "volume_type": null,
+ "node_processes": [
+ "namenode",
+ "master"
+ ],
+ "flavor_id": "ef7f4d7f-267f-4762-abe2-729fe350256c",
+ "use_autoconfig": true
+ }
+ ],
+ "management_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDaOGD3eWnT48rv3MlnF5D9z8B0Xw76IjlSt2fijRKUnlB3EAdMsi8QutO2Z+uPJXtZZsxfBvKabCpuSh5C6NWq2cjvEcb+HisXcRD5LDfJ7KUkNJRqJcHMiLMZv3WSfUSn37HXhPW09vz72Td8e0bkr7kbcbO5goc/hMoszP/Q5Yt62I6j6tgPBTr4mZuSXTlhIxg27RIvrHueWUhKL4iT3yCBgk+QU9PNRFDzHPg5ZLCAoQerOkj7yuN0iwWUvXx5McLQiLI5bB3th1Ov65rsLw+Me/WrTLHmbY2AK24gTQ8XtuLbKei84WGMkmZBQ15B27kC0uoos8EeiZcvO9cb Generated-by-Sahara\n",
+ "id": "c7ce1662-0ee7-4307-a7ed-a77fa1b0e667",
+ "trust_id": null,
+ "cluster_configs": {
+ "HDFS": {
+ "dfs.replication": 1
+ },
+ "Spark": {
+ "spark.executor.memory": "1g",
+ "spark.executor.cores": 2
+ }
+ },
+ "default_image_id": "f56cc7c5-9588-49fa-8bcd-5c5d5eda5466",
+ "domain_name": null,
+ "shares": null,
+ "status": "Validating",
+ "neutron_management_network": "4c065f9c-ad1b-43c4-ba1e-893d330da079",
+ "description": null,
+ "plugin_name": "spark",
+ "anti_affinity": [],
+ "is_public": false,
+ "status_description": "",
+ "hadoop_version": "1.6.2",
+ "info": {},
+ "cluster_template_id": null,
+ "name": "cluster-test-1",
+ "tenant_id": "31f13106bac54c1992077cca18f02c6e",
+ "created_at": "2017-08-04T08:33:43",
+ "is_protected": false
+ }
}
diff --git a/core-test/src/main/resources/senlin/v1/action.json b/core-test/src/main/resources/senlin/v1/action.json
index 2e857c92f..9bcfdf1e4 100644
--- a/core-test/src/main/resources/senlin/v1/action.json
+++ b/core-test/src/main/resources/senlin/v1/action.json
@@ -1,23 +1,23 @@
{
- "action": {
- "action": "CLUSTER_SCALE_IN",
- "cause": "RPC Request",
- "created_at": "2016-06-15T02:42:38.000000",
- "data": {},
- "depended_by": [],
- "depends_on": [],
- "end_time": 1465958528,
- "id": "ffbb9175-d510-4bc1-b676-c6aba2a4ca81",
- "inputs": {},
- "interval": -1,
- "name": "webhook_991e3872",
- "outputs": {},
- "owner": null,
- "start_time": 1465958528,
- "status": "FAILED",
- "status_reason": "The target capacity (0) is less than the cluster's min_size (1).",
- "target": "aff44f0d-5078-4e06-974e-5d2bc8ac1856",
- "timeout": 3600,
- "updated_at": null
- }
+ "action": {
+ "action": "CLUSTER_SCALE_IN",
+ "cause": "RPC Request",
+ "created_at": "2016-06-15T02:42:38.000000",
+ "data": {},
+ "depended_by": [],
+ "depends_on": [],
+ "end_time": 1465958528,
+ "id": "ffbb9175-d510-4bc1-b676-c6aba2a4ca81",
+ "inputs": {},
+ "interval": -1,
+ "name": "webhook_991e3872",
+ "outputs": {},
+ "owner": null,
+ "start_time": 1465958528,
+ "status": "FAILED",
+ "status_reason": "The target capacity (0) is less than the cluster's min_size (1).",
+ "target": "aff44f0d-5078-4e06-974e-5d2bc8ac1856",
+ "timeout": 3600,
+ "updated_at": null
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/actions.json b/core-test/src/main/resources/senlin/v1/actions.json
index 3592df27d..9717716d0 100644
--- a/core-test/src/main/resources/senlin/v1/actions.json
+++ b/core-test/src/main/resources/senlin/v1/actions.json
@@ -1,93 +1,93 @@
{
- "actions": [
- {
- "action": "CLUSTER_CREATE",
- "cause": "RPC Request",
- "created_at": "2016-05-24T09:25:15.000000",
- "data": {},
- "depended_by": [],
- "depends_on": [],
- "end_time": 1464081920,
- "id": "1ac0a47b-06de-44cd-a014-79981f1dec19",
- "inputs": {},
- "interval": -1,
- "name": "cluster_create_7e0c9843",
- "outputs": {},
- "owner": null,
- "start_time": 1464081920,
- "status": "SUCCEEDED",
- "status_reason": "Action completed successfully.",
- "target": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "timeout": 3600,
- "updated_at": null
- },
- {
- "action": "NODE_CREATE",
- "cause": "RPC Request",
- "created_at": "2016-05-24T09:25:16.000000",
- "data": {},
- "depended_by": [],
- "depends_on": [],
- "end_time": 1464081920,
- "id": "48f83782-bf02-4308-b8e8-a6c3b6e816b0",
- "inputs": {},
- "interval": -1,
- "name": "node_create_d3451489",
- "outputs": {},
- "owner": null,
- "start_time": 1464081920,
- "status": "FAILED",
- "status_reason": "Node creation failed.",
- "target": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
- "timeout": 3600,
- "updated_at": null
- },
- {
- "action": "CLUSTER_ATTACH_POLICY",
- "cause": "RPC Request",
- "created_at": "2016-05-24T09:25:18.000000",
- "data": {},
- "depended_by": [],
- "depends_on": [],
- "end_time": 1464081920,
- "id": "11d999e8-2513-4751-8bfd-7566f4129107",
- "inputs": {
- "enabled": true,
- "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199"
- },
- "interval": -1,
- "name": "attach_policy_7e0c9843",
- "outputs": {},
- "owner": null,
- "start_time": 1464081920,
- "status": "SUCCEEDED",
- "status_reason": "Action completed successfully.",
- "target": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "timeout": 3600,
- "updated_at": null
- },
- {
- "action": "NODE_RECOVER",
- "cause": "RPC Request",
- "created_at": "2016-05-24T09:25:18.000000",
- "data": {},
- "depended_by": [],
- "depends_on": [],
- "end_time": 1464081920,
- "id": "66560462-f297-4cf7-8e40-75a447f8a975",
- "inputs": {
- "operation": "rebuild"
- },
- "interval": -1,
- "name": "node_recover_d3451489",
- "outputs": {},
- "owner": null,
- "start_time": 1464081920,
- "status": "FAILED",
- "status_reason": "Node recover failed.",
- "target": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
- "timeout": 3600,
- "updated_at": null
- }
- ]
+ "actions": [
+ {
+ "action": "CLUSTER_CREATE",
+ "cause": "RPC Request",
+ "created_at": "2016-05-24T09:25:15.000000",
+ "data": {},
+ "depended_by": [],
+ "depends_on": [],
+ "end_time": 1464081920,
+ "id": "1ac0a47b-06de-44cd-a014-79981f1dec19",
+ "inputs": {},
+ "interval": -1,
+ "name": "cluster_create_7e0c9843",
+ "outputs": {},
+ "owner": null,
+ "start_time": 1464081920,
+ "status": "SUCCEEDED",
+ "status_reason": "Action completed successfully.",
+ "target": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "timeout": 3600,
+ "updated_at": null
+ },
+ {
+ "action": "NODE_CREATE",
+ "cause": "RPC Request",
+ "created_at": "2016-05-24T09:25:16.000000",
+ "data": {},
+ "depended_by": [],
+ "depends_on": [],
+ "end_time": 1464081920,
+ "id": "48f83782-bf02-4308-b8e8-a6c3b6e816b0",
+ "inputs": {},
+ "interval": -1,
+ "name": "node_create_d3451489",
+ "outputs": {},
+ "owner": null,
+ "start_time": 1464081920,
+ "status": "FAILED",
+ "status_reason": "Node creation failed.",
+ "target": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
+ "timeout": 3600,
+ "updated_at": null
+ },
+ {
+ "action": "CLUSTER_ATTACH_POLICY",
+ "cause": "RPC Request",
+ "created_at": "2016-05-24T09:25:18.000000",
+ "data": {},
+ "depended_by": [],
+ "depends_on": [],
+ "end_time": 1464081920,
+ "id": "11d999e8-2513-4751-8bfd-7566f4129107",
+ "inputs": {
+ "enabled": true,
+ "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199"
+ },
+ "interval": -1,
+ "name": "attach_policy_7e0c9843",
+ "outputs": {},
+ "owner": null,
+ "start_time": 1464081920,
+ "status": "SUCCEEDED",
+ "status_reason": "Action completed successfully.",
+ "target": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "timeout": 3600,
+ "updated_at": null
+ },
+ {
+ "action": "NODE_RECOVER",
+ "cause": "RPC Request",
+ "created_at": "2016-05-24T09:25:18.000000",
+ "data": {},
+ "depended_by": [],
+ "depends_on": [],
+ "end_time": 1464081920,
+ "id": "66560462-f297-4cf7-8e40-75a447f8a975",
+ "inputs": {
+ "operation": "rebuild"
+ },
+ "interval": -1,
+ "name": "node_recover_d3451489",
+ "outputs": {},
+ "owner": null,
+ "start_time": 1464081920,
+ "status": "FAILED",
+ "status_reason": "Node recover failed.",
+ "target": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
+ "timeout": 3600,
+ "updated_at": null
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/build_info.json b/core-test/src/main/resources/senlin/v1/build_info.json
index 02e33c384..2864f9320 100644
--- a/core-test/src/main/resources/senlin/v1/build_info.json
+++ b/core-test/src/main/resources/senlin/v1/build_info.json
@@ -1,10 +1,10 @@
{
- "build_info": {
- "api": {
- "revision": "1.0"
- },
- "engine": {
- "revision": "2.0"
- }
+ "build_info": {
+ "api": {
+ "revision": "1.0"
+ },
+ "engine": {
+ "revision": "2.0"
}
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/cluster.json b/core-test/src/main/resources/senlin/v1/cluster.json
index e852cb948..23638627f 100644
--- a/core-test/src/main/resources/senlin/v1/cluster.json
+++ b/core-test/src/main/resources/senlin/v1/cluster.json
@@ -1,24 +1,24 @@
{
- "cluster": {
- "created_at": "2015-02-11T15:13:20",
- "data": {},
- "desired_capacity": 0,
- "domain": null,
- "id": "45edadcb-c73b-4920-87e1-518b2f29f54b",
- "init_at": "2015-02-10T14:26:10",
- "max_size": -1,
- "metadata": {},
- "min_size": 0,
- "name": "test_cluster",
- "nodes": [],
- "policies": [],
- "profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
- "profile_name": "mystack",
- "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
- "status": "ACTIVE",
- "status_reason": "Creation succeeded",
- "timeout": 3600,
- "updated_at": null,
- "user": "5e5bf8027826429c96af157f68dc9072"
- }
+ "cluster": {
+ "created_at": "2015-02-11T15:13:20",
+ "data": {},
+ "desired_capacity": 0,
+ "domain": null,
+ "id": "45edadcb-c73b-4920-87e1-518b2f29f54b",
+ "init_at": "2015-02-10T14:26:10",
+ "max_size": -1,
+ "metadata": {},
+ "min_size": 0,
+ "name": "test_cluster",
+ "nodes": [],
+ "policies": [],
+ "profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
+ "profile_name": "mystack",
+ "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
+ "status": "ACTIVE",
+ "status_reason": "Creation succeeded",
+ "timeout": 3600,
+ "updated_at": null,
+ "user": "5e5bf8027826429c96af157f68dc9072"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/cluster_policies.json b/core-test/src/main/resources/senlin/v1/cluster_policies.json
index 7529488cf..5c2ef9590 100644
--- a/core-test/src/main/resources/senlin/v1/cluster_policies.json
+++ b/core-test/src/main/resources/senlin/v1/cluster_policies.json
@@ -1,22 +1,22 @@
{
- "cluster_policies": [
- {
- "cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
- "cluster_name": "cluster4",
- "enabled": true,
- "id": "06be3a1f-b238-4a96-a737-ceec5714087e",
- "policy_id": "714fe676-a08f-4196-b7af-61d52eeded15",
- "policy_name": "dp01",
- "policy_type": "senlin.policy.deletion-1.0"
- },
- {
- "cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
- "cluster_name": "cluster4",
- "enabled": true,
- "id": "abddc45e-ac31-4f90-93cc-db55a7d8dd6d",
- "policy_id": "e026e09f-a3e9-4dad-a1b9-d7ba316026a1",
- "policy_name": "sp1",
- "policy_type": "senlin.policy.scaling-1.0"
- }
- ]
+ "cluster_policies": [
+ {
+ "cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
+ "cluster_name": "cluster4",
+ "enabled": true,
+ "id": "06be3a1f-b238-4a96-a737-ceec5714087e",
+ "policy_id": "714fe676-a08f-4196-b7af-61d52eeded15",
+ "policy_name": "dp01",
+ "policy_type": "senlin.policy.deletion-1.0"
+ },
+ {
+ "cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
+ "cluster_name": "cluster4",
+ "enabled": true,
+ "id": "abddc45e-ac31-4f90-93cc-db55a7d8dd6d",
+ "policy_id": "e026e09f-a3e9-4dad-a1b9-d7ba316026a1",
+ "policy_name": "sp1",
+ "policy_type": "senlin.policy.scaling-1.0"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/cluster_policy.json b/core-test/src/main/resources/senlin/v1/cluster_policy.json
index 9a8d91929..87cebaf00 100644
--- a/core-test/src/main/resources/senlin/v1/cluster_policy.json
+++ b/core-test/src/main/resources/senlin/v1/cluster_policy.json
@@ -1,11 +1,11 @@
{
- "cluster_policy": {
- "cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
- "cluster_name": "cluster4",
- "enabled": true,
- "id": "06be3a1f-b238-4a96-a737-ceec5714087e",
- "policy_id": "714fe676-a08f-4196-b7af-61d52eeded15",
- "policy_name": "dp01",
- "policy_type": "senlin.policy.deletion-1.0"
- }
+ "cluster_policy": {
+ "cluster_id": "7d85f602-a948-4a30-afd4-e84f47471c15",
+ "cluster_name": "cluster4",
+ "enabled": true,
+ "id": "06be3a1f-b238-4a96-a737-ceec5714087e",
+ "policy_id": "714fe676-a08f-4196-b7af-61d52eeded15",
+ "policy_name": "dp01",
+ "policy_type": "senlin.policy.deletion-1.0"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/clusters.json b/core-test/src/main/resources/senlin/v1/clusters.json
index 51a044ba7..dda101beb 100644
--- a/core-test/src/main/resources/senlin/v1/clusters.json
+++ b/core-test/src/main/resources/senlin/v1/clusters.json
@@ -1,112 +1,112 @@
{
- "clusters": [
- {
- "created_at": "2016-05-24T09:25:16",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "init_at": "2016-05-24T09:25:15",
- "max_size": -1,
- "metadata": {},
- "min_size": 0,
- "name": "lion-cluster",
- "nodes": [
- "d3451489-708b-4bd0-a147-a0c02dd9cb00",
- "b17c69ae-6315-4d9b-b4e5-88c288725bf5"
- ],
- "policies": [
- "be24729e-c60c-4f06-9ba4-2d3872c23199"
- ],
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-24T09:25:18",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "created_at": "2016-05-24T09:26:09",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "b20496b9-d90c-4ad2-804d-5032624eebbc",
- "init_at": "2016-05-24T09:26:09",
- "max_size": -1,
- "metadata": {},
- "min_size": 0,
- "name": "lion-cluster",
- "nodes": [
- "58bf0682-cc63-41bf-ab04-c3f27db2b478",
- "27dc9555-3de2-479a-9e55-032d1e4bff1b"
- ],
- "policies": [
- "93f3f9d1-3a58-4b4b-90d0-c0493e0379a0"
- ],
- "profile_id": "4a746f95-eb4f-488f-b8dc-b1789b14cafd",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-24T09:26:12",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "created_at": "2016-05-25T08:34:02",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "5938380f-6903-4322-bdd9-d0597a0b6f41",
- "init_at": "2016-05-25T08:34:02",
- "max_size": -1,
- "metadata": {},
- "min_size": 0,
- "name": "lion-cluster",
- "nodes": [
- "3437e6d0-e116-4863-ad45-f9e30721af5c",
- "69f1a026-c397-474e-ab57-0003a882ddeb"
- ],
- "policies": [
- "390ff9e8-8ad3-464c-9535-c895b3f1bda3"
- ],
- "profile_id": "ae7c8828-486a-4d35-9ee7-f1985362ba81",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-25T08:34:15",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "created_at": "2016-05-25T08:38:40",
- "data": {},
- "desired_capacity": 0,
- "domain": null,
- "id": "17192bab-aca9-4a81-98d7-822f4d62c28b",
- "init_at": "2016-05-25T08:38:39",
- "max_size": -1,
- "metadata": {},
- "min_size": 0,
- "name": "lion-cluster",
- "nodes": [
- "59b8b6db-c550-44ed-9c4b-6a41397af9e3",
- "2955c3f6-4804-45c9-9b70-04ee4ed3941f"
- ],
- "policies": [
- "ee76b62b-e303-4abf-9fe4-7376318ffc92"
- ],
- "profile_id": "61ae5541-ccd5-45e2-8e68-05ae2af613e2",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ACTIVE",
- "status_reason": "Node lion-node123: Creation in progress",
- "timeout": 3600,
- "updated_at": "2016-05-25T08:39:00",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
- ]
+ "clusters": [
+ {
+ "created_at": "2016-05-24T09:25:16",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "init_at": "2016-05-24T09:25:15",
+ "max_size": -1,
+ "metadata": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "nodes": [
+ "d3451489-708b-4bd0-a147-a0c02dd9cb00",
+ "b17c69ae-6315-4d9b-b4e5-88c288725bf5"
+ ],
+ "policies": [
+ "be24729e-c60c-4f06-9ba4-2d3872c23199"
+ ],
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-24T09:25:18",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-24T09:26:09",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "b20496b9-d90c-4ad2-804d-5032624eebbc",
+ "init_at": "2016-05-24T09:26:09",
+ "max_size": -1,
+ "metadata": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "nodes": [
+ "58bf0682-cc63-41bf-ab04-c3f27db2b478",
+ "27dc9555-3de2-479a-9e55-032d1e4bff1b"
+ ],
+ "policies": [
+ "93f3f9d1-3a58-4b4b-90d0-c0493e0379a0"
+ ],
+ "profile_id": "4a746f95-eb4f-488f-b8dc-b1789b14cafd",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-24T09:26:12",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:34:02",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "5938380f-6903-4322-bdd9-d0597a0b6f41",
+ "init_at": "2016-05-25T08:34:02",
+ "max_size": -1,
+ "metadata": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "nodes": [
+ "3437e6d0-e116-4863-ad45-f9e30721af5c",
+ "69f1a026-c397-474e-ab57-0003a882ddeb"
+ ],
+ "policies": [
+ "390ff9e8-8ad3-464c-9535-c895b3f1bda3"
+ ],
+ "profile_id": "ae7c8828-486a-4d35-9ee7-f1985362ba81",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-25T08:34:15",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:38:40",
+ "data": {},
+ "desired_capacity": 0,
+ "domain": null,
+ "id": "17192bab-aca9-4a81-98d7-822f4d62c28b",
+ "init_at": "2016-05-25T08:38:39",
+ "max_size": -1,
+ "metadata": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "nodes": [
+ "59b8b6db-c550-44ed-9c4b-6a41397af9e3",
+ "2955c3f6-4804-45c9-9b70-04ee4ed3941f"
+ ],
+ "policies": [
+ "ee76b62b-e303-4abf-9fe4-7376318ffc92"
+ ],
+ "profile_id": "61ae5541-ccd5-45e2-8e68-05ae2af613e2",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ACTIVE",
+ "status_reason": "Node lion-node123: Creation in progress",
+ "timeout": 3600,
+ "updated_at": "2016-05-25T08:39:00",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/event.json b/core-test/src/main/resources/senlin/v1/event.json
index dc364ce16..4f116116f 100644
--- a/core-test/src/main/resources/senlin/v1/event.json
+++ b/core-test/src/main/resources/senlin/v1/event.json
@@ -1,16 +1,16 @@
{
- "event": {
- "action": "create",
- "cluster_id": null,
- "id": "2d255b9c-8f36-41a2-a137-c0175ccc29c3",
- "level": "20",
- "obj_id": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
- "obj_name": "node009",
- "obj_type": "NODE",
- "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
- "status": "CREATING",
- "status_reason": "Initializing",
- "timestamp": "2015-03-05T08:53:15",
- "user": "a21ded6060534d99840658a777c2af5a"
- }
+ "event": {
+ "action": "create",
+ "cluster_id": null,
+ "id": "2d255b9c-8f36-41a2-a137-c0175ccc29c3",
+ "level": "20",
+ "obj_id": "0df0931b-e251-4f2e-8719-4ebfda3627ba",
+ "obj_name": "node009",
+ "obj_type": "NODE",
+ "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
+ "status": "CREATING",
+ "status_reason": "Initializing",
+ "timestamp": "2015-03-05T08:53:15",
+ "user": "a21ded6060534d99840658a777c2af5a"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/events.json b/core-test/src/main/resources/senlin/v1/events.json
index 39556974e..fa47c1dc1 100644
--- a/core-test/src/main/resources/senlin/v1/events.json
+++ b/core-test/src/main/resources/senlin/v1/events.json
@@ -1,292 +1,292 @@
{
- "events": [
- {
- "action": "CLUSTER_CREATE",
- "cluster": {
- "created_at": "2016-05-24T09:25:16.000000",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "init_at": "2016-05-24T09:25:15.000000",
- "max_size": -1,
- "meta_data": {},
- "min_size": 0,
- "name": "lion-cluster",
- "next_index": 3,
- "parent": null,
- "policies": [
- {
- "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "data": null,
- "enabled": true,
- "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
- "last_op": "2016-05-24T09:25:18.000000",
- "policy": {
- "cooldown": null,
- "created_at": "2016-05-24T09:25:17.000000",
- "data": {},
- "domain": null,
- "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "level": null,
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "priority": 100
- }
- ],
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-24T09:25:18.000000",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
+ "events": [
+ {
+ "action": "CLUSTER_CREATE",
+ "cluster": {
+ "created_at": "2016-05-24T09:25:16.000000",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "init_at": "2016-05-24T09:25:15.000000",
+ "max_size": -1,
+ "meta_data": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "next_index": 3,
+ "parent": null,
+ "policies": [
+ {
"cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "id": "b6d7b823-1811-492b-8a54-fb15a5a0bafe",
- "level": "20",
- "meta_data": {},
- "obj_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "obj_name": "cluster_create_7e0c9843",
- "obj_type": "CLUSTERACTION",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "START",
- "status_reason": "The action is being processed.",
- "timestamp": "2016-05-24T09:25:15",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "CLUSTER_CREATE",
- "cluster": {
- "created_at": "2016-05-24T09:25:16.000000",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "init_at": "2016-05-24T09:25:15.000000",
- "max_size": -1,
- "meta_data": {},
- "min_size": 0,
- "name": "lion-cluster",
- "next_index": 3,
- "parent": null,
- "policies": [
- {
- "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "data": null,
- "enabled": true,
- "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
- "last_op": "2016-05-24T09:25:18.000000",
- "policy": {
- "cooldown": null,
- "created_at": "2016-05-24T09:25:17.000000",
- "data": {},
- "domain": null,
- "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "level": null,
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "priority": 100
- }
- ],
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-24T09:25:18.000000",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "data": null,
+ "enabled": true,
+ "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
+ "last_op": "2016-05-24T09:25:18.000000",
+ "policy": {
+ "cooldown": null,
+ "created_at": "2016-05-24T09:25:17.000000",
+ "data": {},
+ "domain": null,
+ "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "level": null,
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
+ },
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
},
+ "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "priority": 100
+ }
+ ],
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-24T09:25:18.000000",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "id": "b6d7b823-1811-492b-8a54-fb15a5a0bafe",
+ "level": "20",
+ "meta_data": {},
+ "obj_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "obj_name": "cluster_create_7e0c9843",
+ "obj_type": "CLUSTERACTION",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "START",
+ "status_reason": "The action is being processed.",
+ "timestamp": "2016-05-24T09:25:15",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "CLUSTER_CREATE",
+ "cluster": {
+ "created_at": "2016-05-24T09:25:16.000000",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "init_at": "2016-05-24T09:25:15.000000",
+ "max_size": -1,
+ "meta_data": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "next_index": 3,
+ "parent": null,
+ "policies": [
+ {
"cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "id": "1c4fb2b1-14b3-4188-b8ac-62936d8917f4",
- "level": "20",
- "meta_data": {},
- "obj_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "obj_name": "cluster_create_7e0c9843",
- "obj_type": "CLUSTERACTION",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "SUCCEEDED",
- "status_reason": "Cluster creation succeeded.",
- "timestamp": "2016-05-24T09:25:16",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "NODE_CREATE",
- "cluster": {
- "created_at": "2016-05-24T09:25:16.000000",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "init_at": "2016-05-24T09:25:15.000000",
- "max_size": -1,
- "meta_data": {},
- "min_size": 0,
- "name": "lion-cluster",
- "next_index": 3,
- "parent": null,
- "policies": [
- {
- "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "data": null,
- "enabled": true,
- "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
- "last_op": "2016-05-24T09:25:18.000000",
- "policy": {
- "cooldown": null,
- "created_at": "2016-05-24T09:25:17.000000",
- "data": {},
- "domain": null,
- "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "level": null,
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "priority": 100
- }
- ],
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-24T09:25:18.000000",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "data": null,
+ "enabled": true,
+ "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
+ "last_op": "2016-05-24T09:25:18.000000",
+ "policy": {
+ "cooldown": null,
+ "created_at": "2016-05-24T09:25:17.000000",
+ "data": {},
+ "domain": null,
+ "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "level": null,
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
+ },
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
},
+ "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "priority": 100
+ }
+ ],
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-24T09:25:18.000000",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "id": "1c4fb2b1-14b3-4188-b8ac-62936d8917f4",
+ "level": "20",
+ "meta_data": {},
+ "obj_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "obj_name": "cluster_create_7e0c9843",
+ "obj_type": "CLUSTERACTION",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "SUCCEEDED",
+ "status_reason": "Cluster creation succeeded.",
+ "timestamp": "2016-05-24T09:25:16",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "NODE_CREATE",
+ "cluster": {
+ "created_at": "2016-05-24T09:25:16.000000",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "init_at": "2016-05-24T09:25:15.000000",
+ "max_size": -1,
+ "meta_data": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "next_index": 3,
+ "parent": null,
+ "policies": [
+ {
"cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "id": "b60aa380-b164-449a-8a6a-69067eb3dd2f",
- "level": "20",
- "meta_data": {},
- "obj_id": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
- "obj_name": "node_create_d3451489",
- "obj_type": "NODEACTION",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "START",
- "status_reason": "The action is being processed.",
- "timestamp": "2016-05-24T09:25:16",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "NODE_CREATE",
- "cluster": {
- "created_at": "2016-05-24T09:25:16.000000",
- "data": {},
- "desired_capacity": 2,
- "domain": null,
- "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "init_at": "2016-05-24T09:25:15.000000",
- "max_size": -1,
- "meta_data": {},
- "min_size": 0,
- "name": "lion-cluster",
- "next_index": 3,
- "parent": null,
- "policies": [
- {
- "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "data": null,
- "enabled": true,
- "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
- "last_op": "2016-05-24T09:25:18.000000",
- "policy": {
- "cooldown": null,
- "created_at": "2016-05-24T09:25:17.000000",
- "data": {},
- "domain": null,
- "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "level": null,
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "priority": 100
- }
- ],
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "ERROR",
- "status_reason": "Failed in creating nodes.",
- "timeout": 3600,
- "updated_at": "2016-05-24T09:25:18.000000",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "data": null,
+ "enabled": true,
+ "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
+ "last_op": "2016-05-24T09:25:18.000000",
+ "policy": {
+ "cooldown": null,
+ "created_at": "2016-05-24T09:25:17.000000",
+ "data": {},
+ "domain": null,
+ "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "level": null,
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
+ },
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
},
+ "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "priority": 100
+ }
+ ],
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-24T09:25:18.000000",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "id": "b60aa380-b164-449a-8a6a-69067eb3dd2f",
+ "level": "20",
+ "meta_data": {},
+ "obj_id": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
+ "obj_name": "node_create_d3451489",
+ "obj_type": "NODEACTION",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "START",
+ "status_reason": "The action is being processed.",
+ "timestamp": "2016-05-24T09:25:16",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "NODE_CREATE",
+ "cluster": {
+ "created_at": "2016-05-24T09:25:16.000000",
+ "data": {},
+ "desired_capacity": 2,
+ "domain": null,
+ "id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "init_at": "2016-05-24T09:25:15.000000",
+ "max_size": -1,
+ "meta_data": {},
+ "min_size": 0,
+ "name": "lion-cluster",
+ "next_index": 3,
+ "parent": null,
+ "policies": [
+ {
"cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "id": "f6826d83-baec-4a20-975b-3c96cfeb8dd4",
- "level": "40",
- "meta_data": {},
- "obj_id": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
- "obj_name": "node_create_d3451489",
- "obj_type": "NODEACTION",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "status": "FAILED",
- "status_reason": "Node creation failed.",
- "timestamp": "2016-05-24T09:25:17",
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
- ]
+ "data": null,
+ "enabled": true,
+ "id": "d20e839a-1e67-4526-a2f0-f91a008f1392",
+ "last_op": "2016-05-24T09:25:18.000000",
+ "policy": {
+ "cooldown": null,
+ "created_at": "2016-05-24T09:25:17.000000",
+ "data": {},
+ "domain": null,
+ "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "level": null,
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
+ },
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ "policy_id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "priority": 100
+ }
+ ],
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "ERROR",
+ "status_reason": "Failed in creating nodes.",
+ "timeout": 3600,
+ "updated_at": "2016-05-24T09:25:18.000000",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "id": "f6826d83-baec-4a20-975b-3c96cfeb8dd4",
+ "level": "40",
+ "meta_data": {},
+ "obj_id": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
+ "obj_name": "node_create_d3451489",
+ "obj_type": "NODEACTION",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "status": "FAILED",
+ "status_reason": "Node creation failed.",
+ "timestamp": "2016-05-24T09:25:17",
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/node.json b/core-test/src/main/resources/senlin/v1/node.json
index 0e9cfe479..d9c415343 100644
--- a/core-test/src/main/resources/senlin/v1/node.json
+++ b/core-test/src/main/resources/senlin/v1/node.json
@@ -1,22 +1,22 @@
{
- "node": {
- "cluster_id": null,
- "created_at": "2015-02-10T12:03:16",
- "data": {},
- "domain": null,
- "id": "d5779bb0-f0a0-49c9-88cc-6f078adb5a0b",
- "index": -1,
- "init_at": "2015-02-10T12:03:13",
- "metadata": {},
- "name": "node1",
- "physical_id": "f41537fa-22ab-4bea-94c0-c874e19d0c80",
- "profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
- "profile_name": "mystack",
- "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
- "role": null,
- "status": "ACTIVE",
- "status_reason": "Creation succeeded",
- "updated_at": "2015-03-04T04:58:27",
- "user": "5e5bf8027826429c96af157f68dc9072"
- }
+ "node": {
+ "cluster_id": null,
+ "created_at": "2015-02-10T12:03:16",
+ "data": {},
+ "domain": null,
+ "id": "d5779bb0-f0a0-49c9-88cc-6f078adb5a0b",
+ "index": -1,
+ "init_at": "2015-02-10T12:03:13",
+ "metadata": {},
+ "name": "node1",
+ "physical_id": "f41537fa-22ab-4bea-94c0-c874e19d0c80",
+ "profile_id": "edc63d0a-2ca4-48fa-9854-27926da76a4a",
+ "profile_name": "mystack",
+ "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
+ "role": null,
+ "status": "ACTIVE",
+ "status_reason": "Creation succeeded",
+ "updated_at": "2015-03-04T04:58:27",
+ "user": "5e5bf8027826429c96af157f68dc9072"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/nodes.json b/core-test/src/main/resources/senlin/v1/nodes.json
index e80cf0641..10a09245b 100644
--- a/core-test/src/main/resources/senlin/v1/nodes.json
+++ b/core-test/src/main/resources/senlin/v1/nodes.json
@@ -1,64 +1,64 @@
{
- "nodes": [
- {
- "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "created_at": null,
- "data": {},
- "domain": null,
- "id": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
- "index": 1,
- "init_at": "2016-05-24T09:25:16",
- "metadata": {},
- "name": "lion-node123",
- "physical_id": null,
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "role": "master",
- "status": "ERROR",
- "status_reason": "Profile failed in creating node due to: Service Unavailable",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
- "created_at": null,
- "data": {},
- "domain": null,
- "id": "b17c69ae-6315-4d9b-b4e5-88c288725bf5",
- "index": 2,
- "init_at": "2016-05-24T09:25:21",
- "metadata": {},
- "name": "node-7e0c9843-002",
- "physical_id": null,
- "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "role": "",
- "status": "ERROR",
- "status_reason": "Profile failed in creating node due to: Service Unavailable",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "cluster_id": "b20496b9-d90c-4ad2-804d-5032624eebbc",
- "created_at": null,
- "data": {},
- "domain": null,
- "id": "58bf0682-cc63-41bf-ab04-c3f27db2b478",
- "index": 1,
- "init_at": "2016-05-24T09:26:10",
- "metadata": {},
- "name": "lion-node123",
- "physical_id": null,
- "profile_id": "4a746f95-eb4f-488f-b8dc-b1789b14cafd",
- "profile_name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "role": "master",
- "status": "ERROR",
- "status_reason": "Profile failed in creating node due to: Service Unavailable",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
- ]
+ "nodes": [
+ {
+ "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "created_at": null,
+ "data": {},
+ "domain": null,
+ "id": "d3451489-708b-4bd0-a147-a0c02dd9cb00",
+ "index": 1,
+ "init_at": "2016-05-24T09:25:16",
+ "metadata": {},
+ "name": "lion-node123",
+ "physical_id": null,
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "role": "master",
+ "status": "ERROR",
+ "status_reason": "Profile failed in creating node due to: Service Unavailable",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "cluster_id": "7e0c9843-54bf-4823-b545-d2f6ffb4ed25",
+ "created_at": null,
+ "data": {},
+ "domain": null,
+ "id": "b17c69ae-6315-4d9b-b4e5-88c288725bf5",
+ "index": 2,
+ "init_at": "2016-05-24T09:25:21",
+ "metadata": {},
+ "name": "node-7e0c9843-002",
+ "physical_id": null,
+ "profile_id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "role": "",
+ "status": "ERROR",
+ "status_reason": "Profile failed in creating node due to: Service Unavailable",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "cluster_id": "b20496b9-d90c-4ad2-804d-5032624eebbc",
+ "created_at": null,
+ "data": {},
+ "domain": null,
+ "id": "58bf0682-cc63-41bf-ab04-c3f27db2b478",
+ "index": 1,
+ "init_at": "2016-05-24T09:26:10",
+ "metadata": {},
+ "name": "lion-node123",
+ "physical_id": null,
+ "profile_id": "4a746f95-eb4f-488f-b8dc-b1789b14cafd",
+ "profile_name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "role": "master",
+ "status": "ERROR",
+ "status_reason": "Profile failed in creating node due to: Service Unavailable",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/policies.json b/core-test/src/main/resources/senlin/v1/policies.json
index 3911f9fcf..c1e56d77f 100644
--- a/core-test/src/main/resources/senlin/v1/policies.json
+++ b/core-test/src/main/resources/senlin/v1/policies.json
@@ -1,211 +1,211 @@
{
- "policies": [
- {
- "created_at": "2016-05-24T09:25:17",
- "data": {},
- "domain": null,
- "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "policies": [
+ {
+ "created_at": "2016-05-24T09:25:17",
+ "data": {},
+ "domain": null,
+ "id": "be24729e-c60c-4f06-9ba4-2d3872c23199",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-24T09:26:11",
- "data": {},
- "domain": null,
- "id": "93f3f9d1-3a58-4b4b-90d0-c0493e0379a0",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-24T09:26:11",
+ "data": {},
+ "domain": null,
+ "id": "93f3f9d1-3a58-4b4b-90d0-c0493e0379a0",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-25T08:34:11",
- "data": {},
- "domain": null,
- "id": "390ff9e8-8ad3-464c-9535-c895b3f1bda3",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:34:11",
+ "data": {},
+ "domain": null,
+ "id": "390ff9e8-8ad3-464c-9535-c895b3f1bda3",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-25T08:38:40",
- "data": {},
- "domain": null,
- "id": "ee76b62b-e303-4abf-9fe4-7376318ffc92",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:38:40",
+ "data": {},
+ "domain": null,
+ "id": "ee76b62b-e303-4abf-9fe4-7376318ffc92",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-25T08:45:08",
- "data": {},
- "domain": null,
- "id": "e7837671-cd5e-42c1-921f-68c2b90a2173",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:45:08",
+ "data": {},
+ "domain": null,
+ "id": "e7837671-cd5e-42c1-921f-68c2b90a2173",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-25T08:58:55",
- "data": {},
- "domain": null,
- "id": "fc1965a5-043d-4678-abee-3c4a16048a6d",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:58:55",
+ "data": {},
+ "domain": null,
+ "id": "fc1965a5-043d-4678-abee-3c4a16048a6d",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-26T08:29:40",
- "data": {},
- "domain": null,
- "id": "4a994503-b5a2-4259-9875-db9c1b93b001",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-26T08:29:40",
+ "data": {},
+ "domain": null,
+ "id": "4a994503-b5a2-4259-9875-db9c1b93b001",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-27T06:34:06",
- "data": {},
- "domain": null,
- "id": "87c6ea84-98c9-458a-93b1-9c2752bf06b9",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-27T06:34:06",
+ "data": {},
+ "domain": null,
+ "id": "87c6ea84-98c9-458a-93b1-9c2752bf06b9",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
},
- {
- "created_at": "2016-05-29T07:34:36",
- "data": {},
- "domain": null,
- "id": "5f1dba78-4fb6-416d-bfaf-66c48d403d7d",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
- },
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
- ]
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-29T07:34:36",
+ "data": {},
+ "domain": null,
+ "id": "5f1dba78-4fb6-416d-bfaf-66c48d403d7d",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
+ },
+ "event": "CLUSTER_SCALE_IN"
+ },
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/policy.json b/core-test/src/main/resources/senlin/v1/policy.json
index 5dcfa7004..ba3f05f13 100644
--- a/core-test/src/main/resources/senlin/v1/policy.json
+++ b/core-test/src/main/resources/senlin/v1/policy.json
@@ -1,25 +1,25 @@
{
- "policy": {
- "created_at": "2016-05-29T07:35:07",
- "data": {},
- "domain": null,
- "id": "3ad6a92c-f969-4d69-8a83-0301f319fc78",
- "name": "lion-policy123",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "adjustment": {
- "min_step": 1,
- "number": 1,
- "type": "CHANGE_IN_CAPACITY"
- },
- "event": "CLUSTER_SCALE_IN"
- },
- "type": "senlin.policy.scaling",
- "version": "1.0"
+ "policy": {
+ "created_at": "2016-05-29T07:35:07",
+ "data": {},
+ "domain": null,
+ "id": "3ad6a92c-f969-4d69-8a83-0301f319fc78",
+ "name": "lion-policy123",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "adjustment": {
+ "min_step": 1,
+ "number": 1,
+ "type": "CHANGE_IN_CAPACITY"
},
- "type": "senlin.policy.scaling-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
+ "event": "CLUSTER_SCALE_IN"
+ },
+ "type": "senlin.policy.scaling",
+ "version": "1.0"
+ },
+ "type": "senlin.policy.scaling-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/policy_type.json b/core-test/src/main/resources/senlin/v1/policy_type.json
index d2c514299..f02e9a794 100644
--- a/core-test/src/main/resources/senlin/v1/policy_type.json
+++ b/core-test/src/main/resources/senlin/v1/policy_type.json
@@ -1,42 +1,42 @@
{
- "policy_type": {
- "name": "senlin.policy.deletion",
- "schema": {
- "criteria": {
- "constraints": [
- {
- "constraint": [
- "OLDEST_FIRST",
- "OLDEST_PROFILE_FRIST",
- "YOUNGEST_FIRST",
- "RANDOM"
- ],
- "type": "AllowedValues"
- }
- ],
- "default": "RANDOM",
- "description": "Criteria used in selecting candidates for deletion",
- "required": false,
- "type": "String"
- },
- "destroy_after_deletion": {
- "default": true,
- "description": "Whether a node should be completely destroyed after deletion. Default to true",
- "required": false,
- "type": "Boolean"
- },
- "grace_period": {
- "default": 0,
- "description": "Number of seconds before real deletion happens.",
- "required": false,
- "type": "Integer"
- },
- "reduce_desired_capacity": {
- "default": false,
- "description": "Whether the desired capacity of the cluster should be reduced along the deletion. Default to false.",
- "required": false,
- "type": "Boolean"
- }
- }
+ "policy_type": {
+ "name": "senlin.policy.deletion",
+ "schema": {
+ "criteria": {
+ "constraints": [
+ {
+ "constraint": [
+ "OLDEST_FIRST",
+ "OLDEST_PROFILE_FRIST",
+ "YOUNGEST_FIRST",
+ "RANDOM"
+ ],
+ "type": "AllowedValues"
+ }
+ ],
+ "default": "RANDOM",
+ "description": "Criteria used in selecting candidates for deletion",
+ "required": false,
+ "type": "String"
+ },
+ "destroy_after_deletion": {
+ "default": true,
+ "description": "Whether a node should be completely destroyed after deletion. Default to true",
+ "required": false,
+ "type": "Boolean"
+ },
+ "grace_period": {
+ "default": 0,
+ "description": "Number of seconds before real deletion happens.",
+ "required": false,
+ "type": "Integer"
+ },
+ "reduce_desired_capacity": {
+ "default": false,
+ "description": "Whether the desired capacity of the cluster should be reduced along the deletion. Default to false.",
+ "required": false,
+ "type": "Boolean"
+ }
}
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/policy_types.json b/core-test/src/main/resources/senlin/v1/policy_types.json
index 7dcb25205..44875c5b7 100644
--- a/core-test/src/main/resources/senlin/v1/policy_types.json
+++ b/core-test/src/main/resources/senlin/v1/policy_types.json
@@ -1,22 +1,22 @@
{
- "policy_types": [
- {
- "name": "ScalingPolicy"
- },
- {
- "name": "PlacementPolicy"
- },
- {
- "name": "DeletionPolicy"
- },
- {
- "name": "LoadBalancingPolicy"
- },
- {
- "name": "HealthPolicy"
- },
- {
- "name": "UpdatePolicy"
- }
- ]
+ "policy_types": [
+ {
+ "name": "ScalingPolicy"
+ },
+ {
+ "name": "PlacementPolicy"
+ },
+ {
+ "name": "DeletionPolicy"
+ },
+ {
+ "name": "LoadBalancingPolicy"
+ },
+ {
+ "name": "HealthPolicy"
+ },
+ {
+ "name": "UpdatePolicy"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/profile.json b/core-test/src/main/resources/senlin/v1/profile.json
index ed75edca7..3c6d6c8d9 100644
--- a/core-test/src/main/resources/senlin/v1/profile.json
+++ b/core-test/src/main/resources/senlin/v1/profile.json
@@ -1,94 +1,94 @@
{
- "profile": {
- "created_at": "2016-05-29T07:35:06",
- "domain": null,
- "id": "dc89e919-91f5-4733-81b0-91257c24bba1",
- "metadata": {},
- "name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
- "properties": {
- "context": {
- "region_name": "RegionOne"
+ "profile": {
+ "created_at": "2016-05-29T07:35:06",
+ "domain": null,
+ "id": "dc89e919-91f5-4733-81b0-91257c24bba1",
+ "metadata": {},
+ "name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "context": {
+ "region_name": "RegionOne"
+ },
+ "disable_rollback": true,
+ "environment": {},
+ "files": {},
+ "parameters": {
+ "server_name": "my_cirros_server"
+ },
+ "template": {
+ "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
+ "heat_template_version": "2014-10-16",
+ "parameters": {
+ "cpu": {
+ "default": 4,
+ "description": "cpu to boot with",
+ "type": "string"
+ },
+ "disk": {
+ "default": 128,
+ "description": "disk to boot with",
+ "type": "string"
+ },
+ "image": {
+ "default": "cirros",
+ "description": "Name or ID of the image to use for the instance.",
+ "type": "string"
+ },
+ "mem": {
+ "default": 16,
+ "description": "mem to boot with",
+ "type": "string"
+ },
+ "public_net": {
+ "default": "provider",
+ "description": "ID or name of public network where floating IP to be created",
+ "type": "string"
+ },
+ "server_name": {
+ "default": "my_server",
+ "description": "Name for the instance to be created",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "my_server": {
+ "properties": {
+ "cpu": {
+ "get_param": "cpu"
},
- "disable_rollback": true,
- "environment": {},
- "files": {},
- "parameters": {
- "server_name": "my_cirros_server"
+ "disk": {
+ "get_param": "disk"
},
- "template": {
- "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
- "heat_template_version": "2014-10-16",
- "parameters": {
- "cpu": {
- "default": 4,
- "description": "cpu to boot with",
- "type": "string"
- },
- "disk": {
- "default": 128,
- "description": "disk to boot with",
- "type": "string"
- },
- "image": {
- "default": "cirros",
- "description": "Name or ID of the image to use for the instance.",
- "type": "string"
- },
- "mem": {
- "default": 16,
- "description": "mem to boot with",
- "type": "string"
- },
- "public_net": {
- "default": "provider",
- "description": "ID or name of public network where floating IP to be created",
- "type": "string"
- },
- "server_name": {
- "default": "my_server",
- "description": "Name for the instance to be created",
- "type": "string"
- }
- },
- "resources": {
- "my_server": {
- "properties": {
- "cpu": {
- "get_param": "cpu"
- },
- "disk": {
- "get_param": "disk"
- },
- "image": {
- "get_param": "image"
- },
- "mem": {
- "get_param": "mem"
- },
- "name": {
- "get_param": "server_name"
- },
- "networks": [
- {
- "network": {
- "get_param": "public_net"
- }
- }
- ]
- },
- "type": "OS::DtCenter::Server"
- }
- }
+ "image": {
+ "get_param": "image"
},
- "timeout": 60
- },
- "type": "os.heat.stack",
- "version": 1
+ "mem": {
+ "get_param": "mem"
+ },
+ "name": {
+ "get_param": "server_name"
+ },
+ "networks": [
+ {
+ "network": {
+ "get_param": "public_net"
+ }
+ }
+ ]
+ },
+ "type": "OS::DtCenter::Server"
+ }
+ }
},
- "type": "os.heat.stack-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
+ "timeout": 60
+ },
+ "type": "os.heat.stack",
+ "version": 1
+ },
+ "type": "os.heat.stack-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/profile_type.json b/core-test/src/main/resources/senlin/v1/profile_type.json
index cfd6bc68e..348abef18 100644
--- a/core-test/src/main/resources/senlin/v1/profile_type.json
+++ b/core-test/src/main/resources/senlin/v1/profile_type.json
@@ -1,47 +1,47 @@
{
- "profile_type": {
- "name": "os.heat.stack",
- "schema": {
- "context": {
- "default": {},
- "description": "A dictionary for specifying the customized context for stack operations",
- "required": false,
- "type": "Map"
- },
- "disable_rollback": {
- "default": true,
- "description": "A boolean specifying whether a stack operation can be rolled back.",
- "required": false,
- "type": "Boolean"
- },
- "environment": {
- "default": {},
- "description": "A map that specifies the environment used for stack operations.",
- "required": false,
- "type": "Map"
- },
- "files": {
- "default": {},
- "description": "Contents of files referenced by the template, if any.",
- "required": false,
- "type": "Map"
- },
- "parameters": {
- "default": {},
- "description": "Parameters to be passed to Heat for stack operations.",
- "required": false,
- "type": "Map"
- },
- "template": {
- "description": "Heat stack template.",
- "required": true,
- "type": "Map"
- },
- "timeout": {
- "description": "A integer that specifies the number of minutes that a stack operation times out.",
- "required": false,
- "type": "Integer"
- }
- }
+ "profile_type": {
+ "name": "os.heat.stack",
+ "schema": {
+ "context": {
+ "default": {},
+ "description": "A dictionary for specifying the customized context for stack operations",
+ "required": false,
+ "type": "Map"
+ },
+ "disable_rollback": {
+ "default": true,
+ "description": "A boolean specifying whether a stack operation can be rolled back.",
+ "required": false,
+ "type": "Boolean"
+ },
+ "environment": {
+ "default": {},
+ "description": "A map that specifies the environment used for stack operations.",
+ "required": false,
+ "type": "Map"
+ },
+ "files": {
+ "default": {},
+ "description": "Contents of files referenced by the template, if any.",
+ "required": false,
+ "type": "Map"
+ },
+ "parameters": {
+ "default": {},
+ "description": "Parameters to be passed to Heat for stack operations.",
+ "required": false,
+ "type": "Map"
+ },
+ "template": {
+ "description": "Heat stack template.",
+ "required": true,
+ "type": "Map"
+ },
+ "timeout": {
+ "description": "A integer that specifies the number of minutes that a stack operation times out.",
+ "required": false,
+ "type": "Integer"
+ }
}
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/profile_types.json b/core-test/src/main/resources/senlin/v1/profile_types.json
index 850dba7ef..d9b1e6e29 100644
--- a/core-test/src/main/resources/senlin/v1/profile_types.json
+++ b/core-test/src/main/resources/senlin/v1/profile_types.json
@@ -1,13 +1,13 @@
{
- "profile_types": [
- {
- "name": "os.heat.stack"
- },
- {
- "name": "os.heat.resource"
- },
- {
- "name": "os.nova.server"
- }
- ]
+ "profile_types": [
+ {
+ "name": "os.heat.stack"
+ },
+ {
+ "name": "os.heat.resource"
+ },
+ {
+ "name": "os.nova.server"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/profiles.json b/core-test/src/main/resources/senlin/v1/profiles.json
index abadf8305..f11275896 100644
--- a/core-test/src/main/resources/senlin/v1/profiles.json
+++ b/core-test/src/main/resources/senlin/v1/profiles.json
@@ -1,372 +1,372 @@
{
- "profiles": [
- {
- "created_at": "2016-05-24T09:25:15",
- "domain": null,
- "id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
- "metadata": {},
- "name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
+ "profiles": [
+ {
+ "created_at": "2016-05-24T09:25:15",
+ "domain": null,
+ "id": "ddf94acb-492a-41cb-a278-9ba7fbb31bb7",
+ "metadata": {},
+ "name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "context": {
+ "region_name": "RegionOne"
+ },
+ "disable_rollback": true,
+ "environment": {},
+ "files": {},
+ "parameters": {
+ "server_name": "my_cirros_server"
+ },
+ "template": {
+ "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
+ "heat_template_version": "2014-10-16",
+ "parameters": {
+ "cpu": {
+ "default": 4,
+ "description": "cpu to boot with",
+ "type": "string"
+ },
+ "disk": {
+ "default": 128,
+ "description": "disk to boot with",
+ "type": "string"
+ },
+ "image": {
+ "default": "cirros",
+ "description": "Name or ID of the image to use for the instance.",
+ "type": "string"
+ },
+ "mem": {
+ "default": 16,
+ "description": "mem to boot with",
+ "type": "string"
+ },
+ "public_net": {
+ "default": "provider",
+ "description": "ID or name of public network where floating IP to be created",
+ "type": "string"
+ },
+ "server_name": {
+ "default": "my_server",
+ "description": "Name for the instance to be created",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "my_server": {
"properties": {
- "context": {
- "region_name": "RegionOne"
- },
- "disable_rollback": true,
- "environment": {},
- "files": {},
- "parameters": {
- "server_name": "my_cirros_server"
- },
- "template": {
- "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
- "heat_template_version": "2014-10-16",
- "parameters": {
- "cpu": {
- "default": 4,
- "description": "cpu to boot with",
- "type": "string"
- },
- "disk": {
- "default": 128,
- "description": "disk to boot with",
- "type": "string"
- },
- "image": {
- "default": "cirros",
- "description": "Name or ID of the image to use for the instance.",
- "type": "string"
- },
- "mem": {
- "default": 16,
- "description": "mem to boot with",
- "type": "string"
- },
- "public_net": {
- "default": "provider",
- "description": "ID or name of public network where floating IP to be created",
- "type": "string"
- },
- "server_name": {
- "default": "my_server",
- "description": "Name for the instance to be created",
- "type": "string"
- }
- },
- "resources": {
- "my_server": {
- "properties": {
- "cpu": {
- "get_param": "cpu"
- },
- "disk": {
- "get_param": "disk"
- },
- "image": {
- "get_param": "image"
- },
- "mem": {
- "get_param": "mem"
- },
- "name": {
- "get_param": "server_name"
- },
- "networks": [
- {
- "network": {
- "get_param": "public_net"
- }
- }
- ]
- },
- "type": "OS::DtCenter::Server"
- }
- }
- },
- "timeout": 60
+ "cpu": {
+ "get_param": "cpu"
+ },
+ "disk": {
+ "get_param": "disk"
+ },
+ "image": {
+ "get_param": "image"
+ },
+ "mem": {
+ "get_param": "mem"
+ },
+ "name": {
+ "get_param": "server_name"
+ },
+ "networks": [
+ {
+ "network": {
+ "get_param": "public_net"
+ }
+ }
+ ]
},
- "type": "os.heat.stack",
- "version": 1
- },
- "type": "os.heat.stack-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "OS::DtCenter::Server"
+ }
+ }
+ },
+ "timeout": 60
},
- {
- "created_at": "2016-05-24T09:26:09",
- "domain": null,
- "id": "4a746f95-eb4f-488f-b8dc-b1789b14cafd",
- "metadata": {},
- "name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
+ "type": "os.heat.stack",
+ "version": 1
+ },
+ "type": "os.heat.stack-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-24T09:26:09",
+ "domain": null,
+ "id": "4a746f95-eb4f-488f-b8dc-b1789b14cafd",
+ "metadata": {},
+ "name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "context": {
+ "region_name": "RegionOne"
+ },
+ "disable_rollback": true,
+ "environment": {},
+ "files": {},
+ "parameters": {
+ "server_name": "my_cirros_server"
+ },
+ "template": {
+ "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
+ "heat_template_version": "2014-10-16",
+ "parameters": {
+ "cpu": {
+ "default": 4,
+ "description": "cpu to boot with",
+ "type": "string"
+ },
+ "disk": {
+ "default": 128,
+ "description": "disk to boot with",
+ "type": "string"
+ },
+ "image": {
+ "default": "cirros",
+ "description": "Name or ID of the image to use for the instance.",
+ "type": "string"
+ },
+ "mem": {
+ "default": 16,
+ "description": "mem to boot with",
+ "type": "string"
+ },
+ "public_net": {
+ "default": "provider",
+ "description": "ID or name of public network where floating IP to be created",
+ "type": "string"
+ },
+ "server_name": {
+ "default": "my_server",
+ "description": "Name for the instance to be created",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "my_server": {
"properties": {
- "context": {
- "region_name": "RegionOne"
- },
- "disable_rollback": true,
- "environment": {},
- "files": {},
- "parameters": {
- "server_name": "my_cirros_server"
- },
- "template": {
- "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
- "heat_template_version": "2014-10-16",
- "parameters": {
- "cpu": {
- "default": 4,
- "description": "cpu to boot with",
- "type": "string"
- },
- "disk": {
- "default": 128,
- "description": "disk to boot with",
- "type": "string"
- },
- "image": {
- "default": "cirros",
- "description": "Name or ID of the image to use for the instance.",
- "type": "string"
- },
- "mem": {
- "default": 16,
- "description": "mem to boot with",
- "type": "string"
- },
- "public_net": {
- "default": "provider",
- "description": "ID or name of public network where floating IP to be created",
- "type": "string"
- },
- "server_name": {
- "default": "my_server",
- "description": "Name for the instance to be created",
- "type": "string"
- }
- },
- "resources": {
- "my_server": {
- "properties": {
- "cpu": {
- "get_param": "cpu"
- },
- "disk": {
- "get_param": "disk"
- },
- "image": {
- "get_param": "image"
- },
- "mem": {
- "get_param": "mem"
- },
- "name": {
- "get_param": "server_name"
- },
- "networks": [
- {
- "network": {
- "get_param": "public_net"
- }
- }
- ]
- },
- "type": "OS::DtCenter::Server"
- }
- }
- },
- "timeout": 60
+ "cpu": {
+ "get_param": "cpu"
+ },
+ "disk": {
+ "get_param": "disk"
+ },
+ "image": {
+ "get_param": "image"
+ },
+ "mem": {
+ "get_param": "mem"
+ },
+ "name": {
+ "get_param": "server_name"
+ },
+ "networks": [
+ {
+ "network": {
+ "get_param": "public_net"
+ }
+ }
+ ]
},
- "type": "os.heat.stack",
- "version": 1
- },
- "type": "os.heat.stack-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "OS::DtCenter::Server"
+ }
+ }
+ },
+ "timeout": 60
},
- {
- "created_at": "2016-05-25T08:33:57",
- "domain": null,
- "id": "ae7c8828-486a-4d35-9ee7-f1985362ba81",
- "metadata": {},
- "name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
+ "type": "os.heat.stack",
+ "version": 1
+ },
+ "type": "os.heat.stack-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:33:57",
+ "domain": null,
+ "id": "ae7c8828-486a-4d35-9ee7-f1985362ba81",
+ "metadata": {},
+ "name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "context": {
+ "region_name": "RegionOne"
+ },
+ "disable_rollback": true,
+ "environment": {},
+ "files": {},
+ "parameters": {
+ "server_name": "my_cirros_server"
+ },
+ "template": {
+ "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
+ "heat_template_version": "2014-10-16",
+ "parameters": {
+ "cpu": {
+ "default": 4,
+ "description": "cpu to boot with",
+ "type": "string"
+ },
+ "disk": {
+ "default": 128,
+ "description": "disk to boot with",
+ "type": "string"
+ },
+ "image": {
+ "default": "cirros",
+ "description": "Name or ID of the image to use for the instance.",
+ "type": "string"
+ },
+ "mem": {
+ "default": 16,
+ "description": "mem to boot with",
+ "type": "string"
+ },
+ "public_net": {
+ "default": "provider",
+ "description": "ID or name of public network where floating IP to be created",
+ "type": "string"
+ },
+ "server_name": {
+ "default": "my_server",
+ "description": "Name for the instance to be created",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "my_server": {
"properties": {
- "context": {
- "region_name": "RegionOne"
- },
- "disable_rollback": true,
- "environment": {},
- "files": {},
- "parameters": {
- "server_name": "my_cirros_server"
- },
- "template": {
- "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
- "heat_template_version": "2014-10-16",
- "parameters": {
- "cpu": {
- "default": 4,
- "description": "cpu to boot with",
- "type": "string"
- },
- "disk": {
- "default": 128,
- "description": "disk to boot with",
- "type": "string"
- },
- "image": {
- "default": "cirros",
- "description": "Name or ID of the image to use for the instance.",
- "type": "string"
- },
- "mem": {
- "default": 16,
- "description": "mem to boot with",
- "type": "string"
- },
- "public_net": {
- "default": "provider",
- "description": "ID or name of public network where floating IP to be created",
- "type": "string"
- },
- "server_name": {
- "default": "my_server",
- "description": "Name for the instance to be created",
- "type": "string"
- }
- },
- "resources": {
- "my_server": {
- "properties": {
- "cpu": {
- "get_param": "cpu"
- },
- "disk": {
- "get_param": "disk"
- },
- "image": {
- "get_param": "image"
- },
- "mem": {
- "get_param": "mem"
- },
- "name": {
- "get_param": "server_name"
- },
- "networks": [
- {
- "network": {
- "get_param": "public_net"
- }
- }
- ]
- },
- "type": "OS::DtCenter::Server"
- }
- }
- },
- "timeout": 60
+ "cpu": {
+ "get_param": "cpu"
+ },
+ "disk": {
+ "get_param": "disk"
+ },
+ "image": {
+ "get_param": "image"
+ },
+ "mem": {
+ "get_param": "mem"
+ },
+ "name": {
+ "get_param": "server_name"
+ },
+ "networks": [
+ {
+ "network": {
+ "get_param": "public_net"
+ }
+ }
+ ]
},
- "type": "os.heat.stack",
- "version": 1
- },
- "type": "os.heat.stack-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
+ "type": "OS::DtCenter::Server"
+ }
+ }
+ },
+ "timeout": 60
},
- {
- "created_at": "2016-05-25T08:38:39",
- "domain": null,
- "id": "61ae5541-ccd5-45e2-8e68-05ae2af613e2",
- "metadata": {},
- "name": "lion-test",
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "spec": {
+ "type": "os.heat.stack",
+ "version": 1
+ },
+ "type": "os.heat.stack-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "created_at": "2016-05-25T08:38:39",
+ "domain": null,
+ "id": "61ae5541-ccd5-45e2-8e68-05ae2af613e2",
+ "metadata": {},
+ "name": "lion-test",
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "spec": {
+ "properties": {
+ "context": {
+ "region_name": "RegionOne"
+ },
+ "disable_rollback": true,
+ "environment": {},
+ "files": {},
+ "parameters": {
+ "server_name": "my_cirros_server"
+ },
+ "template": {
+ "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
+ "heat_template_version": "2014-10-16",
+ "parameters": {
+ "cpu": {
+ "default": 4,
+ "description": "cpu to boot with",
+ "type": "string"
+ },
+ "disk": {
+ "default": 128,
+ "description": "disk to boot with",
+ "type": "string"
+ },
+ "image": {
+ "default": "cirros",
+ "description": "Name or ID of the image to use for the instance.",
+ "type": "string"
+ },
+ "mem": {
+ "default": 16,
+ "description": "mem to boot with",
+ "type": "string"
+ },
+ "public_net": {
+ "default": "provider",
+ "description": "ID or name of public network where floating IP to be created",
+ "type": "string"
+ },
+ "server_name": {
+ "default": "my_server",
+ "description": "Name for the instance to be created",
+ "type": "string"
+ }
+ },
+ "resources": {
+ "my_server": {
"properties": {
- "context": {
- "region_name": "RegionOne"
- },
- "disable_rollback": true,
- "environment": {},
- "files": {},
- "parameters": {
- "server_name": "my_cirros_server"
- },
- "template": {
- "description": "A HOT template that holds a VM instance with a Neutron port created in given private network and a floatingIP created in given external network.\n",
- "heat_template_version": "2014-10-16",
- "parameters": {
- "cpu": {
- "default": 4,
- "description": "cpu to boot with",
- "type": "string"
- },
- "disk": {
- "default": 128,
- "description": "disk to boot with",
- "type": "string"
- },
- "image": {
- "default": "cirros",
- "description": "Name or ID of the image to use for the instance.",
- "type": "string"
- },
- "mem": {
- "default": 16,
- "description": "mem to boot with",
- "type": "string"
- },
- "public_net": {
- "default": "provider",
- "description": "ID or name of public network where floating IP to be created",
- "type": "string"
- },
- "server_name": {
- "default": "my_server",
- "description": "Name for the instance to be created",
- "type": "string"
- }
- },
- "resources": {
- "my_server": {
- "properties": {
- "cpu": {
- "get_param": "cpu"
- },
- "disk": {
- "get_param": "disk"
- },
- "image": {
- "get_param": "image"
- },
- "mem": {
- "get_param": "mem"
- },
- "name": {
- "get_param": "server_name"
- },
- "networks": [
- {
- "network": {
- "get_param": "public_net"
- }
- }
- ]
- },
- "type": "OS::DtCenter::Server"
- }
- }
- },
- "timeout": 60
+ "cpu": {
+ "get_param": "cpu"
+ },
+ "disk": {
+ "get_param": "disk"
+ },
+ "image": {
+ "get_param": "image"
+ },
+ "mem": {
+ "get_param": "mem"
+ },
+ "name": {
+ "get_param": "server_name"
+ },
+ "networks": [
+ {
+ "network": {
+ "get_param": "public_net"
+ }
+ }
+ ]
},
- "type": "os.heat.stack",
- "version": 1
- },
- "type": "os.heat.stack-1.0",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
- ]
+ "type": "OS::DtCenter::Server"
+ }
+ }
+ },
+ "timeout": 60
+ },
+ "type": "os.heat.stack",
+ "version": 1
+ },
+ "type": "os.heat.stack-1.0",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/receiver.json b/core-test/src/main/resources/senlin/v1/receiver.json
index c65aa6413..3203f00cb 100644
--- a/core-test/src/main/resources/senlin/v1/receiver.json
+++ b/core-test/src/main/resources/senlin/v1/receiver.json
@@ -1,25 +1,25 @@
{
- "receiver": {
- "action": "CLUSTER_SCALE_OUT",
- "actor": {
- "trust_id": [
- "6dc6d336e3fc4c0a951b5698cd1236d9"
- ]
- },
- "channel": {
- "alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1"
- },
- "cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3",
- "created_at": "2015-06-27T05:09:43",
- "domain": "Default",
- "id": "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
- "name": "cluster_inflate",
- "params": {
- "count": "1"
- },
- "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
- "type": "webhook",
- "updated_at": null,
- "user": "b4ad2d6e18cc2b9c48049f6dbe8a5b3c"
- }
+ "receiver": {
+ "action": "CLUSTER_SCALE_OUT",
+ "actor": {
+ "trust_id": [
+ "6dc6d336e3fc4c0a951b5698cd1236d9"
+ ]
+ },
+ "channel": {
+ "alarm_url": "http://node1:8778/v1/webhooks/e03dd2e5-8f2e-4ec1-8c6a-74ba891e5422/trigger?V=1&count=1"
+ },
+ "cluster_id": "ae63a10b-4a90-452c-aef1-113a0b255ee3",
+ "created_at": "2015-06-27T05:09:43",
+ "domain": "Default",
+ "id": "573aa1ba-bf45-49fd-907d-6b5d6e6adfd3",
+ "name": "cluster_inflate",
+ "params": {
+ "count": "1"
+ },
+ "project": "6e18cc2bdbeb48a5b3cad2dc499f6804",
+ "type": "webhook",
+ "updated_at": null,
+ "user": "b4ad2d6e18cc2b9c48049f6dbe8a5b3c"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/receivers.json b/core-test/src/main/resources/senlin/v1/receivers.json
index 5557d5571..ae4e4d0fd 100644
--- a/core-test/src/main/resources/senlin/v1/receivers.json
+++ b/core-test/src/main/resources/senlin/v1/receivers.json
@@ -1,109 +1,109 @@
{
- "receivers": [
- {
- "action": "CLUSTER_SCALE_OUT",
- "actor": {
- "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
- },
- "channel": {
- "alarm_url": "http://10.158.247.76:8778/v1/webhooks/05f72ca7-d0cd-4e9c-9f84-caec408e7580/trigger?V=1&count=1"
- },
- "cluster_id": "5938380f-6903-4322-bdd9-d0597a0b6f41",
- "created_at": "2016-05-25T08:34:24",
- "domain": null,
- "id": "05f72ca7-d0cd-4e9c-9f84-caec408e7580",
- "name": "lion-test",
- "params": {
- "count": "1"
- },
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "type": "webhook",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "CLUSTER_SCALE_OUT",
- "actor": {
- "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
- },
- "channel": {
- "alarm_url": "http://10.158.247.76:8778/v1/webhooks/18bfa817-394c-4cd2-a37a-9947add37ef5/trigger?V=1&count=1"
- },
- "cluster_id": "07e2e41b-7aa7-42c8-9318-87ef94c78bd7",
- "created_at": "2016-05-26T08:29:52",
- "domain": null,
- "id": "18bfa817-394c-4cd2-a37a-9947add37ef5",
- "name": "lion-test",
- "params": {
- "count": "1"
- },
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "type": "webhook",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "CLUSTER_SCALE_OUT",
- "actor": {
- "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
- },
- "channel": {
- "alarm_url": "http://10.158.247.76:8778/v1/webhooks/2eb369be-359b-4df0-89de-bf49f3c76620/trigger?V=1&count=1"
- },
- "cluster_id": "250d1077-d68d-4b1b-979b-079cf601e4a8",
- "created_at": "2016-05-29T07:34:37",
- "domain": null,
- "id": "2eb369be-359b-4df0-89de-bf49f3c76620",
- "name": "lion-test",
- "params": {
- "count": "1"
- },
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "type": "webhook",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "CLUSTER_SCALE_OUT",
- "actor": {
- "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
- },
- "channel": {
- "alarm_url": "http://10.158.247.76:8778/v1/webhooks/51575fae-a83c-44ac-9214-337663dd04f9/trigger?V=1&count=1"
- },
- "cluster_id": "8c596d52-5657-4f09-a825-c6140231d961",
- "created_at": "2016-05-25T08:45:10",
- "domain": null,
- "id": "51575fae-a83c-44ac-9214-337663dd04f9",
- "name": "lion-test",
- "params": {
- "count": "1"
- },
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "type": "webhook",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- },
- {
- "action": "CLUSTER_SCALE_OUT",
- "actor": {
- "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
- },
- "channel": {
- "alarm_url": "http://10.158.247.76:8778/v1/webhooks/b23308f5-c4c3-4b30-9726-bdd1857a5db8/trigger?V=1&count=1"
- },
- "cluster_id": "17192bab-aca9-4a81-98d7-822f4d62c28b",
- "created_at": "2016-05-25T08:38:41",
- "domain": null,
- "id": "b23308f5-c4c3-4b30-9726-bdd1857a5db8",
- "name": "lion-test",
- "params": {
- "count": "1"
- },
- "project": "7b2171b528bb48ba8a0c180ea135e224",
- "type": "webhook",
- "updated_at": null,
- "user": "fa465946d3aa4b4caa411da77632d6b6"
- }
- ]
+ "receivers": [
+ {
+ "action": "CLUSTER_SCALE_OUT",
+ "actor": {
+ "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
+ },
+ "channel": {
+ "alarm_url": "http://10.158.247.76:8778/v1/webhooks/05f72ca7-d0cd-4e9c-9f84-caec408e7580/trigger?V=1&count=1"
+ },
+ "cluster_id": "5938380f-6903-4322-bdd9-d0597a0b6f41",
+ "created_at": "2016-05-25T08:34:24",
+ "domain": null,
+ "id": "05f72ca7-d0cd-4e9c-9f84-caec408e7580",
+ "name": "lion-test",
+ "params": {
+ "count": "1"
+ },
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "type": "webhook",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "CLUSTER_SCALE_OUT",
+ "actor": {
+ "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
+ },
+ "channel": {
+ "alarm_url": "http://10.158.247.76:8778/v1/webhooks/18bfa817-394c-4cd2-a37a-9947add37ef5/trigger?V=1&count=1"
+ },
+ "cluster_id": "07e2e41b-7aa7-42c8-9318-87ef94c78bd7",
+ "created_at": "2016-05-26T08:29:52",
+ "domain": null,
+ "id": "18bfa817-394c-4cd2-a37a-9947add37ef5",
+ "name": "lion-test",
+ "params": {
+ "count": "1"
+ },
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "type": "webhook",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "CLUSTER_SCALE_OUT",
+ "actor": {
+ "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
+ },
+ "channel": {
+ "alarm_url": "http://10.158.247.76:8778/v1/webhooks/2eb369be-359b-4df0-89de-bf49f3c76620/trigger?V=1&count=1"
+ },
+ "cluster_id": "250d1077-d68d-4b1b-979b-079cf601e4a8",
+ "created_at": "2016-05-29T07:34:37",
+ "domain": null,
+ "id": "2eb369be-359b-4df0-89de-bf49f3c76620",
+ "name": "lion-test",
+ "params": {
+ "count": "1"
+ },
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "type": "webhook",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "CLUSTER_SCALE_OUT",
+ "actor": {
+ "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
+ },
+ "channel": {
+ "alarm_url": "http://10.158.247.76:8778/v1/webhooks/51575fae-a83c-44ac-9214-337663dd04f9/trigger?V=1&count=1"
+ },
+ "cluster_id": "8c596d52-5657-4f09-a825-c6140231d961",
+ "created_at": "2016-05-25T08:45:10",
+ "domain": null,
+ "id": "51575fae-a83c-44ac-9214-337663dd04f9",
+ "name": "lion-test",
+ "params": {
+ "count": "1"
+ },
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "type": "webhook",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ },
+ {
+ "action": "CLUSTER_SCALE_OUT",
+ "actor": {
+ "trust_id": "b48a20f764eb40c7b2ad501f16f59fec"
+ },
+ "channel": {
+ "alarm_url": "http://10.158.247.76:8778/v1/webhooks/b23308f5-c4c3-4b30-9726-bdd1857a5db8/trigger?V=1&count=1"
+ },
+ "cluster_id": "17192bab-aca9-4a81-98d7-822f4d62c28b",
+ "created_at": "2016-05-25T08:38:41",
+ "domain": null,
+ "id": "b23308f5-c4c3-4b30-9726-bdd1857a5db8",
+ "name": "lion-test",
+ "params": {
+ "count": "1"
+ },
+ "project": "7b2171b528bb48ba8a0c180ea135e224",
+ "type": "webhook",
+ "updated_at": null,
+ "user": "fa465946d3aa4b4caa411da77632d6b6"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/v1/resp_action.json b/core-test/src/main/resources/senlin/v1/resp_action.json
index fb3c96c86..e590d1cd4 100644
--- a/core-test/src/main/resources/senlin/v1/resp_action.json
+++ b/core-test/src/main/resources/senlin/v1/resp_action.json
@@ -1,3 +1,3 @@
{
- "action": "40a436b1-28d1-4de6-b2c3-0a34f478e2c9"
+ "action": "40a436b1-28d1-4de6-b2c3-0a34f478e2c9"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/senlin/version.json b/core-test/src/main/resources/senlin/version.json
index 243576472..fc26d1520 100644
--- a/core-test/src/main/resources/senlin/version.json
+++ b/core-test/src/main/resources/senlin/version.json
@@ -1,14 +1,14 @@
{
- "versions": [
+ "versions": [
+ {
+ "status": "CURRENT",
+ "id": "v1.0",
+ "links": [
{
- "status": "CURRENT",
- "id": "v1.0",
- "links": [
- {
- "href": "http://192.168.12.34:8778/v1/",
- "rel": "self"
- }
- ]
+ "href": "http://192.168.12.34:8778/v1/",
+ "rel": "self"
}
- ]
+ ]
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/containers.json b/core-test/src/main/resources/storage/containers.json
index 5ae3dca12..49f4e1f8c 100644
--- a/core-test/src/main/resources/storage/containers.json
+++ b/core-test/src/main/resources/storage/containers.json
@@ -1,10 +1,12 @@
[
-{
- "count": 2,
- "bytes": 100,
- "name": "Test"},
-{
- "count": 1,
- "bytes": 14,
- "name": "marktwain"
-}]
\ No newline at end of file
+ {
+ "count": 2,
+ "bytes": 100,
+ "name": "Test"
+ },
+ {
+ "count": 1,
+ "bytes": 14,
+ "name": "marktwain"
+ }
+]
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/ext/services.json b/core-test/src/main/resources/storage/ext/services.json
index 6990525f7..4a5490d82 100644
--- a/core-test/src/main/resources/storage/ext/services.json
+++ b/core-test/src/main/resources/storage/ext/services.json
@@ -1,20 +1,20 @@
{
- "services": [
- {
- "binary": "cinder-scheduler",
- "host": "host1",
- "state": "UP",
- "status": "ENABLED",
- "updated_at": "2012-10-29T13:42:02.000000",
- "zone": "nova"
- },
- {
- "binary": "cinder-volume",
- "host": "host1",
- "state": "UP",
- "status": "ENABLED",
- "updated_at": "2012-10-29T13:42:05.000000",
- "zone": "nova"
- }
- ]
- }
\ No newline at end of file
+ "services": [
+ {
+ "binary": "cinder-scheduler",
+ "host": "host1",
+ "state": "UP",
+ "status": "ENABLED",
+ "updated_at": "2012-10-29T13:42:02.000000",
+ "zone": "nova"
+ },
+ {
+ "binary": "cinder-volume",
+ "host": "host1",
+ "state": "UP",
+ "status": "ENABLED",
+ "updated_at": "2012-10-29T13:42:05.000000",
+ "zone": "nova"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v1/volume.json b/core-test/src/main/resources/storage/v1/volume.json
index a0380ebbb..9b6721e4e 100644
--- a/core-test/src/main/resources/storage/v1/volume.json
+++ b/core-test/src/main/resources/storage/v1/volume.json
@@ -1,30 +1,32 @@
{
- "volume": {
- "status": "in-use",
- "display_name": "vol-test",
- "attachments": [{
- "host_name": "myhost",
- "device": "/dev/vdd",
- "server_id": "eaa6a54d-35c1-40ce-831d-bb61f991e1a9",
- "id": "8a9287b7-4f4d-4213-8d75-63470f19f27c",
- "volume_id": "8a9287b7-4f4d-4213-8d75-63470f19f27c"
- }],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-05-25T15:03:43.104260",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "a description",
- "os-volume-replication:extended_status": null,
- "volume_type": "Gold",
- "snapshot_id": "22222222-2222-2222-2222-222222222222",
- "source_volid": "11111111-1111-1111-1111-111111111111",
- "metadata": {
- "readonly": "False",
- "attached_mode": "rw"
- },
+ "volume": {
+ "status": "in-use",
+ "display_name": "vol-test",
+ "attachments": [
+ {
+ "host_name": "myhost",
+ "device": "/dev/vdd",
+ "server_id": "eaa6a54d-35c1-40ce-831d-bb61f991e1a9",
"id": "8a9287b7-4f4d-4213-8d75-63470f19f27c",
- "size": 100
- }
+ "volume_id": "8a9287b7-4f4d-4213-8d75-63470f19f27c"
+ }
+ ],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-05-25T15:03:43.104260",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "a description",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "Gold",
+ "snapshot_id": "22222222-2222-2222-2222-222222222222",
+ "source_volid": "11111111-1111-1111-1111-111111111111",
+ "metadata": {
+ "readonly": "False",
+ "attached_mode": "rw"
+ },
+ "id": "8a9287b7-4f4d-4213-8d75-63470f19f27c",
+ "size": 100
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v1/volumebackup.json b/core-test/src/main/resources/storage/v1/volumebackup.json
index 3df5aaa6c..d26193f91 100644
--- a/core-test/src/main/resources/storage/v1/volumebackup.json
+++ b/core-test/src/main/resources/storage/v1/volumebackup.json
@@ -1,24 +1,27 @@
{
- "backup": {
- "status": "available",
- "description": "by API999b49ff-a813-45cc-aef3-3ec82f089490",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
- "rel": "bookmark"
- }],
- "availability_zone": "nova",
- "has_dependent_backups": false,
- "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
- "fail_reason": null,
- "id": "735359d5-9584-4046-94d3-5ffc47be84f5",
- "size": 1,
- "object_count": 22,
- "container": "test999b49ff-a813-45cc-aef3-3ec82f089490",
- "name": "backup999b49ff-a813-45cc-aef3-3ec82f089490",
- "created_at": "2016-11-22T06:23:33.000000",
- "is_incremental": false
- }
+ "backup": {
+ "status": "available",
+ "description": "by API999b49ff-a813-45cc-aef3-3ec82f089490",
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
+ "rel": "bookmark"
+ }
+ ],
+ "availability_zone": "nova",
+ "has_dependent_backups": false,
+ "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
+ "fail_reason": null,
+ "id": "735359d5-9584-4046-94d3-5ffc47be84f5",
+ "size": 1,
+ "object_count": 22,
+ "container": "test999b49ff-a813-45cc-aef3-3ec82f089490",
+ "name": "backup999b49ff-a813-45cc-aef3-3ec82f089490",
+ "created_at": "2016-11-22T06:23:33.000000",
+ "is_incremental": false
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v1/volumebackup_create_response.json b/core-test/src/main/resources/storage/v1/volumebackup_create_response.json
index ff9a8162a..7e546ef67 100644
--- a/core-test/src/main/resources/storage/v1/volumebackup_create_response.json
+++ b/core-test/src/main/resources/storage/v1/volumebackup_create_response.json
@@ -1,13 +1,16 @@
{
- "backup": {
- "id": "7069c687-c85c-45ca-befa-aa78a971fdfe",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
- "rel": "bookmark"
- }],
- "name": "backup1122"
- }
+ "backup": {
+ "id": "7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "rel": "bookmark"
+ }
+ ],
+ "name": "backup1122"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v1/volumebackup_from_snapshot.json b/core-test/src/main/resources/storage/v1/volumebackup_from_snapshot.json
index c61ec45a7..5335ee8c7 100644
--- a/core-test/src/main/resources/storage/v1/volumebackup_from_snapshot.json
+++ b/core-test/src/main/resources/storage/v1/volumebackup_from_snapshot.json
@@ -2,13 +2,16 @@
"backup": {
"status": "available",
"description": "by API999b49ff-a813-45cc-aef3-3ec82f089490",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
- "rel": "bookmark"
- }],
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
+ "rel": "bookmark"
+ }
+ ],
"availability_zone": "nova",
"has_dependent_backups": false,
"volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
diff --git a/core-test/src/main/resources/storage/v1/volumebackups.json b/core-test/src/main/resources/storage/v1/volumebackups.json
index dbf2f438b..31f941ce2 100644
--- a/core-test/src/main/resources/storage/v1/volumebackups.json
+++ b/core-test/src/main/resources/storage/v1/volumebackups.json
@@ -1,66 +1,79 @@
{
- "backups": [{
- "status": "available",
- "description": "by API",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
- "rel": "bookmark"
- }],
- "availability_zone": "nova",
- "has_dependent_backups": false,
- "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
- "fail_reason": null,
- "id": "7069c687-c85c-45ca-befa-aa78a971fdfe",
- "size": 1,
- "object_count": 22,
- "container": "container1122",
- "name": "backup1122",
- "created_at": "2016-11-22T07:24:12.000000",
- "is_incremental": false
- }, {
- "status": "available",
- "description": "by API999b49ff-a813-45cc-aef3-3ec82f089490",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
- "rel": "bookmark"
- }],
- "availability_zone": "nova",
- "has_dependent_backups": false,
- "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
- "fail_reason": null,
- "id": "735359d5-9584-4046-94d3-5ffc47be84f5",
- "size": 1,
- "object_count": 22,
- "container": "test999b49ff-a813-45cc-aef3-3ec82f089490",
- "name": "backup999b49ff-a813-45cc-aef3-3ec82f089490",
- "created_at": "2016-11-22T06:23:33.000000",
- "is_incremental": false
- }, {
- "status": "available",
- "description": "backup",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/b1fbd1f0-6be3-470d-a645-8dd1bacca57d",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/b1fbd1f0-6be3-470d-a645-8dd1bacca57d",
- "rel": "bookmark"
- }],
- "availability_zone": "nova",
- "has_dependent_backups": false,
- "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
- "fail_reason": null,
- "id": "b1fbd1f0-6be3-470d-a645-8dd1bacca57d",
- "size": 1,
- "object_count": 22,
- "container": "volumebackups",
- "name": "backupByUI",
- "created_at": "2016-11-07T06:16:27.000000",
- "is_incremental": false
- }]
+ "backups": [
+ {
+ "status": "available",
+ "description": "by API",
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "rel": "bookmark"
+ }
+ ],
+ "availability_zone": "nova",
+ "has_dependent_backups": false,
+ "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
+ "fail_reason": null,
+ "id": "7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "size": 1,
+ "object_count": 22,
+ "container": "container1122",
+ "name": "backup1122",
+ "created_at": "2016-11-22T07:24:12.000000",
+ "is_incremental": false
+ },
+ {
+ "status": "available",
+ "description": "by API999b49ff-a813-45cc-aef3-3ec82f089490",
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/735359d5-9584-4046-94d3-5ffc47be84f5",
+ "rel": "bookmark"
+ }
+ ],
+ "availability_zone": "nova",
+ "has_dependent_backups": false,
+ "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
+ "fail_reason": null,
+ "id": "735359d5-9584-4046-94d3-5ffc47be84f5",
+ "size": 1,
+ "object_count": 22,
+ "container": "test999b49ff-a813-45cc-aef3-3ec82f089490",
+ "name": "backup999b49ff-a813-45cc-aef3-3ec82f089490",
+ "created_at": "2016-11-22T06:23:33.000000",
+ "is_incremental": false
+ },
+ {
+ "status": "available",
+ "description": "backup",
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/b1fbd1f0-6be3-470d-a645-8dd1bacca57d",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/b1fbd1f0-6be3-470d-a645-8dd1bacca57d",
+ "rel": "bookmark"
+ }
+ ],
+ "availability_zone": "nova",
+ "has_dependent_backups": false,
+ "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
+ "fail_reason": null,
+ "id": "b1fbd1f0-6be3-470d-a645-8dd1bacca57d",
+ "size": 1,
+ "object_count": 22,
+ "container": "volumebackups",
+ "name": "backupByUI",
+ "created_at": "2016-11-07T06:16:27.000000",
+ "is_incremental": false
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v1/volumebackups_filtered.json b/core-test/src/main/resources/storage/v1/volumebackups_filtered.json
index e4a570cbc..afc8b8c82 100644
--- a/core-test/src/main/resources/storage/v1/volumebackups_filtered.json
+++ b/core-test/src/main/resources/storage/v1/volumebackups_filtered.json
@@ -1,24 +1,29 @@
{
- "backups": [{
- "status": "available",
- "description": "by API",
- "links": [{
- "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
- "rel": "self"
- }, {
- "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
- "rel": "bookmark"
- }],
- "availability_zone": "nova",
- "has_dependent_backups": false,
- "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
- "fail_reason": null,
- "id": "7069c687-c85c-45ca-befa-aa78a971fdfe",
- "size": 1,
- "object_count": 22,
- "container": "container1122",
- "name": "backup1122",
- "created_at": "2016-11-22T07:24:12.000000",
- "is_incremental": false
- }]
+ "backups": [
+ {
+ "status": "available",
+ "description": "by API",
+ "links": [
+ {
+ "href": "https://192.168.100.3:8776/v1/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "rel": "self"
+ },
+ {
+ "href": "https://192.168.100.3:8776/aec84f30304745c1b568593eee763eb4/backups/7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "rel": "bookmark"
+ }
+ ],
+ "availability_zone": "nova",
+ "has_dependent_backups": false,
+ "volume_id": "999b49ff-a813-45cc-aef3-3ec82f089490",
+ "fail_reason": null,
+ "id": "7069c687-c85c-45ca-befa-aa78a971fdfe",
+ "size": 1,
+ "object_count": 22,
+ "container": "container1122",
+ "name": "backup1122",
+ "created_at": "2016-11-22T07:24:12.000000",
+ "is_incremental": false
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v1/volumes-bootable.json b/core-test/src/main/resources/storage/v1/volumes-bootable.json
index 198372a6e..8b07cee6b 100644
--- a/core-test/src/main/resources/storage/v1/volumes-bootable.json
+++ b/core-test/src/main/resources/storage/v1/volumes-bootable.json
@@ -1,51 +1,54 @@
{
- "volumes": [{
- "status": "in-use",
- "display_name": "vol-snap-vol-test1",
- "attachments": [{
- "host_name": null,
- "device": "/dev/vdd",
- "server_id": "108b91cd-1adc-4799-b467-a7ec6fcd8ee7",
- "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
- "volume_id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc"
- }],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-04-23T12:39:31.323376",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "test",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
- "source_volid": null,
- "metadata": {
- "readonly": "False",
- "attached_mode": "rw"
- },
- "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
- "size": 1
- },
- {
- "status": "available",
- "display_name": "vol-test-2",
- "attachments": [],
- "availability_zone": "nova",
- "bootable": "true",
- "encrypted": true,
- "created_at": "2015-04-23T11:32:01.252783",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": null,
- "source_volid": null,
- "metadata": {
-
- },
- "id": "7f47ab73-303c-4a19-b311-6123bb115775",
- "size": 1
- } ]
+ "volumes": [
+ {
+ "status": "in-use",
+ "display_name": "vol-snap-vol-test1",
+ "attachments": [
+ {
+ "host_name": null,
+ "device": "/dev/vdd",
+ "server_id": "108b91cd-1adc-4799-b467-a7ec6fcd8ee7",
+ "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
+ "volume_id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc"
+ }
+ ],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-04-23T12:39:31.323376",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "test",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
+ "source_volid": null,
+ "metadata": {
+ "readonly": "False",
+ "attached_mode": "rw"
+ },
+ "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
+ "size": 1
+ },
+ {
+ "status": "available",
+ "display_name": "vol-test-2",
+ "attachments": [],
+ "availability_zone": "nova",
+ "bootable": "true",
+ "encrypted": true,
+ "created_at": "2015-04-23T11:32:01.252783",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": null,
+ "source_volid": null,
+ "metadata": {
+ },
+ "id": "7f47ab73-303c-4a19-b311-6123bb115775",
+ "size": 1
+ }
+ ]
}
diff --git a/core-test/src/main/resources/storage/v1/volumes.json b/core-test/src/main/resources/storage/v1/volumes.json
index d9d91706b..8edf97e77 100644
--- a/core-test/src/main/resources/storage/v1/volumes.json
+++ b/core-test/src/main/resources/storage/v1/volumes.json
@@ -1,72 +1,74 @@
{
- "volumes": [{
- "status": "in-use",
- "display_name": "vol-snap-vol-test1",
- "attachments": [{
- "host_name": null,
- "device": "/dev/vdd",
- "server_id": "108b91cd-1adc-4799-b467-a7ec6fcd8ee7",
- "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
- "volume_id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc"
- }],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-04-23T12:39:31.323376",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "test",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
- "source_volid": null,
- "metadata": {
- "readonly": "False",
- "attached_mode": "rw"
- },
- "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
- "size": 1
- },
- {
- "status": "available",
- "display_name": "vol-test-2",
- "attachments": [],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-04-23T11:32:01.252783",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": null,
- "source_volid": null,
- "metadata": {
-
- },
- "id": "7f47ab73-303c-4a19-b311-6123bb115775",
- "size": 1
- },
- {
- "status": "available",
- "display_name": "vol-test-1",
- "attachments": [],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-04-23T11:31:54.832436",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": null,
- "source_volid": null,
- "metadata": {
-
- },
- "id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
- "size": 1
- }]
+ "volumes": [
+ {
+ "status": "in-use",
+ "display_name": "vol-snap-vol-test1",
+ "attachments": [
+ {
+ "host_name": null,
+ "device": "/dev/vdd",
+ "server_id": "108b91cd-1adc-4799-b467-a7ec6fcd8ee7",
+ "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
+ "volume_id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc"
+ }
+ ],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-04-23T12:39:31.323376",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "test",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
+ "source_volid": null,
+ "metadata": {
+ "readonly": "False",
+ "attached_mode": "rw"
+ },
+ "id": "725ee1cc-7599-42f2-a8fb-eca5ba10dadc",
+ "size": 1
+ },
+ {
+ "status": "available",
+ "display_name": "vol-test-2",
+ "attachments": [],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-04-23T11:32:01.252783",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": null,
+ "source_volid": null,
+ "metadata": {
+ },
+ "id": "7f47ab73-303c-4a19-b311-6123bb115775",
+ "size": 1
+ },
+ {
+ "status": "available",
+ "display_name": "vol-test-1",
+ "attachments": [],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-04-23T11:31:54.832436",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": null,
+ "source_volid": null,
+ "metadata": {
+ },
+ "id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
+ "size": 1
+ }
+ ]
}
diff --git a/core-test/src/main/resources/storage/v1/volumes_filtered.json b/core-test/src/main/resources/storage/v1/volumes_filtered.json
index 1adeee0e1..4dffacb84 100644
--- a/core-test/src/main/resources/storage/v1/volumes_filtered.json
+++ b/core-test/src/main/resources/storage/v1/volumes_filtered.json
@@ -1,44 +1,44 @@
{
- "volumes": [{
- "status": "available",
- "display_name": "vol-test-1",
- "attachments": [],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-04-23T11:31:54.832436",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": null,
- "source_volid": null,
- "metadata": {
-
- },
- "id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
- "size": 1
- },
- {
- "status": "available",
- "display_name": "vol-test-1",
- "attachments": [],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-04-23T11:35:12.548635",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "display_description": "",
- "os-volume-replication:extended_status": null,
- "volume_type": "None",
- "snapshot_id": null,
- "source_volid": null,
- "metadata": {
-
- },
- "id": "a26e94e6-5656-4bfe-960d-edf72100c810",
- "size": 5
- }]
+ "volumes": [
+ {
+ "status": "available",
+ "display_name": "vol-test-1",
+ "attachments": [],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-04-23T11:31:54.832436",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": null,
+ "source_volid": null,
+ "metadata": {
+ },
+ "id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
+ "size": 1
+ },
+ {
+ "status": "available",
+ "display_name": "vol-test-1",
+ "attachments": [],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-04-23T11:35:12.548635",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "display_description": "",
+ "os-volume-replication:extended_status": null,
+ "volume_type": "None",
+ "snapshot_id": null,
+ "source_volid": null,
+ "metadata": {
+ },
+ "id": "a26e94e6-5656-4bfe-960d-edf72100c810",
+ "size": 5
+ }
+ ]
}
diff --git a/core-test/src/main/resources/storage/v1/volumesnapshots.json b/core-test/src/main/resources/storage/v1/volumesnapshots.json
index 9df89cc0a..01d1502c0 100644
--- a/core-test/src/main/resources/storage/v1/volumesnapshots.json
+++ b/core-test/src/main/resources/storage/v1/volumesnapshots.json
@@ -1,26 +1,26 @@
{
- "snapshots": [{
- "status": "available",
- "display_name": "snap-vol-test-1",
- "created_at": "2015-04-23T11:32:28.364877",
- "display_description": "",
- "volume_id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
- "metadata": {
-
- },
- "id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
- "size": 1
- },
- {
- "status": "available",
- "display_name": "snap-vol-test-2",
- "created_at": "2015-04-23T11:32:14.620321",
- "display_description": "",
- "volume_id": "7f47ab73-303c-4a19-b311-6123bb115775",
- "metadata": {
-
- },
- "id": "6489c55f-b9f4-442e-8d0a-5a87349d2d07",
- "size": 1
- }]
+ "snapshots": [
+ {
+ "status": "available",
+ "display_name": "snap-vol-test-1",
+ "created_at": "2015-04-23T11:32:28.364877",
+ "display_description": "",
+ "volume_id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
+ "metadata": {
+ },
+ "id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
+ "size": 1
+ },
+ {
+ "status": "available",
+ "display_name": "snap-vol-test-2",
+ "created_at": "2015-04-23T11:32:14.620321",
+ "display_description": "",
+ "volume_id": "7f47ab73-303c-4a19-b311-6123bb115775",
+ "metadata": {
+ },
+ "id": "6489c55f-b9f4-442e-8d0a-5a87349d2d07",
+ "size": 1
+ }
+ ]
}
diff --git a/core-test/src/main/resources/storage/v1/volumesnapshots_filtered.json b/core-test/src/main/resources/storage/v1/volumesnapshots_filtered.json
index 03edd4bd0..35d17315f 100644
--- a/core-test/src/main/resources/storage/v1/volumesnapshots_filtered.json
+++ b/core-test/src/main/resources/storage/v1/volumesnapshots_filtered.json
@@ -1,14 +1,15 @@
{
- "snapshots": [{
- "status": "available",
- "display_name": "snap-vol-test-1",
- "created_at": "2015-04-23T11:32:28.364877",
- "display_description": "",
- "volume_id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
- "metadata": {
-
- },
- "id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
- "size": 1
- }]
+ "snapshots": [
+ {
+ "status": "available",
+ "display_name": "snap-vol-test-1",
+ "created_at": "2015-04-23T11:32:28.364877",
+ "display_description": "",
+ "volume_id": "b0e394e6-bb10-4bfe-960d-edf72100c810",
+ "metadata": {
+ },
+ "id": "a06b0531-c14b-4a7b-8749-de1378dd1007",
+ "size": 1
+ }
+ ]
}
diff --git a/core-test/src/main/resources/storage/v2/createVolume-muitiattach.json b/core-test/src/main/resources/storage/v2/createVolume-muitiattach.json
index eba22690e..f16f5b936 100644
--- a/core-test/src/main/resources/storage/v2/createVolume-muitiattach.json
+++ b/core-test/src/main/resources/storage/v2/createVolume-muitiattach.json
@@ -1,12 +1,12 @@
{
- "volume": {
- "id" : "ac9ae248-cf21-4301-87b1-568ff20a0a02",
- "status" : "creating",
- "size" : 10,
- "zone" : "nova",
- "created" : "Wed Aug 16 13:27:14 KST 2017",
- "multiattach" : true,
- "metadata" : {},
- "bootable" : false
- }
+ "volume": {
+ "id": "ac9ae248-cf21-4301-87b1-568ff20a0a02",
+ "status": "creating",
+ "size": 10,
+ "zone": "nova",
+ "created": "Wed Aug 16 13:27:14 KST 2017",
+ "multiattach": true,
+ "metadata": {},
+ "bootable": false
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v2/createVolumeTypeResponse.json b/core-test/src/main/resources/storage/v2/createVolumeTypeResponse.json
index 9148cda03..75056565a 100644
--- a/core-test/src/main/resources/storage/v2/createVolumeTypeResponse.json
+++ b/core-test/src/main/resources/storage/v2/createVolumeTypeResponse.json
@@ -1,9 +1,9 @@
{
- "volume_type": {
- "id": "6685584b-1eac-4da6-b5c3-555430cf68ff",
- "name": "testVolume",
- "extra_specs": {
- "capabilities": "gpu"
- }
+ "volume_type": {
+ "id": "6685584b-1eac-4da6-b5c3-555430cf68ff",
+ "name": "testVolume",
+ "extra_specs": {
+ "capabilities": "gpu"
}
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/storage/v2/volume.json b/core-test/src/main/resources/storage/v2/volume.json
index 366063e18..f32c31ad1 100644
--- a/core-test/src/main/resources/storage/v2/volume.json
+++ b/core-test/src/main/resources/storage/v2/volume.json
@@ -1,40 +1,45 @@
{
- "volume": {
- "status": "in-use",
- "user_id": "92ac3530a6cb4d47aa406f1c2c90fca4",
- "attachments": [{
- "host_name": "myhost",
- "device": "/dev/vdd",
- "server_id": "eaa6a54d-35c1-40ce-831d-bb61f991e1a9",
- "id": "8a9287b7-4f4d-4213-8d75-63470f19f27c",
- "volume_id": "8a9287b7-4f4d-4213-8d75-63470f19f27c"
- }],
- "links": [{
- "href": "http://example.com.com:8776/v2/b0b5ed7ae06049688349fe43737796d4/volumes/8a9287b7-4f4d-4213-8d75-63470f19f27c",
- "rel": "self"
- }, {
- "href": "http://example.com:8776/b0b5ed7ae06049688349fe43737796d4/volumes/8a9287b7-4f4d-4213-8d75-63470f19f27c",
- "rel": "bookmark"
- }],
- "availability_zone": "nova",
- "bootable": "false",
- "encrypted": false,
- "created_at": "2015-05-25T15:03:43.104260",
- "description": "a description",
- "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
- "os-volume-replication:driver_data": null,
- "volume_type": "Gold",
- "name": "test-volume",
- "replication_status": "disabled",
- "consistencygroup_id": null,
- "source_volid": "11111111-1111-1111-1111-111111111111",
- "snapshot_id": "22222222-2222-2222-2222-222222222222",
- "os-volume-replication:extended_status": null,
- "metadata": {
- "readonly": "False",
- "attached_mode": "rw"
- },
+ "volume": {
+ "status": "in-use",
+ "user_id": "92ac3530a6cb4d47aa406f1c2c90fca4",
+ "attachments": [
+ {
+ "host_name": "myhost",
+ "device": "/dev/vdd",
+ "server_id": "eaa6a54d-35c1-40ce-831d-bb61f991e1a9",
"id": "8a9287b7-4f4d-4213-8d75-63470f19f27c",
- "size": 100
- }
+ "volume_id": "8a9287b7-4f4d-4213-8d75-63470f19f27c"
+ }
+ ],
+ "links": [
+ {
+ "href": "http://example.com.com:8776/v2/b0b5ed7ae06049688349fe43737796d4/volumes/8a9287b7-4f4d-4213-8d75-63470f19f27c",
+ "rel": "self"
+ },
+ {
+ "href": "http://example.com:8776/b0b5ed7ae06049688349fe43737796d4/volumes/8a9287b7-4f4d-4213-8d75-63470f19f27c",
+ "rel": "bookmark"
+ }
+ ],
+ "availability_zone": "nova",
+ "bootable": "false",
+ "encrypted": false,
+ "created_at": "2015-05-25T15:03:43.104260",
+ "description": "a description",
+ "os-vol-tenant-attr:tenant_id": "b0b5ed7ae06049688349fe43737796d4",
+ "os-volume-replication:driver_data": null,
+ "volume_type": "Gold",
+ "name": "test-volume",
+ "replication_status": "disabled",
+ "consistencygroup_id": null,
+ "source_volid": "11111111-1111-1111-1111-111111111111",
+ "snapshot_id": "22222222-2222-2222-2222-222222222222",
+ "os-volume-replication:extended_status": null,
+ "metadata": {
+ "readonly": "False",
+ "attached_mode": "rw"
+ },
+ "id": "8a9287b7-4f4d-4213-8d75-63470f19f27c",
+ "size": 100
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vim.json b/core-test/src/main/resources/tacker/v1/vim.json
index 429eb41ca..1b85001e0 100644
--- a/core-test/src/main/resources/tacker/v1/vim.json
+++ b/core-test/src/main/resources/tacker/v1/vim.json
@@ -1,30 +1,30 @@
-{
- "vim":{
- "status":"REACHABLE",
- "description":"test-vim-description",
- "tenant_id":"b631e143cf734202a71b2b79e2b15037",
- "name":"test-vim",
- "is_default":true,
- "auth_url":"http://openstack.os4j.com:35357/v3",
- "placement_attr":{
- "regions":[
- "RegionOne"
- ]
- },
- "auth_cred":{
- "username":"admin",
- "project_name":"admin",
- "user_domain_name":"default",
- "project_id":null,
- "auth_url":"http://openstack.os4j.com:35357/v3",
- "password":"***",
- "project_domain_name":"default"
- },
- "type":"openstack",
- "id":"bad2f397-7436-4fc7-8043-726e173c5d30",
- "vim_project":{
- "name":"admin",
- "project_domain_name":"default"
- }
- }
+{
+ "vim": {
+ "status": "REACHABLE",
+ "description": "test-vim-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "name": "test-vim",
+ "is_default": true,
+ "auth_url": "http://openstack.os4j.com:35357/v3",
+ "placement_attr": {
+ "regions": [
+ "RegionOne"
+ ]
+ },
+ "auth_cred": {
+ "username": "admin",
+ "project_name": "admin",
+ "user_domain_name": "default",
+ "project_id": null,
+ "auth_url": "http://openstack.os4j.com:35357/v3",
+ "password": "***",
+ "project_domain_name": "default"
+ },
+ "type": "openstack",
+ "id": "bad2f397-7436-4fc7-8043-726e173c5d30",
+ "vim_project": {
+ "name": "admin",
+ "project_domain_name": "default"
+ }
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vims.json b/core-test/src/main/resources/tacker/v1/vims.json
index 26f057201..459f0673e 100644
--- a/core-test/src/main/resources/tacker/v1/vims.json
+++ b/core-test/src/main/resources/tacker/v1/vims.json
@@ -1,32 +1,32 @@
-{
- "vims":[
- {
- "status":"REACHABLE",
- "description":"test-vim-description",
- "tenant_id":"b631e143cf734202a71b2b79e2b15037",
- "name":"test-vim",
- "is_default":true,
- "auth_url":"http://openstack.os4j.com:35357/v3",
- "placement_attr":{
- "regions":[
- "RegionOne"
- ]
- },
- "auth_cred":{
- "username":"admin",
- "project_name":"admin",
- "user_domain_name":"default",
- "project_id":null,
- "auth_url":"http://openstack.os4j.com:35357/v3",
- "password":"***",
- "project_domain_name":"default"
- },
- "type":"openstack",
- "id":"bad2f397-7436-4fc7-8043-726e173c5d30",
- "vim_project":{
- "name":"admin",
- "project_domain_name":"default"
- }
- }
- ]
+{
+ "vims": [
+ {
+ "status": "REACHABLE",
+ "description": "test-vim-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "name": "test-vim",
+ "is_default": true,
+ "auth_url": "http://openstack.os4j.com:35357/v3",
+ "placement_attr": {
+ "regions": [
+ "RegionOne"
+ ]
+ },
+ "auth_cred": {
+ "username": "admin",
+ "project_name": "admin",
+ "user_domain_name": "default",
+ "project_id": null,
+ "auth_url": "http://openstack.os4j.com:35357/v3",
+ "password": "***",
+ "project_domain_name": "default"
+ },
+ "type": "openstack",
+ "id": "bad2f397-7436-4fc7-8043-726e173c5d30",
+ "vim_project": {
+ "name": "admin",
+ "project_domain_name": "default"
+ }
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vnf-create.json b/core-test/src/main/resources/tacker/v1/vnf-create.json
index a9a37541d..bb9f9a1b4 100644
--- a/core-test/src/main/resources/tacker/v1/vnf-create.json
+++ b/core-test/src/main/resources/tacker/v1/vnf-create.json
@@ -1,20 +1,19 @@
-{
- "vnf":{
- "status":"PENDING_CREATE",
- "description":"test-vnf-description",
- "tenant_id":"b631e143cf734202a71b2b79e2b15037",
- "vim_id":"f8a5d081-2aff-4382-86e1-d0830c4324a0",
- "name":"test-vnf",
- "instance_id":"ec47814a-eb23-4a18-ac55-67547e3f61b6",
- "mgmt_url":null,
- "placement_attr":{
- "vim_name":"VIM-1"
- },
- "error_reason":null,
- "attributes":{
-
- },
- "id":"4043f4bd-a728-4ee3-91d6-a11a6bb89030",
- "vnfd_id":"1363e776-6c79-4e53-8074-4e32e49f156a"
- }
+{
+ "vnf": {
+ "status": "PENDING_CREATE",
+ "description": "test-vnf-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "vim_id": "f8a5d081-2aff-4382-86e1-d0830c4324a0",
+ "name": "test-vnf",
+ "instance_id": "ec47814a-eb23-4a18-ac55-67547e3f61b6",
+ "mgmt_url": null,
+ "placement_attr": {
+ "vim_name": "VIM-1"
+ },
+ "error_reason": null,
+ "attributes": {
+ },
+ "id": "4043f4bd-a728-4ee3-91d6-a11a6bb89030",
+ "vnfd_id": "1363e776-6c79-4e53-8074-4e32e49f156a"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vnf-get.json b/core-test/src/main/resources/tacker/v1/vnf-get.json
index bfea0d63c..c06af523e 100644
--- a/core-test/src/main/resources/tacker/v1/vnf-get.json
+++ b/core-test/src/main/resources/tacker/v1/vnf-get.json
@@ -1,19 +1,18 @@
-{
- "vnf":{
- "status":"ACTIVE",
- "description":"test-vnf-description",
- "tenant_id":"b631e143cf734202a71b2b79e2b15037",
- "vim_id":"f8a5d081-2aff-4382-86e1-d0830c4324a0",
- "instance_id":"4ddcc0c9-639a-418f-9781-a53dd5958b3b",
- "mgmt_url":"{\"vdu1\": \"15.0.0.3\"}",
- "placement_attr":{
- "vim_name":"VIM-1"
- },
- "error_reason":null,
- "attributes":{
-
- },
- "id":"afbbf7f4-59c2-45ed-b158-8c4e2e1d9104",
- "name":"test-vnf"
- }
+{
+ "vnf": {
+ "status": "ACTIVE",
+ "description": "test-vnf-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "vim_id": "f8a5d081-2aff-4382-86e1-d0830c4324a0",
+ "instance_id": "4ddcc0c9-639a-418f-9781-a53dd5958b3b",
+ "mgmt_url": "{\"vdu1\": \"15.0.0.3\"}",
+ "placement_attr": {
+ "vim_name": "VIM-1"
+ },
+ "error_reason": null,
+ "attributes": {
+ },
+ "id": "afbbf7f4-59c2-45ed-b158-8c4e2e1d9104",
+ "name": "test-vnf"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vnf-update.json b/core-test/src/main/resources/tacker/v1/vnf-update.json
index 79f2d3fdc..8b24fcc6b 100644
--- a/core-test/src/main/resources/tacker/v1/vnf-update.json
+++ b/core-test/src/main/resources/tacker/v1/vnf-update.json
@@ -1,19 +1,19 @@
-{
- "vnf":{
- "status":"PENDING_UPDATE",
- "description":"test-update-vnf-description",
- "tenant_id":"b631e143cf734202a71b2b79e2b15037",
- "vim_id":"f8a5d081-2aff-4382-86e1-d0830c4324a0",
- "instance_id":"ec47814a-eb23-4a18-ac55-67547e3f61b6",
- "mgmt_url":"{\"vdu1\": \"15.0.0.4\"}",
- "placement_attr":{
- "vim_name":"VIM-1"
- },
- "error_reason":null,
- "attributes":{
- "config":"vdus:\n vdu1:\n auto-scaling: noop\n id: vdu1\n instance_type: m1.tiny\n network_interfaces:\n management: {management: true, network: net_mgmt}\n pkt_in: {network: net0}\n pkt_out: {network: net1}\n placement_policy: {availability_zone: nova}\n vm_image: cirros-0.3.4-x86_64-uec\n"
- },
- "id":"4043f4bd-a728-4ee3-91d6-a11a6bb89030",
- "name":"test-update-vnf"
- }
+{
+ "vnf": {
+ "status": "PENDING_UPDATE",
+ "description": "test-update-vnf-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "vim_id": "f8a5d081-2aff-4382-86e1-d0830c4324a0",
+ "instance_id": "ec47814a-eb23-4a18-ac55-67547e3f61b6",
+ "mgmt_url": "{\"vdu1\": \"15.0.0.4\"}",
+ "placement_attr": {
+ "vim_name": "VIM-1"
+ },
+ "error_reason": null,
+ "attributes": {
+ "config": "vdus:\n vdu1:\n auto-scaling: noop\n id: vdu1\n instance_type: m1.tiny\n network_interfaces:\n management: {management: true, network: net_mgmt}\n pkt_in: {network: net0}\n pkt_out: {network: net1}\n placement_policy: {availability_zone: nova}\n vm_image: cirros-0.3.4-x86_64-uec\n"
+ },
+ "id": "4043f4bd-a728-4ee3-91d6-a11a6bb89030",
+ "name": "test-update-vnf"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vnfd.json b/core-test/src/main/resources/tacker/v1/vnfd.json
index bac59bf2f..048e1f3da 100644
--- a/core-test/src/main/resources/tacker/v1/vnfd.json
+++ b/core-test/src/main/resources/tacker/v1/vnfd.json
@@ -1,19 +1,19 @@
{
- "vnfd" : {
- "service_types": [
- {
- "service_type": "vnfd",
- "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977"
- }
- ],
- "description": "test-vnfd-description",
- "tenant_id": "b631e143cf734202a71b2b79e2b15037",
- "mgmt_driver": "noop",
- "infra_driver": "heat",
- "attributes": {
- "vnfd": "template_name: sample-vnfd\ndescription: admin-example\n\nservice_properties:\n Id: sample-vnfd\n vendor: tacker\n version: 1\n\nvdus:\n vdu1:\n id: vdu1\n vm_image: cirros-0.3.4-x86_64-uec\n instance_type: m1.tiny\n\n network_interfaces:\n management:\n network: net_mgmt\n management: true\n pkt_in:\n network: net0\n pkt_out:\n network: net1\n\n placement_policy:\n availability_zone: nova\n\n auto-scaling: noop\n\n config:\n param0: key0\n param1: key1\n"
- },
- "id": "1363e776-6c79-4e53-8074-4e32e49f156a",
- "name": "test-vnfd"
- }
+ "vnfd": {
+ "service_types": [
+ {
+ "service_type": "vnfd",
+ "id": "3b0ef8f4-82c7-44d4-a4fb-6177f9a21977"
+ }
+ ],
+ "description": "test-vnfd-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "mgmt_driver": "noop",
+ "infra_driver": "heat",
+ "attributes": {
+ "vnfd": "template_name: sample-vnfd\ndescription: admin-example\n\nservice_properties:\n Id: sample-vnfd\n vendor: tacker\n version: 1\n\nvdus:\n vdu1:\n id: vdu1\n vm_image: cirros-0.3.4-x86_64-uec\n instance_type: m1.tiny\n\n network_interfaces:\n management:\n network: net_mgmt\n management: true\n pkt_in:\n network: net0\n pkt_out:\n network: net1\n\n placement_policy:\n availability_zone: nova\n\n auto-scaling: noop\n\n config:\n param0: key0\n param1: key1\n"
+ },
+ "id": "1363e776-6c79-4e53-8074-4e32e49f156a",
+ "name": "test-vnfd"
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/tacker/v1/vnfs.json b/core-test/src/main/resources/tacker/v1/vnfs.json
index a82d00325..b482f31f7 100644
--- a/core-test/src/main/resources/tacker/v1/vnfs.json
+++ b/core-test/src/main/resources/tacker/v1/vnfs.json
@@ -1,21 +1,20 @@
-{
- "vnfs":[
- {
- "status":"ACTIVE",
- "description":"test-vnf-description",
- "tenant_id":"b631e143cf734202a71b2b79e2b15037",
- "vim_id":"f8a5d081-2aff-4382-86e1-d0830c4324a0",
- "instance_id":"4ddcc0c9-639a-418f-9781-a53dd5958b3b",
- "mgmt_url":"{\"vdu1\": \"15.0.0.3\"}",
- "placement_attr":{
- "vim_name":"VIM-1"
- },
- "error_reason":null,
- "attributes":{
-
- },
- "id":"afbbf7f4-59c2-45ed-b158-8c4e2e1d9104",
- "name":"test-vnf"
- }
- ]
+{
+ "vnfs": [
+ {
+ "status": "ACTIVE",
+ "description": "test-vnf-description",
+ "tenant_id": "b631e143cf734202a71b2b79e2b15037",
+ "vim_id": "f8a5d081-2aff-4382-86e1-d0830c4324a0",
+ "instance_id": "4ddcc0c9-639a-418f-9781-a53dd5958b3b",
+ "mgmt_url": "{\"vdu1\": \"15.0.0.3\"}",
+ "placement_attr": {
+ "vim_name": "VIM-1"
+ },
+ "error_reason": null,
+ "attributes": {
+ },
+ "id": "afbbf7f4-59c2-45ed-b158-8c4e2e1d9104",
+ "name": "test-vnf"
+ }
+ ]
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/telemetry/alarm.json b/core-test/src/main/resources/telemetry/alarm.json
index 44bbe4bd8..5644d6d70 100644
--- a/core-test/src/main/resources/telemetry/alarm.json
+++ b/core-test/src/main/resources/telemetry/alarm.json
@@ -1,29 +1,29 @@
{
- "alarm_id" : "03757eede9c540338e732d1a7fb07966",
- "enabled": false,
- "name": "name_post",
- "state": "ok",
- "type": "gnocchi_aggregation_by_metrics_threshold",
- "severity": "critical",
- "ok_actions": [
- "http://something/ok"
- ],
- "alarm_actions": [
- "http://something/alarm"
- ],
- "insufficient_data_actions": [
- "http://something/no"
- ],
- "repeat_actions": true,
- "gnocchi_aggregation_by_metrics_threshold_rule": {
- "metrics": [
- "b3d9d8ab-05e8-439f-89ad-5e978dd2a5eb",
- "009d4faf-c275-46f0-8f2d-670b15bac2b0"
- ],
- "comparison_operator": "le",
- "aggregation_method": "count",
- "threshold": 50,
- "evaluation_periods": 3,
- "granularity": 180
- }
- }
+ "alarm_id": "03757eede9c540338e732d1a7fb07966",
+ "enabled": false,
+ "name": "name_post",
+ "state": "ok",
+ "type": "gnocchi_aggregation_by_metrics_threshold",
+ "severity": "critical",
+ "ok_actions": [
+ "http://something/ok"
+ ],
+ "alarm_actions": [
+ "http://something/alarm"
+ ],
+ "insufficient_data_actions": [
+ "http://something/no"
+ ],
+ "repeat_actions": true,
+ "gnocchi_aggregation_by_metrics_threshold_rule": {
+ "metrics": [
+ "b3d9d8ab-05e8-439f-89ad-5e978dd2a5eb",
+ "009d4faf-c275-46f0-8f2d-670b15bac2b0"
+ ],
+ "comparison_operator": "le",
+ "aggregation_method": "count",
+ "threshold": 50,
+ "evaluation_periods": 3,
+ "granularity": 180
+ }
+}
diff --git a/core-test/src/main/resources/telemetry/alarms.json b/core-test/src/main/resources/telemetry/alarms.json
index 9aafa9d72..54bf520dd 100644
--- a/core-test/src/main/resources/telemetry/alarms.json
+++ b/core-test/src/main/resources/telemetry/alarms.json
@@ -1,196 +1,236 @@
-[{
- "alarm_actions" : ["http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_out?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=800c42eb3f4a49218f45688547c77266&SignatureVersion=2&Signature=Hgbvixq0VkVKJIKEyuIIEx7a68ut2eCl0EpxoaahUVU%3D"],
- "ok_actions" : [],
- "name" : "sdfasdf-scale_out_WebAS-Sig-l4ue3wfz6otx",
- "timestamp" : "2015-01-20T15:06:06.625000",
- "enabled" : true,
- "state" : "insufficient data",
- "state_timestamp" : "2015-01-20T15:06:06.625000",
- "threshold_rule" : {
- "meter_name" : "cpu",
- "evaluation_periods" : 2,
- "period" : 60,
- "statistic" : "avg",
- "threshold" : 500.0,
- "query" : [{
- "field" : "metadata.metering.metadata.stack_id",
- "value" : "4bb97267-0657-4834-bbe2-eb0a5f40480d",
- "op" : "eq"
- }, {
- "field" : "metadata.metering.metadata.resource_name",
- "value" : "WebAS-OeM",
- "op" : "eq"
- }
- ],
- "comparison_operator" : "gt",
- "exclude_outliers" : false
- },
- "alarm_id" : "7de0effc-bf54-4ffd-bb63-dec286d4f17f",
- "time_constraints" : [],
- "insufficient_data_actions" : [],
- "repeat_actions" : true,
- "user_id" : "de2fd0ebac804ef8970e69ae5a4b4a16",
- "project_id" : "3c8edb30c13d471d96c9881dee761134",
- "type" : "threshold",
- "description" : "scale out"
- }, {
- "alarm_actions" : ["http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_in?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=aca03ce06e4e4aec97aeea345b817249&SignatureVersion=2&Signature=H743x%2FSH8mLzSW%2BHmQLedflGIv69R6EFsa9VIduT6m8%3D"],
- "ok_actions" : [],
- "name" : "sdfasdf-scale_in_WebAS-Sig-ob3jxa7tl6ch",
- "timestamp" : "2015-01-20T15:06:06.724000",
- "enabled" : true,
- "state" : "insufficient data",
- "state_timestamp" : "2015-01-20T15:06:06.724000",
- "threshold_rule" : {
- "meter_name" : "cpu",
- "evaluation_periods" : 2,
- "period" : 60,
- "statistic" : "avg",
- "threshold" : 100.0,
- "query" : [{
- "field" : "metadata.metering.metadata.stack_id",
- "value" : "4bb97267-0657-4834-bbe2-eb0a5f40480d",
- "op" : "eq"
- }, {
- "field" : "metadata.metering.metadata.resource_name",
- "value" : "WebAS-OeM",
- "op" : "eq"
- }
- ],
- "comparison_operator" : "lt",
- "exclude_outliers" : false
- },
- "alarm_id" : "ca1ac89f-5dfe-4209-b92f-f9ca4f4eb85b",
- "time_constraints" : [],
- "insufficient_data_actions" : [],
- "repeat_actions" : true,
- "user_id" : "de2fd0ebac804ef8970e69ae5a4b4a16",
- "project_id" : "3c8edb30c13d471d96c9881dee761134",
- "type" : "threshold",
- "description" : "scale in"
- },{
- "alarm_id" : "02c1f1178d1942b9bbe6f6836412d89a",
- "name": "added_alarm_constraint_name",
- "type": "threshold",
- "state": "ok",
- "state_reason": "ignored",
- "severity": "low",
- "time_constraints": [
- {
- "name": "testcons",
- "start": "* 11 * * *",
- "duration": 10
- },
- {
- "name": "testcons",
- "start": "* * * * *",
- "duration": 20
- }
- ],
- "threshold_rule": {
- "meter_name": "cpu",
- "comparison_operator": "gt",
- "threshold": 2.0,
- "statistic": "avg",
- "query": [{"field": "metadata.field",
- "op": "eq",
- "value": "5",
- "type": "string"}],
- "period": 3
- }
- }, {
- "alarm_id" : "03757eede9c540338e732d1a7fb07966",
- "enabled": false,
- "name": "name_post",
- "state": "ok",
- "type": "gnocchi_aggregation_by_metrics_threshold",
- "severity": "critical",
- "ok_actions": [
- "http://something/ok"
- ],
- "alarm_actions": [
- "http://something/alarm"
- ],
- "insufficient_data_actions": [
- "http://something/no"
- ],
- "repeat_actions": true,
- "gnocchi_aggregation_by_metrics_threshold_rule": {
- "metrics": [
- "b3d9d8ab-05e8-439f-89ad-5e978dd2a5eb",
- "009d4faf-c275-46f0-8f2d-670b15bac2b0"
- ],
- "comparison_operator": "le",
- "aggregation_method": "count",
- "threshold": 50,
- "evaluation_periods": 3,
- "granularity": 180
- }
- },
- {
- "alarm_id" : "05109347b3274e73893ff41944bfa293",
- "enabled": false,
- "name": "gnocchi_resource_threshold",
- "state": "ok",
- "type": "gnocchi_resources_threshold",
- "severity": "critical",
- "ok_actions": ["http://something/ok"],
- "alarm_actions": ["http://something/alarm"],
- "insufficient_data_actions": ["http://something/no"],
- "repeat_actions": true,
- "gnocchi_resources_threshold_rule": {
- "metric": "cpu_util",
- "comparison_operator": "le",
- "aggregation_method": "count",
- "threshold": 50,
- "evaluation_periods": 3,
- "granularity": 180,
- "resource_type": "instance",
- "resource_id": "209ef69c-c10c-4efb-90ff-46f4b2d90d2e"
- }
- },{
- "alarm_id" : "0622fcb3c1b5461eab8ae74d3ba813aa",
- "enabled": false,
- "name": "aggregation_by_metrics",
- "state": "ok",
- "type": "gnocchi_aggregation_by_metrics_threshold",
- "severity": "critical",
- "ok_actions": ["http://something/ok"],
- "alarm_actions": ["http://something/alarm"],
- "insufficient_data_actions": ["http://something/no"],
- "repeat_actions": true,
- "gnocchi_aggregation_by_metrics_threshold_rule": {
- "metrics": ["b3d9d8ab-05e8-439f-89ad-5e978dd2a5eb",
- "009d4faf-c275-46f0-8f2d-670b15bac2b0"],
- "comparison_operator": "le",
- "aggregation_method": "count",
- "threshold": 50,
- "evaluation_periods": 3,
- "granularity": 180
- }
- },{
- "alarm_id" : "06b3a51958d74499910aabde4f3dd1b8",
- "enabled": false,
- "name": "gnocchi_aggregation_by_resources_threshold",
- "state": "ok",
- "type": "gnocchi_aggregation_by_resources_threshold",
- "severity": "critical",
- "ok_actions": ["http://something/ok"],
- "alarm_actions": ["http://something/alarm"],
- "insufficient_data_actions": ["http://something/no"],
- "repeat_actions": true,
- "gnocchi_aggregation_by_resources_threshold_rule": {
- "metric": "ameter",
- "comparison_operator": "le",
- "aggregation_method": "count",
- "threshold": 50,
- "evaluation_periods": 3,
- "granularity": 180,
- "resource_type": "instance",
- "query": {"field": "metadata.field",
- "op": "eq",
- "value": "5",
- "type": "string"}
- }
- }
+[
+ {
+ "alarm_actions": [
+ "http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_out?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=800c42eb3f4a49218f45688547c77266&SignatureVersion=2&Signature=Hgbvixq0VkVKJIKEyuIIEx7a68ut2eCl0EpxoaahUVU%3D"
+ ],
+ "ok_actions": [],
+ "name": "sdfasdf-scale_out_WebAS-Sig-l4ue3wfz6otx",
+ "timestamp": "2015-01-20T15:06:06.625000",
+ "enabled": true,
+ "state": "insufficient data",
+ "state_timestamp": "2015-01-20T15:06:06.625000",
+ "threshold_rule": {
+ "meter_name": "cpu",
+ "evaluation_periods": 2,
+ "period": 60,
+ "statistic": "avg",
+ "threshold": 500.0,
+ "query": [
+ {
+ "field": "metadata.metering.metadata.stack_id",
+ "value": "4bb97267-0657-4834-bbe2-eb0a5f40480d",
+ "op": "eq"
+ },
+ {
+ "field": "metadata.metering.metadata.resource_name",
+ "value": "WebAS-OeM",
+ "op": "eq"
+ }
+ ],
+ "comparison_operator": "gt",
+ "exclude_outliers": false
+ },
+ "alarm_id": "7de0effc-bf54-4ffd-bb63-dec286d4f17f",
+ "time_constraints": [],
+ "insufficient_data_actions": [],
+ "repeat_actions": true,
+ "user_id": "de2fd0ebac804ef8970e69ae5a4b4a16",
+ "project_id": "3c8edb30c13d471d96c9881dee761134",
+ "type": "threshold",
+ "description": "scale out"
+ },
+ {
+ "alarm_actions": [
+ "http://192.168.0.1:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3A3c8edb30c13d471d96c9881dee761134%3Astacks%2Fsdfasdf%2F4bb97267-0657-4834-bbe2-eb0a5f40480d%2Fresources%2FWebAS-Sig_group.WebAS-Sig_scale_in?Timestamp=2015-01-20T15%3A06%3A04Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=aca03ce06e4e4aec97aeea345b817249&SignatureVersion=2&Signature=H743x%2FSH8mLzSW%2BHmQLedflGIv69R6EFsa9VIduT6m8%3D"
+ ],
+ "ok_actions": [],
+ "name": "sdfasdf-scale_in_WebAS-Sig-ob3jxa7tl6ch",
+ "timestamp": "2015-01-20T15:06:06.724000",
+ "enabled": true,
+ "state": "insufficient data",
+ "state_timestamp": "2015-01-20T15:06:06.724000",
+ "threshold_rule": {
+ "meter_name": "cpu",
+ "evaluation_periods": 2,
+ "period": 60,
+ "statistic": "avg",
+ "threshold": 100.0,
+ "query": [
+ {
+ "field": "metadata.metering.metadata.stack_id",
+ "value": "4bb97267-0657-4834-bbe2-eb0a5f40480d",
+ "op": "eq"
+ },
+ {
+ "field": "metadata.metering.metadata.resource_name",
+ "value": "WebAS-OeM",
+ "op": "eq"
+ }
+ ],
+ "comparison_operator": "lt",
+ "exclude_outliers": false
+ },
+ "alarm_id": "ca1ac89f-5dfe-4209-b92f-f9ca4f4eb85b",
+ "time_constraints": [],
+ "insufficient_data_actions": [],
+ "repeat_actions": true,
+ "user_id": "de2fd0ebac804ef8970e69ae5a4b4a16",
+ "project_id": "3c8edb30c13d471d96c9881dee761134",
+ "type": "threshold",
+ "description": "scale in"
+ },
+ {
+ "alarm_id": "02c1f1178d1942b9bbe6f6836412d89a",
+ "name": "added_alarm_constraint_name",
+ "type": "threshold",
+ "state": "ok",
+ "state_reason": "ignored",
+ "severity": "low",
+ "time_constraints": [
+ {
+ "name": "testcons",
+ "start": "* 11 * * *",
+ "duration": 10
+ },
+ {
+ "name": "testcons",
+ "start": "* * * * *",
+ "duration": 20
+ }
+ ],
+ "threshold_rule": {
+ "meter_name": "cpu",
+ "comparison_operator": "gt",
+ "threshold": 2.0,
+ "statistic": "avg",
+ "query": [
+ {
+ "field": "metadata.field",
+ "op": "eq",
+ "value": "5",
+ "type": "string"
+ }
+ ],
+ "period": 3
+ }
+ },
+ {
+ "alarm_id": "03757eede9c540338e732d1a7fb07966",
+ "enabled": false,
+ "name": "name_post",
+ "state": "ok",
+ "type": "gnocchi_aggregation_by_metrics_threshold",
+ "severity": "critical",
+ "ok_actions": [
+ "http://something/ok"
+ ],
+ "alarm_actions": [
+ "http://something/alarm"
+ ],
+ "insufficient_data_actions": [
+ "http://something/no"
+ ],
+ "repeat_actions": true,
+ "gnocchi_aggregation_by_metrics_threshold_rule": {
+ "metrics": [
+ "b3d9d8ab-05e8-439f-89ad-5e978dd2a5eb",
+ "009d4faf-c275-46f0-8f2d-670b15bac2b0"
+ ],
+ "comparison_operator": "le",
+ "aggregation_method": "count",
+ "threshold": 50,
+ "evaluation_periods": 3,
+ "granularity": 180
+ }
+ },
+ {
+ "alarm_id": "05109347b3274e73893ff41944bfa293",
+ "enabled": false,
+ "name": "gnocchi_resource_threshold",
+ "state": "ok",
+ "type": "gnocchi_resources_threshold",
+ "severity": "critical",
+ "ok_actions": [
+ "http://something/ok"
+ ],
+ "alarm_actions": [
+ "http://something/alarm"
+ ],
+ "insufficient_data_actions": [
+ "http://something/no"
+ ],
+ "repeat_actions": true,
+ "gnocchi_resources_threshold_rule": {
+ "metric": "cpu_util",
+ "comparison_operator": "le",
+ "aggregation_method": "count",
+ "threshold": 50,
+ "evaluation_periods": 3,
+ "granularity": 180,
+ "resource_type": "instance",
+ "resource_id": "209ef69c-c10c-4efb-90ff-46f4b2d90d2e"
+ }
+ },
+ {
+ "alarm_id": "0622fcb3c1b5461eab8ae74d3ba813aa",
+ "enabled": false,
+ "name": "aggregation_by_metrics",
+ "state": "ok",
+ "type": "gnocchi_aggregation_by_metrics_threshold",
+ "severity": "critical",
+ "ok_actions": [
+ "http://something/ok"
+ ],
+ "alarm_actions": [
+ "http://something/alarm"
+ ],
+ "insufficient_data_actions": [
+ "http://something/no"
+ ],
+ "repeat_actions": true,
+ "gnocchi_aggregation_by_metrics_threshold_rule": {
+ "metrics": [
+ "b3d9d8ab-05e8-439f-89ad-5e978dd2a5eb",
+ "009d4faf-c275-46f0-8f2d-670b15bac2b0"
+ ],
+ "comparison_operator": "le",
+ "aggregation_method": "count",
+ "threshold": 50,
+ "evaluation_periods": 3,
+ "granularity": 180
+ }
+ },
+ {
+ "alarm_id": "06b3a51958d74499910aabde4f3dd1b8",
+ "enabled": false,
+ "name": "gnocchi_aggregation_by_resources_threshold",
+ "state": "ok",
+ "type": "gnocchi_aggregation_by_resources_threshold",
+ "severity": "critical",
+ "ok_actions": [
+ "http://something/ok"
+ ],
+ "alarm_actions": [
+ "http://something/alarm"
+ ],
+ "insufficient_data_actions": [
+ "http://something/no"
+ ],
+ "repeat_actions": true,
+ "gnocchi_aggregation_by_resources_threshold_rule": {
+ "metric": "ameter",
+ "comparison_operator": "le",
+ "aggregation_method": "count",
+ "threshold": 50,
+ "evaluation_periods": 3,
+ "granularity": 180,
+ "resource_type": "instance",
+ "query": {
+ "field": "metadata.field",
+ "op": "eq",
+ "value": "5",
+ "type": "string"
+ }
+ }
+ }
]
\ No newline at end of file
diff --git a/core-test/src/main/resources/telemetry/capabilities.json b/core-test/src/main/resources/telemetry/capabilities.json
index fde0f5187..d4ba71040 100644
--- a/core-test/src/main/resources/telemetry/capabilities.json
+++ b/core-test/src/main/resources/telemetry/capabilities.json
@@ -1,29 +1,29 @@
-{
- "api":{
- "statistics:aggregation:selectable:count":true,
- "samples:query:metadata":true,
- "samples:query:complex":true,
- "statistics:aggregation:standard":true,
- "statistics:query:metadata":true,
- "statistics:aggregation:selectable:sum":true,
- "events:query:simple":true,
- "meters:query:metadata":true,
- "statistics:aggregation:selectable:stddev":true,
- "resources:query:simple":true,
- "resources:query:metadata":true,
- "statistics:groupby":true,
- "samples:query:simple":true,
- "statistics:query:simple":true,
- "statistics:aggregation:selectable:cardinality":true,
- "statistics:aggregation:selectable:min":true,
- "statistics:aggregation:selectable:max":true,
- "statistics:aggregation:selectable:avg":true,
- "meters:query:simple":true
- },
- "storage":{
- "storage:production_ready":true
- },
- "event_storage":{
- "storage:production_ready":true
- }
+{
+ "api": {
+ "statistics:aggregation:selectable:count": true,
+ "samples:query:metadata": true,
+ "samples:query:complex": true,
+ "statistics:aggregation:standard": true,
+ "statistics:query:metadata": true,
+ "statistics:aggregation:selectable:sum": true,
+ "events:query:simple": true,
+ "meters:query:metadata": true,
+ "statistics:aggregation:selectable:stddev": true,
+ "resources:query:simple": true,
+ "resources:query:metadata": true,
+ "statistics:groupby": true,
+ "samples:query:simple": true,
+ "statistics:query:simple": true,
+ "statistics:aggregation:selectable:cardinality": true,
+ "statistics:aggregation:selectable:min": true,
+ "statistics:aggregation:selectable:max": true,
+ "statistics:aggregation:selectable:avg": true,
+ "meters:query:simple": true
+ },
+ "storage": {
+ "storage:production_ready": true
+ },
+ "event_storage": {
+ "storage:production_ready": true
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/telemetry/resource.json b/core-test/src/main/resources/telemetry/resource.json
index da5d305d7..4cdc83bb1 100644
--- a/core-test/src/main/resources/telemetry/resource.json
+++ b/core-test/src/main/resources/telemetry/resource.json
@@ -1,32 +1,32 @@
-{
- "user_id":null,
- "resource_id":"02748368-2b4a-4b70-ac13-b6c5fd8ed415",
- "source":"openstack",
- "last_sample_timestamp":"2016-06-10T02:53:02.681338",
- "first_sample_timestamp":"2016-06-10T02:53:02.633042",
- "project_id":"abe3797914274da482778ca158cbdbf6",
- "metadata":{
- "event_type":"image.update",
- "container_format":"ami",
- "min_ram":"0",
- "updated_at":"2016-06-10T02:53:02Z",
- "owner":"abe3797914274da482778ca158cbdbf6",
- "deleted_at":"None",
- "id":"02748368-2b4a-4b70-ac13-b6c5fd8ed415",
- "size":"25165824",
- "disk_format":"ami",
- "properties.kernel_id":"66e307b0-042d-4993-abf6-7c194944ec09",
- "status":"active",
- "tags":"[]",
- "deleted":"False",
- "properties.ramdisk_id":"6b9e1c10-3fa7-4daa-a7aa-6cff4734ec0c",
- "host":"image.localhost",
- "min_disk":"0",
- "is_public":"True",
- "virtual_size":"None",
- "name":"cirros-0.3.4-x86_64-uec",
- "checksum":"eb9139e4942121f22bbc2afc0400b2a4",
- "created_at":"2016-06-10T02:53:02Z",
- "protected":"False"
- }
- }
\ No newline at end of file
+{
+ "user_id": null,
+ "resource_id": "02748368-2b4a-4b70-ac13-b6c5fd8ed415",
+ "source": "openstack",
+ "last_sample_timestamp": "2016-06-10T02:53:02.681338",
+ "first_sample_timestamp": "2016-06-10T02:53:02.633042",
+ "project_id": "abe3797914274da482778ca158cbdbf6",
+ "metadata": {
+ "event_type": "image.update",
+ "container_format": "ami",
+ "min_ram": "0",
+ "updated_at": "2016-06-10T02:53:02Z",
+ "owner": "abe3797914274da482778ca158cbdbf6",
+ "deleted_at": "None",
+ "id": "02748368-2b4a-4b70-ac13-b6c5fd8ed415",
+ "size": "25165824",
+ "disk_format": "ami",
+ "properties.kernel_id": "66e307b0-042d-4993-abf6-7c194944ec09",
+ "status": "active",
+ "tags": "[]",
+ "deleted": "False",
+ "properties.ramdisk_id": "6b9e1c10-3fa7-4daa-a7aa-6cff4734ec0c",
+ "host": "image.localhost",
+ "min_disk": "0",
+ "is_public": "True",
+ "virtual_size": "None",
+ "name": "cirros-0.3.4-x86_64-uec",
+ "checksum": "eb9139e4942121f22bbc2afc0400b2a4",
+ "created_at": "2016-06-10T02:53:02Z",
+ "protected": "False"
+ }
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/telemetry/resources.json b/core-test/src/main/resources/telemetry/resources.json
index 78ba05e79..dda90b39a 100644
--- a/core-test/src/main/resources/telemetry/resources.json
+++ b/core-test/src/main/resources/telemetry/resources.json
@@ -1,64 +1,64 @@
-[
- {
- "user_id":null,
- "resource_id":"02748368-2b4a-4b70-ac13-b6c5fd8ed415",
- "source":"openstack",
- "last_sample_timestamp":"2016-06-10T02:53:02.681338",
- "first_sample_timestamp":"2016-06-10T02:53:02.633042",
- "project_id":"abe3797914274da482778ca158cbdbf6",
- "metadata":{
- "event_type":"image.update",
- "container_format":"ami",
- "min_ram":"0",
- "updated_at":"2016-06-10T02:53:02Z",
- "owner":"abe3797914274da482778ca158cbdbf6",
- "deleted_at":"None",
- "id":"02748368-2b4a-4b70-ac13-b6c5fd8ed415",
- "size":"25165824",
- "disk_format":"ami",
- "properties.kernel_id":"66e307b0-042d-4993-abf6-7c194944ec09",
- "status":"active",
- "tags":"[]",
- "deleted":"False",
- "properties.ramdisk_id":"6b9e1c10-3fa7-4daa-a7aa-6cff4734ec0c",
- "host":"image.localhost",
- "min_disk":"0",
- "is_public":"True",
- "virtual_size":"None",
- "name":"cirros-0.3.4-x86_64-uec",
- "checksum":"eb9139e4942121f22bbc2afc0400b2a4",
- "created_at":"2016-06-10T02:53:02Z",
- "protected":"False"
- }
- },
- {
- "user_id":null,
- "resource_id":"358a1715-e953-46bb-abae-233384dcf1af",
- "source":"openstack",
- "last_sample_timestamp":"2016-06-10T03:05:26.022530",
- "first_sample_timestamp":"2016-06-10T03:05:25.947459",
- "project_id":"abe3797914274da482778ca158cbdbf6",
- "metadata":{
- "status":"active",
- "virtual_size":"None",
- "event_type":"image.update",
- "tags":"[]",
- "deleted":"False",
- "checksum":"2b50d24d1996bb871eca2a87d93b6644",
- "created_at":"2016-06-10T03:05:08Z",
- "size":"388709888",
- "disk_format":"qcow2",
- "updated_at":"2016-06-10T03:05:25Z",
- "owner":"abe3797914274da482778ca158cbdbf6",
- "host":"image.localhost",
- "protected":"False",
- "min_ram":"0",
- "container_format":"bare",
- "min_disk":"0",
- "is_public":"True",
- "deleted_at":"None",
- "id":"358a1715-e953-46bb-abae-233384dcf1af",
- "name":"manila-service-image-master"
- }
- }
+[
+ {
+ "user_id": null,
+ "resource_id": "02748368-2b4a-4b70-ac13-b6c5fd8ed415",
+ "source": "openstack",
+ "last_sample_timestamp": "2016-06-10T02:53:02.681338",
+ "first_sample_timestamp": "2016-06-10T02:53:02.633042",
+ "project_id": "abe3797914274da482778ca158cbdbf6",
+ "metadata": {
+ "event_type": "image.update",
+ "container_format": "ami",
+ "min_ram": "0",
+ "updated_at": "2016-06-10T02:53:02Z",
+ "owner": "abe3797914274da482778ca158cbdbf6",
+ "deleted_at": "None",
+ "id": "02748368-2b4a-4b70-ac13-b6c5fd8ed415",
+ "size": "25165824",
+ "disk_format": "ami",
+ "properties.kernel_id": "66e307b0-042d-4993-abf6-7c194944ec09",
+ "status": "active",
+ "tags": "[]",
+ "deleted": "False",
+ "properties.ramdisk_id": "6b9e1c10-3fa7-4daa-a7aa-6cff4734ec0c",
+ "host": "image.localhost",
+ "min_disk": "0",
+ "is_public": "True",
+ "virtual_size": "None",
+ "name": "cirros-0.3.4-x86_64-uec",
+ "checksum": "eb9139e4942121f22bbc2afc0400b2a4",
+ "created_at": "2016-06-10T02:53:02Z",
+ "protected": "False"
+ }
+ },
+ {
+ "user_id": null,
+ "resource_id": "358a1715-e953-46bb-abae-233384dcf1af",
+ "source": "openstack",
+ "last_sample_timestamp": "2016-06-10T03:05:26.022530",
+ "first_sample_timestamp": "2016-06-10T03:05:25.947459",
+ "project_id": "abe3797914274da482778ca158cbdbf6",
+ "metadata": {
+ "status": "active",
+ "virtual_size": "None",
+ "event_type": "image.update",
+ "tags": "[]",
+ "deleted": "False",
+ "checksum": "2b50d24d1996bb871eca2a87d93b6644",
+ "created_at": "2016-06-10T03:05:08Z",
+ "size": "388709888",
+ "disk_format": "qcow2",
+ "updated_at": "2016-06-10T03:05:25Z",
+ "owner": "abe3797914274da482778ca158cbdbf6",
+ "host": "image.localhost",
+ "protected": "False",
+ "min_ram": "0",
+ "container_format": "bare",
+ "min_disk": "0",
+ "is_public": "True",
+ "deleted_at": "None",
+ "id": "358a1715-e953-46bb-abae-233384dcf1af",
+ "name": "manila-service-image-master"
+ }
+ }
]
\ No newline at end of file
diff --git a/core-test/src/main/resources/telemetry/sample.json b/core-test/src/main/resources/telemetry/sample.json
index 6f07e26c9..8ac4720af 100644
--- a/core-test/src/main/resources/telemetry/sample.json
+++ b/core-test/src/main/resources/telemetry/sample.json
@@ -1,31 +1,31 @@
{
- "user_id": null,
- "resource_id": "8fe27948-1f4e-412d-b9f7-64bb5ffd1f53",
- "timestamp": "2016-06-20T21:58:28.205082",
- "meter": "image.size",
- "volume": 25165824,
- "source": "openstack",
- "recorded_at": "2016-06-20T21:58:28.242266",
- "project_id": "ae87747b1501457ea6f79dc98c84e0e8",
- "type": "gauge",
- "id": "1e93a890-3732-11e6-a491-005056ac9b87",
- "unit": "B",
- "metadata": {
- "status": "active",
- "name": "cirros-0.3.4-x86_64-uec",
- "deleted": "False",
- "checksum": "eb9139e4942121f22bbc2afc0400b2a4",
- "created_at": "2016-06-10T17:49:10.000000",
- "disk_format": "ami",
- "updated_at": "2016-06-10T17:49:10.000000",
- "properties.ramdisk_id": "3d1eaa5e-eed9-4d2b-9865-260243bc42d4",
- "properties.kernel_id": "d245ae05-062c-477b-9022-876dda99f45c",
- "protected": "False",
- "container_format": "ami",
- "min_disk": "0",
- "is_public": "True",
- "deleted_at": "None",
- "min_ram": "0",
- "size": "25165824"
- }
- }
\ No newline at end of file
+ "user_id": null,
+ "resource_id": "8fe27948-1f4e-412d-b9f7-64bb5ffd1f53",
+ "timestamp": "2016-06-20T21:58:28.205082",
+ "meter": "image.size",
+ "volume": 25165824,
+ "source": "openstack",
+ "recorded_at": "2016-06-20T21:58:28.242266",
+ "project_id": "ae87747b1501457ea6f79dc98c84e0e8",
+ "type": "gauge",
+ "id": "1e93a890-3732-11e6-a491-005056ac9b87",
+ "unit": "B",
+ "metadata": {
+ "status": "active",
+ "name": "cirros-0.3.4-x86_64-uec",
+ "deleted": "False",
+ "checksum": "eb9139e4942121f22bbc2afc0400b2a4",
+ "created_at": "2016-06-10T17:49:10.000000",
+ "disk_format": "ami",
+ "updated_at": "2016-06-10T17:49:10.000000",
+ "properties.ramdisk_id": "3d1eaa5e-eed9-4d2b-9865-260243bc42d4",
+ "properties.kernel_id": "d245ae05-062c-477b-9022-876dda99f45c",
+ "protected": "False",
+ "container_format": "ami",
+ "min_disk": "0",
+ "is_public": "True",
+ "deleted_at": "None",
+ "min_ram": "0",
+ "size": "25165824"
+ }
+}
\ No newline at end of file
diff --git a/core-test/src/main/resources/trove/datastore.json b/core-test/src/main/resources/trove/datastore.json
index e6a2cfdb0..47a7b0983 100644
--- a/core-test/src/main/resources/trove/datastore.json
+++ b/core-test/src/main/resources/trove/datastore.json
@@ -1,29 +1,28 @@
{
- "datastore":
- {
- "default_version": "15b7d828-49a5-4d05-af65-e974e0aca7eb",
- "id": "648d260d-c346-4145-8a2d-bbd4d78aedf6",
- "links": [
- {
- "href": "https://127.0.0.1:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/datastores/versions/15b7d828-49a5-4d05-af65-e974e0aca7eb",
- "rel": "self"
- }
- ],
- "name": "mongodb",
- "versions": [
- {
- "active": 1,
- "id": "15b7d828-49a5-4d05-af65-e974e0aca7eb",
- "image": "af347500-b62b-46df-8d44-6e40fd2a45c0",
- "links": [
- {
- "href": "https://127.0.0.1:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/datastores/versions/15b7d828-49a5-4d05-af65-e974e0aca7eb",
- "rel": "self"
- }
- ],
- "name": "2.4.9",
- "packages": "mongodb"
- }
- ]
- }
+ "datastore": {
+ "default_version": "15b7d828-49a5-4d05-af65-e974e0aca7eb",
+ "id": "648d260d-c346-4145-8a2d-bbd4d78aedf6",
+ "links": [
+ {
+ "href": "https://127.0.0.1:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/datastores/versions/15b7d828-49a5-4d05-af65-e974e0aca7eb",
+ "rel": "self"
+ }
+ ],
+ "name": "mongodb",
+ "versions": [
+ {
+ "active": 1,
+ "id": "15b7d828-49a5-4d05-af65-e974e0aca7eb",
+ "image": "af347500-b62b-46df-8d44-6e40fd2a45c0",
+ "links": [
+ {
+ "href": "https://127.0.0.1:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/datastores/versions/15b7d828-49a5-4d05-af65-e974e0aca7eb",
+ "rel": "self"
+ }
+ ],
+ "name": "2.4.9",
+ "packages": "mongodb"
+ }
+ ]
+ }
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/trove/datastore_version.json b/core-test/src/main/resources/trove/datastore_version.json
index 98818e84d..a51c22948 100644
--- a/core-test/src/main/resources/trove/datastore_version.json
+++ b/core-test/src/main/resources/trove/datastore_version.json
@@ -1,6 +1,5 @@
{
- "version":
- {
+ "version": {
"active": 1,
"id": "15b7d828-49a5-4d05-af65-e974e0aca7eb",
"image": "af347500-b62b-46df-8d44-6e40fd2a45c0",
diff --git a/core-test/src/main/resources/trove/datastores.json b/core-test/src/main/resources/trove/datastores.json
index 317bcd0aa..61f6dc459 100644
--- a/core-test/src/main/resources/trove/datastores.json
+++ b/core-test/src/main/resources/trove/datastores.json
@@ -5,8 +5,8 @@
"id": "648d260d-c346-4145-8a2d-bbd4d78aedf6",
"links": [
{
- "href": "https://127.0.0.1:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/datastores/versions/15b7d828-49a5-4d05-af65-e974e0aca7eb",
- "rel": "self"
+ "href": "https://127.0.0.1:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/datastores/versions/15b7d828-49a5-4d05-af65-e974e0aca7eb",
+ "rel": "self"
}
],
"name": "mongodb",
diff --git a/core-test/src/main/resources/trove/instance_flavor.json b/core-test/src/main/resources/trove/instance_flavor.json
index 9558a0050..e85d93579 100644
--- a/core-test/src/main/resources/trove/instance_flavor.json
+++ b/core-test/src/main/resources/trove/instance_flavor.json
@@ -1,20 +1,20 @@
{
- "flavor":{
- "name":"m1.tiny",
- "links":[
+ "flavor": {
+ "name": "m1.tiny",
+ "links": [
{
- "href":"https://172.20.75.130:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/flavors/1",
- "rel":"self"
+ "href": "https://172.20.75.130:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/flavors/1",
+ "rel": "self"
},
{
- "href":"https://172.20.75.130:8779/flavors/1",
- "rel":"bookmark"
+ "href": "https://172.20.75.130:8779/flavors/1",
+ "rel": "bookmark"
}
],
- "ram":512,
- "str_id":"1",
- "id":1,
- "disk":50,
+ "ram": 512,
+ "str_id": "1",
+ "id": 1,
+ "disk": 50,
"vcpus": 10
}
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/trove/instance_flavors.json b/core-test/src/main/resources/trove/instance_flavors.json
index df0ffb051..787f4a423 100644
--- a/core-test/src/main/resources/trove/instance_flavors.json
+++ b/core-test/src/main/resources/trove/instance_flavors.json
@@ -1,39 +1,39 @@
{
- "flavors":[
+ "flavors": [
{
- "name":"m1.tiny",
- "links":[
+ "name": "m1.tiny",
+ "links": [
{
- "href":"https://172.20.75.130:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/flavors/1",
- "rel":"self"
+ "href": "https://172.20.75.130:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/flavors/1",
+ "rel": "self"
},
{
- "href":"https://172.20.75.130:8779/flavors/1",
- "rel":"bookmark"
+ "href": "https://172.20.75.130:8779/flavors/1",
+ "rel": "bookmark"
}
],
- "ram":512,
- "str_id":"1",
- "id":1,
- "disk":11,
+ "ram": 512,
+ "str_id": "1",
+ "id": 1,
+ "disk": 11,
"vcpus": 111
},
{
- "name":"test.tiny-3",
- "links":[
+ "name": "test.tiny-3",
+ "links": [
{
- "href":"https://172.20.75.130:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/flavors/10",
- "rel":"self"
+ "href": "https://172.20.75.130:8779/v1.0/d6ac65efd0e14ef3b9c9bc33f8f809fa/flavors/10",
+ "rel": "self"
},
{
- "href":"https://172.20.75.130:8779/flavors/10",
- "rel":"bookmark"
+ "href": "https://172.20.75.130:8779/flavors/10",
+ "rel": "bookmark"
}
],
- "ram":1024,
- "str_id":"2",
- "id":2,
- "disk":22,
+ "ram": 1024,
+ "str_id": "2",
+ "id": 2,
+ "disk": 22,
"vcpus": 222
}
]
diff --git a/core-test/src/main/resources/workflow/action_def.json b/core-test/src/main/resources/workflow/action_def.json
index c4fb5465e..d511ba5d3 100644
--- a/core-test/src/main/resources/workflow/action_def.json
+++ b/core-test/src/main/resources/workflow/action_def.json
@@ -6,7 +6,10 @@
"scope": "private",
"is_system": false,
"created_at": "2017-05-30 10:35:16",
- "tags": ["test", "custom"],
+ "tags": [
+ "test",
+ "custom"
+ ],
"input": "s1, s2",
"definition": "---\nversion: '2.0'\n\nconcat:\n base: std.echo\n base-input:\n output: \"<% $.s1 %>+<% $.s2 %>\"\n input:\n - s1\n - s2\n"
}
diff --git a/core-test/src/main/resources/workflow/action_def_create.json b/core-test/src/main/resources/workflow/action_def_create.json
index 38da6daa0..c41334c78 100644
--- a/core-test/src/main/resources/workflow/action_def_create.json
+++ b/core-test/src/main/resources/workflow/action_def_create.json
@@ -8,7 +8,10 @@
"scope": "private",
"is_system": false,
"created_at": "2017-05-30 10:35:16",
- "tags": ["test", "custom"],
+ "tags": [
+ "test",
+ "custom"
+ ],
"input": "s1, s2",
"definition": "---\nversion: '2.0'\n\nconcat:\n base: std.echo\n base-input:\n output: \"<% $.s1 %>+<% $.s2 %>\"\n input:\n - s1\n - s2\n"
}
diff --git a/core-test/src/main/resources/workflow/action_defs.json b/core-test/src/main/resources/workflow/action_defs.json
index 18369ad54..998ca498c 100644
--- a/core-test/src/main/resources/workflow/action_defs.json
+++ b/core-test/src/main/resources/workflow/action_defs.json
@@ -8,7 +8,10 @@
"scope": "private",
"is_system": false,
"created_at": "2017-05-30 10:35:16",
- "tags": ["test", "custom"],
+ "tags": [
+ "test",
+ "custom"
+ ],
"input": "s1, s2",
"definition": "---\nversion: '2.0'\n\nconcat:\n base: std.echo\n base-input:\n output: \"<% $.s1 %>+<% $.s2 %>\"\n input:\n - s1\n - s2\n"
},
diff --git a/core-test/src/main/resources/workflow/cron_trigger.json b/core-test/src/main/resources/workflow/cron_trigger.json
index cca5a7282..99e385812 100644
--- a/core-test/src/main/resources/workflow/cron_trigger.json
+++ b/core-test/src/main/resources/workflow/cron_trigger.json
@@ -5,7 +5,7 @@
"created_at": "2017-05-30 10:35:16",
"updated_at": "2017-05-30 10:35:16",
"workflow_name": "my_wf",
- "workflow_id" : "91fdedd9-43cd-4820-b017-a2b2fe600ef4",
+ "workflow_id": "91fdedd9-43cd-4820-b017-a2b2fe600ef4",
"workflow_input": {
"param1": "val1",
"param2": "val2"
diff --git a/core-test/src/main/resources/workflow/cron_trigger_create.json b/core-test/src/main/resources/workflow/cron_trigger_create.json
index 4f053dbed..33326110b 100644
--- a/core-test/src/main/resources/workflow/cron_trigger_create.json
+++ b/core-test/src/main/resources/workflow/cron_trigger_create.json
@@ -4,7 +4,7 @@
"scope": "private",
"created_at": "2017-05-30 10:35:16",
"workflow_name": "my_wf",
- "workflow_id" : "91fdedd9-43cd-4820-b017-a2b2fe600ef4",
+ "workflow_id": "91fdedd9-43cd-4820-b017-a2b2fe600ef4",
"workflow_input": {
"param1": "val1",
"param2": "val2"
diff --git a/core-test/src/main/resources/workflow/task_exec.json b/core-test/src/main/resources/workflow/task_exec.json
index 06895a908..242d57dc0 100644
--- a/core-test/src/main/resources/workflow/task_exec.json
+++ b/core-test/src/main/resources/workflow/task_exec.json
@@ -9,8 +9,12 @@
"workflow_execution_id": "79d187f4-b8e5-4288-b2cd-ed27ee31e4b0",
"state": "SUCCESS",
"state_info": null,
- "runtime_context": {"retry_cnt": 1},
- "published": {"my_var": "my_val"},
+ "runtime_context": {
+ "retry_cnt": 1
+ },
+ "published": {
+ "my_var": "my_val"
+ },
"result": "my task result",
"processed": true
}
diff --git a/core-test/src/main/resources/workflow/task_execs.json b/core-test/src/main/resources/workflow/task_execs.json
index d8ea91bd2..d8b8021ae 100644
--- a/core-test/src/main/resources/workflow/task_execs.json
+++ b/core-test/src/main/resources/workflow/task_execs.json
@@ -11,8 +11,12 @@
"workflow_execution_id": "79d187f4-b8e5-4288-b2cd-ed27ee31e4b0",
"state": "SUCCESS",
"state_info": null,
- "runtime_context": {"retry_cnt": 1},
- "published": {"my_var": "my_val"},
+ "runtime_context": {
+ "retry_cnt": 1
+ },
+ "published": {
+ "my_var": "my_val"
+ },
"result": "my task result",
"processed": true
},
@@ -27,8 +31,12 @@
"workflow_execution_id": "79d187f4-b8e5-4288-b2cd-ed27ee31e4b0",
"state": "ERROR",
"state_info": "Some error info",
- "runtime_context": {"retry_cnt": 1},
- "published": {"my_var": "my_val"},
+ "runtime_context": {
+ "retry_cnt": 1
+ },
+ "published": {
+ "my_var": "my_val"
+ },
"result": "my task result",
"processed": false
}
diff --git a/core-test/src/main/resources/workflow/wb_def.json b/core-test/src/main/resources/workflow/wb_def.json
index 99712d120..4abf35cca 100644
--- a/core-test/src/main/resources/workflow/wb_def.json
+++ b/core-test/src/main/resources/workflow/wb_def.json
@@ -4,6 +4,9 @@
"created_at": "2017-05-30 08:40:29",
"project_id": "",
"scope": "private",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"definition": "---\nversion: '2.0'\n\nname: my_wb\n\nworkflows:\n with_items_40:\n tasks:\n task1:\n with-items: i in <% range(0, 40) %>\n action: std.echo output=<% $.i %>\n"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/workflow/wb_def_create.json b/core-test/src/main/resources/workflow/wb_def_create.json
index 99712d120..4abf35cca 100644
--- a/core-test/src/main/resources/workflow/wb_def_create.json
+++ b/core-test/src/main/resources/workflow/wb_def_create.json
@@ -4,6 +4,9 @@
"created_at": "2017-05-30 08:40:29",
"project_id": "",
"scope": "private",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"definition": "---\nversion: '2.0'\n\nname: my_wb\n\nworkflows:\n with_items_40:\n tasks:\n task1:\n with-items: i in <% range(0, 40) %>\n action: std.echo output=<% $.i %>\n"
}
\ No newline at end of file
diff --git a/core-test/src/main/resources/workflow/wb_defs.json b/core-test/src/main/resources/workflow/wb_defs.json
index 95336d421..404e337ff 100644
--- a/core-test/src/main/resources/workflow/wb_defs.json
+++ b/core-test/src/main/resources/workflow/wb_defs.json
@@ -6,7 +6,10 @@
"created_at": "2017-05-30 08:40:29",
"project_id": "",
"scope": "private",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"definition": "---\nversion: '2.0'\n\nparallel_join_2:\n tasks:\n join_task:\n join: all\n task_1:\n on-success: join_task\n task_2:\n on-success: join_task\n"
},
{
diff --git a/core-test/src/main/resources/workflow/wf_def.json b/core-test/src/main/resources/workflow/wf_def.json
index 43ef2e6b7..b26c27ad4 100644
--- a/core-test/src/main/resources/workflow/wf_def.json
+++ b/core-test/src/main/resources/workflow/wf_def.json
@@ -1,7 +1,10 @@
{
"id": "0169affc-e6a1-4013-a59e-c89dfd5523f2",
"name": "parallel_join_2",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"project_id": "",
"scope": "private",
"created_at": "2016-08-17 10:33:24",
diff --git a/core-test/src/main/resources/workflow/wf_def_create.json b/core-test/src/main/resources/workflow/wf_def_create.json
index 7b9eea0ce..b046cc9e5 100644
--- a/core-test/src/main/resources/workflow/wf_def_create.json
+++ b/core-test/src/main/resources/workflow/wf_def_create.json
@@ -3,7 +3,10 @@
{
"id": "68d49c72-1297-44d2-a686-0296a45241cb",
"name": "with_items_40",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"project_id": "",
"scope": "private",
"created_at": "2017-05-02 09:30:21",
diff --git a/core-test/src/main/resources/workflow/wf_defs.json b/core-test/src/main/resources/workflow/wf_defs.json
index ff7febe99..1a55af568 100644
--- a/core-test/src/main/resources/workflow/wf_defs.json
+++ b/core-test/src/main/resources/workflow/wf_defs.json
@@ -3,7 +3,10 @@
{
"id": "0169affc-e6a1-4013-a59e-c89dfd5523f2",
"name": "parallel_join_2",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"project_id": "",
"scope": "private",
"created_at": "2016-08-17 10:33:24",
diff --git a/core-test/src/main/resources/workflow/wf_exec_create.json b/core-test/src/main/resources/workflow/wf_exec_create.json
index 5e6fb9b8e..d589dbc7b 100644
--- a/core-test/src/main/resources/workflow/wf_exec_create.json
+++ b/core-test/src/main/resources/workflow/wf_exec_create.json
@@ -4,7 +4,9 @@
"created_at": "2016-08-17 10:34:00",
"workflow_id": "0169affc-e6a1-4013-a59e-c89dfd5523f2",
"workflow_name": "parallel_join_2",
- "params": {"env": "my_env"},
+ "params": {
+ "env": "my_env"
+ },
"input": {},
"state": "RUNNING",
"state_info": null,
diff --git a/core-test/src/main/resources/workflow/wf_execs.json b/core-test/src/main/resources/workflow/wf_execs.json
index f90dd41a2..25365e757 100644
--- a/core-test/src/main/resources/workflow/wf_execs.json
+++ b/core-test/src/main/resources/workflow/wf_execs.json
@@ -18,7 +18,10 @@
"description": "",
"created_at": "2016-08-17 10:35:05",
"updated_at": "2016-08-17 10:35:05",
- "tags": ["test", "private"],
+ "tags": [
+ "test",
+ "private"
+ ],
"workflow_id": "0169affc-e6a1-4013-a59e-c89dfd5523f2",
"workflow_name": "parallel_join_2",
"params": {},
diff --git a/core/pom.xml b/core/pom.xml
index 5f1853dd0..7101e18c9 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -1,208 +1,212 @@
-
-
- org.pacesys
- openstack4j-parent
- 3.2.1-SNAPSHOT
-
- 4.0.0
- openstack4j-core
- OpenStack4j Core
- OpenStack Java API
- http://github.com/ContainX/openstack4j/
- jar
+
+
+ org.pacesys
+ openstack4j-parent
+ 4.0.0-SNAPSHOT
+
+ 4.0.0
+ openstack4j-core
+ OpenStack4j Core
+ OpenStack Java API
+ http://github.com/ContainX/openstack4j/
+ jar
-
- openstack4j-core
-
-
- org.apache.maven.plugins
- maven-shade-plugin
- 1.3.3
-
-
- package
-
-