From f3c5bbf4dac8409ab90e2fd5d8edb16b9b7de75d Mon Sep 17 00:00:00 2001 From: danikov Date: Tue, 10 Apr 2012 17:10:56 +0100 Subject: [PATCH] carrenza-vcloud-director provider --- labs/carrenza-element-vcloud/pom.xml | 145 ++++++++++++++++ .../CarrenzaVCloudDirectorContextBuilder.java | 51 ++++++ ...rrenzaVCloudDirectorPropertiesBuilder.java | 47 ++++++ ...arrenzaVCloudDirectorProviderMetadata.java | 66 ++++++++ ...udDirectorComputeServiceContextModule.java | 34 ++++ ...arrenzaVCloudDirectorRestClientModule.java | 34 ++++ .../org.jclouds.providers.ProviderMetadata | 1 + ...udDirectorNonClientOperationsLiveTest.java | 35 ++++ .../CarrenzaVCloudDirectorProviderTest.java | 35 ++++ ...aVCloudDirectorComputeServiceLiveTest.java | 35 ++++ ...VCloudDirectorTemplateBuilderLiveTest.java | 77 +++++++++ ...zaVCloudDirectorCatalogClientLiveTest.java | 35 ++++ ...enzaVCloudDirectorMediaClientLiveTest.java | 35 ++++ ...zaVCloudDirectorNetworkClientLiveTest.java | 35 ++++ ...rrenzaVCloudDirectorOrgClientLiveTest.java | 35 ++++ ...enzaVCloudDirectorQueryClientLiveTest.java | 35 ++++ ...renzaVCloudDirectorTaskClientLiveTest.java | 35 ++++ ...nzaVCloudDirectorUploadClientLiveTest.java | 35 ++++ ...renzaVCloudDirectorVAppClientLiveTest.java | 35 ++++ ...oudDirectorVAppTemplateClientLiveTest.java | 35 ++++ ...rrenzaVCloudDirectorVdcClientLiveTest.java | 35 ++++ ...oudDirectorAdminCatalogClientLiveTest.java | 35 ++++ ...oudDirectorAdminNetworkClientLiveTest.java | 35 ++++ ...aVCloudDirectorAdminOrgClientLiveTest.java | 35 ++++ ...CloudDirectorAdminQueryClientLiveTest.java | 35 ++++ ...aVCloudDirectorAdminVdcClientLiveTest.java | 35 ++++ ...enzaVCloudDirectorGroupClientLiveTest.java | 35 ++++ ...renzaVCloudDirectorUserClientLiveTest.java | 35 ++++ ...zaVCloudDirectorSessionClientLiveTest.java | 35 ++++ .../src/test/resources/log4j.xml | 157 ++++++++++++++++++ 30 files changed, 1347 insertions(+) create mode 100644 labs/carrenza-element-vcloud/pom.xml create mode 100644 labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorContextBuilder.java create mode 100644 labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorPropertiesBuilder.java create mode 100644 labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderMetadata.java create mode 100644 labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorComputeServiceContextModule.java create mode 100644 labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorRestClientModule.java create mode 100644 labs/carrenza-element-vcloud/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorNonClientOperationsLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorComputeServiceLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorTemplateBuilderLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorCatalogClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorMediaClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorNetworkClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorOrgClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorQueryClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorTaskClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorUploadClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppTemplateClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVdcClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminCatalogClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminNetworkClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminOrgClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminQueryClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminVdcClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorGroupClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorUserClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/login/CarrenzaVCloudDirectorSessionClientLiveTest.java create mode 100644 labs/carrenza-element-vcloud/src/test/resources/log4j.xml diff --git a/labs/carrenza-element-vcloud/pom.xml b/labs/carrenza-element-vcloud/pom.xml new file mode 100644 index 0000000000..fa7a2c811c --- /dev/null +++ b/labs/carrenza-element-vcloud/pom.xml @@ -0,0 +1,145 @@ + + + + 4.0.0 + + org.jclouds + jclouds-project + 1.5.0-SNAPSHOT + ../../project/pom.xml + + org.jclouds.labs + carrenza-vcloud-director + jclouds Carrenza vCloud Director provider + vCloud implementation targeted to Carrenza + bundle + + + https://myvdc.carrenza.net/api + 1.5 + FIXME_VERSION + FIXME_IDENTITY + FIXME_CREDENTIAL + + + + + + + + org.jclouds.labs + vcloud-director + ${project.version} + + + org.jclouds.labs + vcloud-director + ${project.version} + test-jar + test + + + org.jclouds + jclouds-core + ${project.version} + test-jar + test + + + org.jclouds + jclouds-compute + ${project.version} + test-jar + test + + + org.jclouds.driver + jclouds-log4j + ${project.version} + test + + + org.jclouds.driver + jclouds-sshj + ${project.version} + test + + + + + + live + + + + org.apache.maven.plugins + maven-surefire-plugin + + + integration + integration-test + + test + + + + ${test.carrenza-vcloud.endpoint} + ${test.carrenza-vcloud.api-version} + ${test.carrenza-vcloud.build-version} + ${test.carrenza-vcloud.identity} + ${test.carrenza-vcloud.credential} + ${test.carrenza-vcloud.image-id} + ${test.carrenza-vcloud.image.login-user} + ${test.carrenza-vcloud.image.authenticate-sudo} + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + + + ${project.artifactId} + org.jclouds.carrenza.vcloud*;version="${project.version}" + + org.jclouds.compute.internal;version="${project.version}", + org.jclouds.rest.internal;version="${project.version}", + org.jclouds*;version="${project.version}", + * + + + + + + + + + diff --git a/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorContextBuilder.java b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorContextBuilder.java new file mode 100644 index 0000000000..39a3fd86ce --- /dev/null +++ b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorContextBuilder.java @@ -0,0 +1,51 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director; + +import java.util.List; +import java.util.Properties; + +import org.jclouds.carrenza.vcloud.director.config.CarrenzaVCloudDirectorComputeServiceContextModule; +import org.jclouds.carrenza.vcloud.director.config.CarrenzaVCloudDirectorRestClientModule; +import org.jclouds.vcloud.director.v1_5.VCloudDirectorContextBuilder; + +import com.google.inject.Module; + +/** + * {@inheritDoc} + * + * @author danikov + */ +public class CarrenzaVCloudDirectorContextBuilder extends VCloudDirectorContextBuilder { + + public CarrenzaVCloudDirectorContextBuilder(Properties props) { + super(props); + } + + @Override + protected void addContextModule(List modules) { +// modules.add(new CarrenzaVCloudDirectorComputeServiceContextModule()); FIXME: enable when compute service done + } + + @Override + protected void addClientModule(List modules) { + modules.add(new CarrenzaVCloudDirectorRestClientModule()); + } + +} diff --git a/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorPropertiesBuilder.java b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorPropertiesBuilder.java new file mode 100644 index 0000000000..80a81e275a --- /dev/null +++ b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorPropertiesBuilder.java @@ -0,0 +1,47 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director; + +import static org.jclouds.Constants.PROPERTY_BUILD_VERSION; +import static org.jclouds.Constants.PROPERTY_ENDPOINT; +import static org.jclouds.Constants.PROPERTY_ISO3166_CODES; + +import java.util.Properties; + +import org.jclouds.vcloud.director.v1_5.VCloudDirectorPropertiesBuilder; + +/** + * + * @author Adrian Cole + */ +public class CarrenzaVCloudDirectorPropertiesBuilder extends VCloudDirectorPropertiesBuilder { + @Override + public Properties defaultProperties() { + Properties properties = super.defaultProperties(); + properties.setProperty(PROPERTY_ISO3166_CODES, "GB-LND"); + properties.setProperty(PROPERTY_ENDPOINT, "https://myvdc.carrenza.net/api"); + properties.setProperty(PROPERTY_BUILD_VERSION, "???"); //FIXME +// properties.setProperty(PROPERTY_VCLOUD_DEFAULT_NETWORK, "orgNet-.*-External"); FIXME: needed? + return properties; + } + + public CarrenzaVCloudDirectorPropertiesBuilder(Properties properties) { + super(properties); + } +} diff --git a/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderMetadata.java b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderMetadata.java new file mode 100644 index 0000000000..0d28b88cfb --- /dev/null +++ b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderMetadata.java @@ -0,0 +1,66 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director; + +import java.net.URI; + +import org.jclouds.providers.BaseProviderMetadata; +import org.jclouds.vcloud.director.v1_5.VCloudDirectorApiMetadata; + +/** + * Implementation of {@link org.jclouds.types.ProviderMetadata} for Carrenza vCloud Director + * + * @author dankov + */ +public class CarrenzaVCloudDirectorProviderMetadata extends BaseProviderMetadata { + + public CarrenzaVCloudDirectorProviderMetadata() { + this(builder() + .id("carrenza-vcloud-director") + .name("Carrenza vCloud Director") + .api(new VCloudDirectorApiMetadata()) + .homepage(URI.create("http://carrenza.com/")) + .console(URI.create("https://myvdc.carrenza.net/cloud/org/YOUR_ORG_HERE")) + .iso3166Codes("GB-LND")); + } + + // below are so that we can reuse builders, toString, hashCode, etc. + // we have to set concrete classes here, as our base class cannot be + // concrete due to serviceLoader + protected CarrenzaVCloudDirectorProviderMetadata(ConcreteBuilder builder) { + super(builder); + } + + private static class ConcreteBuilder extends Builder { + + @Override + public CarrenzaVCloudDirectorProviderMetadata build() { + return new CarrenzaVCloudDirectorProviderMetadata(this); + } + } + + public static ConcreteBuilder builder() { + return new ConcreteBuilder(); + } + + public ConcreteBuilder toBuilder() { + return builder().fromProviderMetadata(this); + } + +} diff --git a/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorComputeServiceContextModule.java b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorComputeServiceContextModule.java new file mode 100644 index 0000000000..9f1e72b0a7 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorComputeServiceContextModule.java @@ -0,0 +1,34 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.config; + + +/** + * per docs, we are to use pool mode. + * + * @author danikov + */ +public class CarrenzaVCloudDirectorComputeServiceContextModule { // FIXME: enable when compute serivce done +//extends VCloudDirectorComputeServiceContextModule { +// +// @Override +// protected TemplateOptions provideTemplateOptions(Injector injector, TemplateOptions options) { +// return options.as(VCloudDirectorTemplateOptions.class).ipAddressAllocationMode(IpAddressAllocationMode.POOL); +// } +} diff --git a/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorRestClientModule.java b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorRestClientModule.java new file mode 100644 index 0000000000..52d3647458 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/main/java/org/jclouds/carrenza/vcloud/director/config/CarrenzaVCloudDirectorRestClientModule.java @@ -0,0 +1,34 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.config; + +import org.jclouds.http.RequiresHttp; +import org.jclouds.rest.ConfiguresRestClient; +import org.jclouds.vcloud.director.v1_5.config.VCloudDirectorRestClientModule; + +/** + * Configures the VCloud authentication service connection, including logging and http transport. + * + * @author danikov + */ +@RequiresHttp +@ConfiguresRestClient +public class CarrenzaVCloudDirectorRestClientModule extends VCloudDirectorRestClientModule { + +} diff --git a/labs/carrenza-element-vcloud/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata b/labs/carrenza-element-vcloud/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata new file mode 100644 index 0000000000..8577da069b --- /dev/null +++ b/labs/carrenza-element-vcloud/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata @@ -0,0 +1 @@ +org.jclouds.carrenza.element.vcloud.CarrenzaElementVCloudProviderMetadata diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorNonClientOperationsLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorNonClientOperationsLiveTest.java new file mode 100644 index 0000000000..d9468075ba --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorNonClientOperationsLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director; + +import org.jclouds.vcloud.director.v1_5.NonClientOperationsLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorNonClientOperationsLiveTest") +public class CarrenzaVCloudDirectorNonClientOperationsLiveTest extends NonClientOperationsLiveTest { + + public CarrenzaVCloudDirectorNonClientOperationsLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderTest.java new file mode 100644 index 0000000000..d5774cb7e6 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/CarrenzaVCloudDirectorProviderTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director; + +import org.jclouds.providers.BaseProviderMetadataTest; +import org.jclouds.vcloud.director.v1_5.VCloudDirectorApiMetadata; +import org.testng.annotations.Test; + +/** + * + * @author danikov + */ +@Test(groups = "unit", testName = "CarrenzaVCloudDirectorProviderTest") +public class CarrenzaVCloudDirectorProviderTest extends BaseProviderMetadataTest { + + public CarrenzaVCloudDirectorProviderTest() { + super(new CarrenzaVCloudDirectorProviderMetadata(), new VCloudDirectorApiMetadata()); + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorComputeServiceLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorComputeServiceLiveTest.java new file mode 100644 index 0000000000..8a683297ec --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorComputeServiceLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.compute; + +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorComputeServiceLiveTest") +public class CarrenzaVCloudDirectorComputeServiceLiveTest { // FIXME: enable when compute service done +// extends VCloudDirectorComputeServiceLiveTest { +// +// public CarrenzaVCloudDirectorComputeServiceLiveTest() { +// provider = "carrenza-vcloud-director"; +// } +} \ No newline at end of file diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorTemplateBuilderLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorTemplateBuilderLiveTest.java new file mode 100644 index 0000000000..5295f9f3ea --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/compute/CarrenzaVCloudDirectorTemplateBuilderLiveTest.java @@ -0,0 +1,77 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.compute; + +import static org.jclouds.compute.util.ComputeServiceUtils.getCores; +import static org.testng.Assert.assertEquals; + +import java.io.IOException; +import java.util.Set; + +import org.jclouds.compute.BaseTemplateBuilderLiveTest; +import org.jclouds.compute.domain.OsFamily; +import org.jclouds.compute.domain.OsFamilyVersion64Bit; +import org.jclouds.compute.domain.Template; +import org.testng.annotations.Test; + +import com.google.common.base.Predicate; +import com.google.common.collect.ImmutableSet; + +/** + * + * @author danikov + */ +@Test(groups = "live", testName = "CarrenzaVCloudDirectorTemplateBuilderLiveTest") +public class CarrenzaVCloudDirectorTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTest { + + public CarrenzaVCloudDirectorTemplateBuilderLiveTest() { + provider = "carrenza-vcloud-director"; + } + + @Override + protected Predicate defineUnsupportedOperatingSystems() { + return new Predicate() { + + @Override + public boolean apply(OsFamilyVersion64Bit input) { + switch (input.family) { + case UBUNTU: + return !input.version.equals("") || !input.is64Bit; + default: + return true; + } + } + + }; + } + + @Override + public void testDefaultTemplateBuilder() throws IOException { + Template defaultTemplate = context.getComputeService().templateBuilder().build(); + assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), ""); + assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true); + assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU); + assertEquals(getCores(defaultTemplate.getHardware()), 1.0d); + } + + @Override + protected Set getIso3166Codes() { + return ImmutableSet. of("GB-LND"); + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorCatalogClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorCatalogClientLiveTest.java new file mode 100644 index 0000000000..a31297f65f --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorCatalogClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.CatalogClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorCatalogClientLiveTest") +public class CarrenzaVCloudDirectorCatalogClientLiveTest extends CatalogClientLiveTest { + + public CarrenzaVCloudDirectorCatalogClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorMediaClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorMediaClientLiveTest.java new file mode 100644 index 0000000000..6c50cfece5 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorMediaClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.MediaClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorMediaClientLiveTest") +public class CarrenzaVCloudDirectorMediaClientLiveTest extends MediaClientLiveTest { + + public CarrenzaVCloudDirectorMediaClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorNetworkClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorNetworkClientLiveTest.java new file mode 100644 index 0000000000..bd2fd95e09 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorNetworkClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.NetworkClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorNetworkClientLiveTest") +public class CarrenzaVCloudDirectorNetworkClientLiveTest extends NetworkClientLiveTest { + + public CarrenzaVCloudDirectorNetworkClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorOrgClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorOrgClientLiveTest.java new file mode 100644 index 0000000000..0257fc879d --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorOrgClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.OrgClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorOrgClientLiveTest") +public class CarrenzaVCloudDirectorOrgClientLiveTest extends OrgClientLiveTest { + + public CarrenzaVCloudDirectorOrgClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorQueryClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorQueryClientLiveTest.java new file mode 100644 index 0000000000..a941813061 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorQueryClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.QueryClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorQueryClientLiveTest") +public class CarrenzaVCloudDirectorQueryClientLiveTest extends QueryClientLiveTest { + + public CarrenzaVCloudDirectorQueryClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorTaskClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorTaskClientLiveTest.java new file mode 100644 index 0000000000..2f7ea669f7 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorTaskClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.TaskClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author Adrian Cole + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorTaskClientLiveTest") +public class CarrenzaVCloudDirectorTaskClientLiveTest extends TaskClientLiveTest { + + public CarrenzaVCloudDirectorTaskClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorUploadClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorUploadClientLiveTest.java new file mode 100644 index 0000000000..9370962395 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorUploadClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.UploadClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorUploadClientLiveTest") +public class CarrenzaVCloudDirectorUploadClientLiveTest extends UploadClientLiveTest { + + public CarrenzaVCloudDirectorUploadClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppClientLiveTest.java new file mode 100644 index 0000000000..0d02238828 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.VAppClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorVAppClientLiveTest") +public class CarrenzaVCloudDirectorVAppClientLiveTest extends VAppClientLiveTest { + + public CarrenzaVCloudDirectorVAppClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppTemplateClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppTemplateClientLiveTest.java new file mode 100644 index 0000000000..cac29c511f --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVAppTemplateClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.VAppTemplateClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author Adrian Cole + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorVAppTemplateClientLiveTest") +public class CarrenzaVCloudDirectorVAppTemplateClientLiveTest extends VAppTemplateClientLiveTest { + + public CarrenzaVCloudDirectorVAppTemplateClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVdcClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVdcClientLiveTest.java new file mode 100644 index 0000000000..d50ab80dfe --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/CarrenzaVCloudDirectorVdcClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features; + +import org.jclouds.vcloud.director.v1_5.features.VdcClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorVDCClientLiveTest") +public class CarrenzaVCloudDirectorVdcClientLiveTest extends VdcClientLiveTest { + + public CarrenzaVCloudDirectorVdcClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminCatalogClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminCatalogClientLiveTest.java new file mode 100644 index 0000000000..01c8f151f6 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminCatalogClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.AdminCatalogClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorAdminCatalogClientLiveTest") +public class CarrenzaVCloudDirectorAdminCatalogClientLiveTest extends AdminCatalogClientLiveTest { + + public CarrenzaVCloudDirectorAdminCatalogClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminNetworkClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminNetworkClientLiveTest.java new file mode 100644 index 0000000000..681af62394 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminNetworkClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.AdminNetworkClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorAdminNetworkClientLiveTest") +public class CarrenzaVCloudDirectorAdminNetworkClientLiveTest extends AdminNetworkClientLiveTest { + + public CarrenzaVCloudDirectorAdminNetworkClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminOrgClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminOrgClientLiveTest.java new file mode 100644 index 0000000000..5381337629 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminOrgClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.AdminOrgClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorOrgClientLiveTest") +public class CarrenzaVCloudDirectorAdminOrgClientLiveTest extends AdminOrgClientLiveTest { + + public CarrenzaVCloudDirectorAdminOrgClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminQueryClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminQueryClientLiveTest.java new file mode 100644 index 0000000000..95d47884b8 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminQueryClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.AdminQueryClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorAdminQueryClientLiveTest") +public class CarrenzaVCloudDirectorAdminQueryClientLiveTest extends AdminQueryClientLiveTest { + + public CarrenzaVCloudDirectorAdminQueryClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminVdcClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminVdcClientLiveTest.java new file mode 100644 index 0000000000..73f2b4da45 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorAdminVdcClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.AdminVdcClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorAdminVdcClientLiveTest") +public class CarrenzaVCloudDirectorAdminVdcClientLiveTest extends AdminVdcClientLiveTest { + + public CarrenzaVCloudDirectorAdminVdcClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorGroupClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorGroupClientLiveTest.java new file mode 100644 index 0000000000..14dd740331 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorGroupClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.GroupClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorGroupClientLiveTest") +public class CarrenzaVCloudDirectorGroupClientLiveTest extends GroupClientLiveTest { + + public CarrenzaVCloudDirectorGroupClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorUserClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorUserClientLiveTest.java new file mode 100644 index 0000000000..afbde8565d --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/features/admin/CarrenzaVCloudDirectorUserClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.features.admin; + +import org.jclouds.vcloud.director.v1_5.features.admin.UserClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorUserClientLiveTest") +public class CarrenzaVCloudDirectorUserClientLiveTest extends UserClientLiveTest { + + public CarrenzaVCloudDirectorUserClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/login/CarrenzaVCloudDirectorSessionClientLiveTest.java b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/login/CarrenzaVCloudDirectorSessionClientLiveTest.java new file mode 100644 index 0000000000..24685c0d51 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/java/org/jclouds/carrenza/vcloud/director/login/CarrenzaVCloudDirectorSessionClientLiveTest.java @@ -0,0 +1,35 @@ +/** + * Licensed to jclouds, Inc. (jclouds) under one or more + * contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. jclouds licenses this file + * to you 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. + */ +package org.jclouds.carrenza.vcloud.director.login; + +import org.jclouds.vcloud.director.v1_5.login.SessionClientLiveTest; +import org.testng.annotations.Test; + +/** + * + * + * @author danikov + */ +@Test(groups = "live", enabled = true, singleThreaded = true, testName = "CarrenzaVCloudDirectorSessionClientLiveTest") +public class CarrenzaVCloudDirectorSessionClientLiveTest extends SessionClientLiveTest { + + public CarrenzaVCloudDirectorSessionClientLiveTest() { + provider = "carrenza-vcloud-director"; + } +} diff --git a/labs/carrenza-element-vcloud/src/test/resources/log4j.xml b/labs/carrenza-element-vcloud/src/test/resources/log4j.xml new file mode 100644 index 0000000000..daefa0e832 --- /dev/null +++ b/labs/carrenza-element-vcloud/src/test/resources/log4j.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +