diff options
Diffstat (limited to 'nova-client/src/test')
12 files changed, 576 insertions, 0 deletions
diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java new file mode 100644 index 0000000..2b05b5d --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/AggregatesExtensionTest.java @@ -0,0 +1,64 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class AggregatesExtensionTest { + + AggregatesExtension aggregatesExtension = new AggregatesExtension(null); + + @Test + public void list() throws Exception { + aggregatesExtension.list(); + } + + @Test + public void showAggregate() throws Exception { + aggregatesExtension.showAggregate("test"); + } + + @Test + public void updateAggregateMetadata() throws Exception { + aggregatesExtension.updateAggregateMetadata("test", "test", "test"); + } + + @Test + public void createAggregate() throws Exception { + aggregatesExtension.createAggregate("test", "test"); + } + + @Test + public void deleteAggregate() throws Exception { + aggregatesExtension.deleteAggregate("test"); + } + + @Test + public void addHost() throws Exception { + aggregatesExtension.addHost("test", "test"); + } + + @Test + public void removeHost() throws Exception { + aggregatesExtension.removeHost("test", "test"); + } + + @Test + public void setMetadata() throws Exception { + aggregatesExtension.setMetadata("test", "test", "test"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CloudpipesExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CloudpipesExtensionTest.java new file mode 100644 index 0000000..c9e7016 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CloudpipesExtensionTest.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import com.woorea.openstack.nova.model.Cloudpipe; +import org.junit.Test; + +public class CloudpipesExtensionTest { + + CloudpipesExtension cloudpipesExtension = new CloudpipesExtension(null); + + @Test + public void list() throws Exception { + cloudpipesExtension.list(); + } + + @Test + public void create() throws Exception { + cloudpipesExtension.create(new Cloudpipe()); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java new file mode 100644 index 0000000..80ec2b9 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/CredentialsExtensionTest.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class CredentialsExtensionTest { + + CredentialsExtension credentialsExtension = new CredentialsExtension(null); + + @Test + public void createCertificate() throws Exception { + credentialsExtension.createCertificate("id"); + } + + @Test + public void showCertificate() throws Exception { + credentialsExtension.showCertificate("id"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpDnsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpDnsExtensionTest.java new file mode 100644 index 0000000..a697951 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpDnsExtensionTest.java @@ -0,0 +1,50 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import com.woorea.openstack.nova.model.FloatingIpDomain; +import org.junit.Test; + +public class FloatingIpDnsExtensionTest { + + FloatingIpDnsExtension floatingIpDnsExtension = new FloatingIpDnsExtension(null); + + @Test + public void listFloatingIpDomains() throws Exception { + floatingIpDnsExtension.listFloatingIpDomains(); + } + + @Test + public void create() throws Exception { + floatingIpDnsExtension.create(new FloatingIpDomain()); + } + + @Test + public void show() throws Exception { + floatingIpDnsExtension.show("test"); + } + + @Test + public void update() throws Exception { + floatingIpDnsExtension.update(new FloatingIpDomain()); + } + + @Test + public void delete() throws Exception { + floatingIpDnsExtension.delete("id"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpPoolsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpPoolsExtensionTest.java new file mode 100644 index 0000000..40a42ea --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpPoolsExtensionTest.java @@ -0,0 +1,29 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class FloatingIpPoolsExtensionTest { + + FloatingIpPoolsExtension floatingIpPoolsExtension = new FloatingIpPoolsExtension(null); + + @Test + public void list() throws Exception { + floatingIpPoolsExtension.list(); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpsExtensionTest.java new file mode 100644 index 0000000..4d8baae --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/FloatingIpsExtensionTest.java @@ -0,0 +1,39 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class FloatingIpsExtensionTest { + + FloatingIpsExtension floatingIpPoolsExtension = new FloatingIpsExtension(null); + + @Test + public void list() throws Exception { + floatingIpPoolsExtension.list(); + } + + @Test + public void allocate() throws Exception { + floatingIpPoolsExtension.allocate("test"); + } + + @Test + public void deallocate() throws Exception { + floatingIpPoolsExtension.deallocate("test"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/HostsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/HostsExtensionTest.java new file mode 100644 index 0000000..4ff707f --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/HostsExtensionTest.java @@ -0,0 +1,34 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class HostsExtensionTest { + + HostsExtension hostsExtension = new HostsExtension(null); + + @Test + public void list() throws Exception { + hostsExtension.list(); + } + + @Test + public void show() throws Exception { + hostsExtension.show("test"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java new file mode 100644 index 0000000..976e5d2 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/KeyPairsExtensionTest.java @@ -0,0 +1,44 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class KeyPairsExtensionTest { + + KeyPairsExtension keyPairsExtension = new KeyPairsExtension(null); + + @Test + public void list() throws Exception { + keyPairsExtension.list(); + } + + @Test + public void create() throws Exception { + keyPairsExtension.create("test"); + } + + @Test + public void create1() throws Exception { + keyPairsExtension.create("test"); + } + + @Test + public void delete() throws Exception { + keyPairsExtension.delete("test"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/NetworksExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/NetworksExtensionTest.java new file mode 100644 index 0000000..67b542b --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/NetworksExtensionTest.java @@ -0,0 +1,44 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class NetworksExtensionTest { + + NetworksExtension networksExtension = new NetworksExtension(null); + + @Test + public void list() throws Exception { + networksExtension.list(); + } + + @Test + public void show() throws Exception { + networksExtension.show("test"); + } + + @Test + public void delete() throws Exception { + networksExtension.delete("test"); + } + + @Test + public void disassociate() throws Exception { + networksExtension.disassociate("test"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/SecurityGroupsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/SecurityGroupsExtensionTest.java new file mode 100644 index 0000000..fdca349 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/SecurityGroupsExtensionTest.java @@ -0,0 +1,97 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import org.junit.Test; + +public class SecurityGroupsExtensionTest { + + SecurityGroupsExtension securityGroupsExtension = new SecurityGroupsExtension(null); + + @Test + public void listSecurityGroups() throws Exception { + securityGroupsExtension.listSecurityGroups(); + } + + @Test + public void createSecurityGroup() throws Exception { + securityGroupsExtension.createSecurityGroup("test"); + } + + @Test + public void createSecurityGroup1() throws Exception { + securityGroupsExtension.createSecurityGroup("test", "desc"); + } + + @Test + public void showSecurityGroup() throws Exception { + securityGroupsExtension.showSecurityGroup("test"); + } + + @Test + public void showSecurityGroup1() throws Exception { + securityGroupsExtension.showSecurityGroup(1); + } + + @Test + public void deleteSecurityGroup() throws Exception { + securityGroupsExtension.deleteSecurityGroup("test"); + } + + @Test + public void deleteSecurityGroup1() throws Exception { + securityGroupsExtension.deleteSecurityGroup(1); + } + + @Test + public void createSecurityGroupRule() throws Exception { + securityGroupsExtension.createSecurityGroupRule("test", "test", 90, 80, "test"); + } + + @Test + public void createSecurityGroupRule1() throws Exception { + securityGroupsExtension.createSecurityGroupRule("test", "test", "test", 79, 80); + } + + @Test + public void createSecurityGroupRule2() throws Exception { + securityGroupsExtension.createSecurityGroupRule(12, + "test", + 1, + 1, + "test"); + } + + @Test + public void createSecurityGroupRule3() throws Exception { + securityGroupsExtension.createSecurityGroupRule(1, + "test", + 1, + 1, + 1); + } + + @Test + public void deleteSecurityGroupRule() throws Exception { + securityGroupsExtension.deleteSecurityGroupRule("test"); + } + + @Test + public void deleteSecurityGroupRule1() throws Exception { + securityGroupsExtension.deleteSecurityGroup(1); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/SnapshotsExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/SnapshotsExtensionTest.java new file mode 100644 index 0000000..9b408e9 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/SnapshotsExtensionTest.java @@ -0,0 +1,50 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import com.woorea.openstack.nova.model.SnapshotForCreate; +import org.junit.Test; + +public class SnapshotsExtensionTest { + + SnapshotsExtension snapshotsExtension = new SnapshotsExtension(null); + + @Test + public void list() throws Exception { + snapshotsExtension.list(true); + } + + @Test + public void create() throws Exception { + snapshotsExtension.create(new SnapshotForCreate()); + } + + @Test + public void show() throws Exception { + snapshotsExtension.show("test"); + } + + @Test + public void showMetadata() throws Exception { + snapshotsExtension.showMetadata("test"); + } + + @Test + public void delete() throws Exception { + snapshotsExtension.delete("test"); + } + +}
\ No newline at end of file diff --git a/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/VolumesExtensionTest.java b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/VolumesExtensionTest.java new file mode 100644 index 0000000..ee0fe62 --- /dev/null +++ b/nova-client/src/test/java/com/woorea/openstack/nova/api/extensions/VolumesExtensionTest.java @@ -0,0 +1,56 @@ +/*- + * ============LICENSE_START======================================================= + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package com.woorea.openstack.nova.api.extensions; + +import com.woorea.openstack.nova.model.VolumeForCreate; +import com.woorea.openstack.nova.model.VolumeForImageCreate; +import org.junit.Test; + +public class VolumesExtensionTest { + + VolumesExtension volumesExtension = new VolumesExtension(null); + + @Test + public void list() throws Exception { + volumesExtension.list(true); + } + + @Test + public void create() throws Exception { + volumesExtension.create(new VolumeForCreate()); + } + + @Test + public void uploadToImage() throws Exception { + volumesExtension.uploadToImage(new VolumeForImageCreate()); + } + + @Test + public void show() throws Exception { + volumesExtension.show("test"); + } + + @Test + public void showMetadata() throws Exception { + volumesExtension.showMetadata("test"); + } + + @Test + public void delete() throws Exception { + volumesExtension.delete("test"); + } + +}
\ No newline at end of file |