JCLOUDS-1026: Remove public HP cloud compute providers https://issues.apache.org/jira/browse/JCLOUDS-1026
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/5d82b40d Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/5d82b40d Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/5d82b40d Branch: refs/heads/master Commit: 5d82b40d78564f090e507fbd4b623f2242833b8b Parents: 34f6d6c Author: Chris Custine <[email protected]> Authored: Mon Nov 9 19:04:59 2015 -0700 Committer: Chris Custine <[email protected]> Committed: Mon Nov 9 19:04:59 2015 -0700 ---------------------------------------------------------------------- providers/hpcloud-blockstorage/pom.xml | 139 -------- .../HPCloudBlockStorageProviderMetadata.java | 100 ------ ...dBlockStorageProviderMetadataExpectTest.java | 58 ---- .../HPCloudBlockStorageProviderTest.java | 29 -- ...lockStorageVolumeAndSnapshotApiLiveTest.java | 27 -- ...PCloudBlockStorageVolumeTypeApiLiveTest.java | 27 -- .../src/test/resources/access_hpcloud.json | 325 ----------------- .../src/test/resources/auth_post_req.json | 9 - providers/hpcloud-compute/pom.xml | 155 --------- .../compute/HPCloudComputeProviderMetadata.java | 120 ------- .../compute/HPCloudComputeServiceAdapter.java | 60 ---- .../config/HPCloudComputeHttpApiModule.java | 40 --- .../HPCloudComputeServiceContextModule.java | 31 -- ...PCloudComputeProviderMetadataExpectTest.java | 60 ---- .../compute/HPCloudComputeProviderTest.java | 46 --- .../HPCloudComputeComputeServiceLiveTest.java | 28 -- .../HPCloudComputeTemplateBuilderLiveTest.java | 59 ---- .../HPCloudComputeImageExtensionLivetest.java | 36 -- ...udComputeSecurityGroupExtensionLiveTest.java | 36 -- ...omputeVolumeAttachmentExtensionLiveTest.java | 45 --- .../HPCloudComputeFlavorApiLiveTest.java | 28 -- .../HPCloudComputeFloatingIPApiLiveTest.java | 28 -- .../HPCloudComputeImageApiLiveTest.java | 27 -- .../HPCloudComputeKeyPairApiLiveTest.java | 28 -- .../HPCloudComputeSecurityGroupApiLiveTest.java | 27 -- .../HPCloudComputeServerApiLiveTest.java | 28 -- .../HPCloudComputeVolumeApiLiveTest.java | 28 -- .../src/test/resources/access_hpcloud.json | 346 ------------------- providers/pom.xml | 2 - 29 files changed, 1972 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/pom.xml ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/pom.xml b/providers/hpcloud-blockstorage/pom.xml deleted file mode 100644 index 00f56df..0000000 --- a/providers/hpcloud-blockstorage/pom.xml +++ /dev/null @@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF 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. - ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-project</artifactId> - <version>2.0.0-SNAPSHOT</version> - <relativePath>../../project/pom.xml</relativePath> - </parent> - <groupId>org.apache.jclouds.provider</groupId> - <artifactId>hpcloud-blockstorage</artifactId> - <name>jclouds HP Cloud Block Storage Provider</name> - <description>OpenStack Cinder implementation for HP Cloud Block Storage</description> - <packaging>bundle</packaging> - - <properties> - <test.hpcloud-blockstorage.endpoint>https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/</test.hpcloud-blockstorage.endpoint> - <test.hpcloud-blockstorage.api-version>1.0</test.hpcloud-blockstorage.api-version> - <test.hpcloud-blockstorage.build-version /> - <test.hpcloud-blockstorage.identity>FIXME_IDENTITY</test.hpcloud-blockstorage.identity> - <test.hpcloud-blockstorage.credential>FIXME_CREDENTIAL</test.hpcloud-blockstorage.credential> - <test.hpcloud-blockstorage.template /> - <jclouds.osgi.export>org.jclouds.hpcloud.blockstorage.*;version="${project.version}"</jclouds.osgi.export> - <jclouds.osgi.import> - org.jclouds.compute.internal;version="${project.version}", - org.jclouds.rest.internal;version="${project.version}", - org.jclouds*;version="${project.version}", - * - </jclouds.osgi.import> - </properties> - - <dependencies> - <dependency> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-core</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-cinder</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-keystone</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-core</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-cinder</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-keystone</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.driver</groupId> - <artifactId>jclouds-slf4j</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>ch.qos.logback</groupId> - <artifactId>logback-classic</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.google.auto.service</groupId> - <artifactId>auto-service</artifactId> - <optional>true</optional> - </dependency> - </dependencies> - - <profiles> - <profile> - <id>live</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <executions> - <execution> - <id>integration</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <threadCount>1</threadCount> - <systemPropertyVariables> - <test.hpcloud-blockstorage.endpoint>${test.hpcloud-blockstorage.endpoint}</test.hpcloud-blockstorage.endpoint> - <test.hpcloud-blockstorage.api-version>${test.hpcloud-blockstorage.api-version}</test.hpcloud-blockstorage.api-version> - <test.hpcloud-blockstorage.build-version>${test.hpcloud-blockstorage.build-version}</test.hpcloud-blockstorage.build-version> - <test.hpcloud-blockstorage.identity>${test.hpcloud-blockstorage.identity}</test.hpcloud-blockstorage.identity> - <test.hpcloud-blockstorage.credential>${test.hpcloud-blockstorage.credential}</test.hpcloud-blockstorage.credential> - <test.hpcloud-blockstorage.template>${test.hpcloud-blockstorage.template}</test.hpcloud-blockstorage.template> - </systemPropertyVariables> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> - -</project> http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/main/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadata.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/main/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadata.java b/providers/hpcloud-blockstorage/src/main/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadata.java deleted file mode 100644 index 2a00440..0000000 --- a/providers/hpcloud-blockstorage/src/main/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadata.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.blockstorage; - -import org.jclouds.openstack.cinder.v1.CinderApiMetadata; -import org.jclouds.openstack.keystone.v2_0.config.CredentialTypes; -import org.jclouds.openstack.v2_0.ServiceType; -import org.jclouds.providers.ProviderMetadata; -import org.jclouds.providers.internal.BaseProviderMetadata; - -import java.net.URI; -import java.util.Properties; - -import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.REQUIRES_TENANT; -import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.CREDENTIAL_TYPE; -import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.SERVICE_TYPE; - -import com.google.auto.service.AutoService; - -/** - * Implementation of {@link ProviderMetadata} for HP Cloud Block Storage service. - * - */ -@AutoService(ProviderMetadata.class) -public class HPCloudBlockStorageProviderMetadata extends BaseProviderMetadata { - - public static Builder builder() { - return new Builder(); - } - - @Override - public Builder toBuilder() { - return builder().fromProviderMetadata(this); - } - - public HPCloudBlockStorageProviderMetadata() { - super(builder()); - } - - public HPCloudBlockStorageProviderMetadata(Builder builder) { - super(builder); - } - - public static Properties defaultProperties() { - Properties properties = new Properties(); - properties.setProperty(REQUIRES_TENANT, "true"); - properties.setProperty(CREDENTIAL_TYPE, CredentialTypes.API_ACCESS_KEY_CREDENTIALS); - properties.setProperty(SERVICE_TYPE, ServiceType.BLOCK_STORAGE); - - return properties; - } - - public static class Builder extends BaseProviderMetadata.Builder { - - protected Builder() { - id("hpcloud-blockstorage") - .name("HP Cloud Block Storage") - .apiMetadata(new CinderApiMetadata().toBuilder() - .identityName("${tenantName:accessKey}") - .credentialName("${secret}") - .defaultEndpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/") - .endpointName("identity service url ending in /v2.0/") - .documentation(URI.create("https://docs.hpcloud.com/api/v13/block-storage/")) - .version("1.0") - .build()) - .homepage(URI.create("https://horizon.hpcloud.com/project/volumes/")) - .console(URI.create("https://horizon.hpcloud.com")) - .linkedServices("hpcloud-compute", "hpcloud-objectstorage") - .iso3166Codes("US-NV", "US-VA") - .endpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/") - .defaultProperties(HPCloudBlockStorageProviderMetadata.defaultProperties()); - } - - @Override - public HPCloudBlockStorageProviderMetadata build() { - return new HPCloudBlockStorageProviderMetadata(this); - } - - @Override - public Builder fromProviderMetadata(ProviderMetadata in) { - super.fromProviderMetadata(in); - return this; - } - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadataExpectTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadataExpectTest.java b/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadataExpectTest.java deleted file mode 100644 index 2f43fc6..0000000 --- a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderMetadataExpectTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.blockstorage; - -import static org.testng.Assert.assertEquals; - -import org.jclouds.http.HttpRequest; -import org.jclouds.http.HttpResponse; -import org.jclouds.openstack.cinder.v1.CinderApi; -import org.jclouds.openstack.cinder.v1.internal.BaseCinderApiExpectTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableSet; - -@Test(groups = "unit", testName = "HPCloudBlockStorageProviderMetadataExpectTest") -public class HPCloudBlockStorageProviderMetadataExpectTest extends BaseCinderApiExpectTest { - - public HPCloudBlockStorageProviderMetadataExpectTest() { - this.provider = "hpcloud-blockstorage"; - this.identity = "myTenantName:accessKey"; - this.credential = "secretKey"; - } - - public void testCanGetConfiguredRegions() { - - HttpRequest authenticate = HttpRequest.builder().method("POST") - .endpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens") - .addHeader("Accept", "application/json") - .payload(payloadFromResourceWithContentType("/auth_post_req.json", "application/json")) - .build(); - - - HttpResponse authenticationResponse = HttpResponse.builder() - .statusCode(200) - .payload(payloadFromResourceWithContentType("/access_hpcloud.json", "application/json")) - .build(); - - CinderApi whenNovaRegionExists = requestSendsResponse(authenticate, authenticationResponse); - - assertEquals(whenNovaRegionExists.getConfiguredRegions(), ImmutableSet.of("region-a.geo-1", "region-b.geo-1")); - - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderTest.java b/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderTest.java deleted file mode 100644 index 4e2ab46..0000000 --- a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/HPCloudBlockStorageProviderTest.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.blockstorage; - -import org.jclouds.openstack.cinder.v1.CinderApiMetadata; -import org.jclouds.providers.internal.BaseProviderMetadataTest; -import org.testng.annotations.Test; - -@Test(groups = "unit", testName = "HPCloudBlockStorageProviderTest") -public class HPCloudBlockStorageProviderTest extends BaseProviderMetadataTest { - - public HPCloudBlockStorageProviderTest() { - super(new HPCloudBlockStorageProviderMetadata(), new CinderApiMetadata()); - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeAndSnapshotApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeAndSnapshotApiLiveTest.java b/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeAndSnapshotApiLiveTest.java deleted file mode 100644 index 40b4d8a..0000000 --- a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeAndSnapshotApiLiveTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.blockstorage.features; - -import org.jclouds.openstack.cinder.v1.features.VolumeAndSnapshotApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudBlockStorageVolumeAndSnapshotApiLiveTest") -public class HPCloudBlockStorageVolumeAndSnapshotApiLiveTest extends VolumeAndSnapshotApiLiveTest { - public HPCloudBlockStorageVolumeAndSnapshotApiLiveTest() { - provider = "hpcloud-blockstorage"; - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeTypeApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeTypeApiLiveTest.java b/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeTypeApiLiveTest.java deleted file mode 100644 index 4cac864..0000000 --- a/providers/hpcloud-blockstorage/src/test/java/org/jclouds/hpcloud/blockstorage/features/HPCloudBlockStorageVolumeTypeApiLiveTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.blockstorage.features; - -import org.jclouds.openstack.cinder.v1.features.VolumeTypeApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudBlockStorageVolumeTypeApiLiveTest") -public class HPCloudBlockStorageVolumeTypeApiLiveTest extends VolumeTypeApiLiveTest { - public HPCloudBlockStorageVolumeTypeApiLiveTest() { - provider = "hpcloud-blockstorage"; - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/test/resources/access_hpcloud.json ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/test/resources/access_hpcloud.json b/providers/hpcloud-blockstorage/src/test/resources/access_hpcloud.json deleted file mode 100644 index a0c01c5..0000000 --- a/providers/hpcloud-blockstorage/src/test/resources/access_hpcloud.json +++ /dev/null @@ -1,325 +0,0 @@ -{ - "access": { - "token": { - "expires": "2014-04-24T08:52:18.113Z", - "id": "myToken", - "tenant": { - "id": "myTenantId", - "name": "myTenantName" - } - }, - "user": { - "id": "myUserId", - "name": "myUsername", - "otherAttributes": { - "domainStatus": "enabled", - "domainStatusCode": "00" - }, - "roles": [ - { - "id": "00000000004004", - "serviceId": "100", - "name": "domainuser" - }, - { - "id": "00000000004016", - "serviceId": "120", - "name": "netadmin", - "tenantId": "myTenantId" - }, - { - "id": "00000000004014", - "serviceId": "150", - "name": "cdn-admin", - "tenantId": "myTenantId" - }, - { - "id": "00000000004022", - "serviceId": "110", - "name": "Admin", - "tenantId": "myTenantId" - }, - { - "id": "00000000004024", - "serviceId": "140", - "name": "user", - "tenantId": "myTenantId" - }, - { - "id": "00000000004013", - "serviceId": "130", - "name": "block-admin", - "tenantId": "myTenantId" - }, - { - "id": "00000000004025", - "serviceId": "120", - "name": "sysadmin", - "tenantId": "myTenantId" - }, - { - "id": "91643347410087", - "serviceId": "240", - "name": "dns-admin", - "tenantId": "myTenantId" - }, - { - "id": "00000000004003", - "serviceId": "100", - "name": "domainadmin" - }, - { - "id": "10419409370304", - "serviceId": "170", - "name": "net-admin", - "tenantId": "myTenantId" - } - ] - }, - "serviceCatalog": [ - { - "name": "Usage Reporting", - "type": "metering", - "endpoints": [ - { - "publicURL": "", - "region": "region-a.geo-1", - "versionId": "2", - "versionInfo": "https://region-a.geo-1.usage-reporting-internal.hpcloudsvc.com:8777", - "versionList": "https://region-a.geo-1.usage-reporting-internal.hpcloudsvc.com:8777" - }, - { - "publicURL": "", - "region": "region-b.geo-1", - "versionId": "2", - "versionInfo": "https://region-b.geo-1.usage-reporting-internal.hpcloudsvc.com:8777", - "versionList": "https://region-b.geo-1.usage-reporting-internal.hpcloudsvc.com:8777" - } - ] - }, - { - "name": "Networking", - "type": "network", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "", - "publicURL2": "", - "region": "az-1.region-a.geo-1", - "versionId": "", - "versionInfo": "", - "versionList": "" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.network.hpcloudsvc.com", - "publicURL2": "", - "region": "region-a.geo-1", - "versionId": "2.0", - "versionInfo": "https://region-a.geo-1.network.hpcloudsvc.com", - "versionList": "https://region-a.geo-1.network.hpcloudsvc.com" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-b.geo-1.network.hpcloudsvc.com", - "publicURL2": "", - "region": "region-b.geo-1", - "versionId": "2.0", - "versionInfo": "https://region-b.geo-1.network.hpcloudsvc.com", - "versionList": "https://region-b.geo-1.network.hpcloudsvc.com" - } - ] - }, - { - "name": "CDN", - "type": "hpext:cdn", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.cdnmgmt.hpcloudsvc.com/v1.0/myTenantId", - "region": "region-a.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-a.geo-1.cdnmgmt.hpcloudsvc.com/v1.0/", - "versionList": "https://region-a.geo-1.cdnmgmt.hpcloudsvc.com/" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-b.geo-1.cdnmgmt.hpcloudsvc.com/v1.0/myTenantId", - "region": "region-b.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-b.geo-1.cdnmgmt.hpcloudsvc.com/v1.0/", - "versionList": "https://region-b.geo-1.cdnmgmt.hpcloudsvc.com/" - } - ] - }, - { - "name": "Object Storage", - "type": "object-store", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.objects.hpcloudsvc.com/v1/myTenantId", - "region": "region-a.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-a.geo-1.objects.hpcloudsvc.com/v1.0/", - "versionList": "https://region-a.geo-1.objects.hpcloudsvc.com" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-b.geo-1.objects.hpcloudsvc.com:443/v1/myTenantId", - "region": "region-b.geo-1", - "versionId": "1", - "versionInfo": "https://region-b.geo-1.objects.hpcloudsvc.com:443/v1/", - "versionList": "https://region-b.geo-1.objects.hpcloudsvc.com:443" - } - ] - }, - { - "name": "Identity", - "type": "identity", - "endpoints": [ - { - "publicURL": "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/", - "region": "region-a.geo-1", - "versionId": "2.0", - "versionInfo": "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/", - "versionList": "https://region-a.geo-1.identity.hpcloudsvc.com:35357" - }, - { - "publicURL": "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v3/", - "region": "region-a.geo-1", - "versionId": "3.0", - "versionInfo": "https://region-a.geo-1.identity.hpcloudsvc.com:35357/v3/", - "versionList": "https://region-a.geo-1.identity.hpcloudsvc.com:35357" - }, - { - "publicURL": "https://region-b.geo-1.identity.hpcloudsvc.com:35357/v2.0/", - "region": "region-b.geo-1", - "versionId": "2.0", - "versionInfo": "https://region-b.geo-1.identity.hpcloudsvc.com:35357/v2.0/", - "versionList": "https://region-b.geo-1.identity.hpcloudsvc.com:35357" - }, - { - "publicURL": "https://region-b.geo-1.identity.hpcloudsvc.com:35357/v3/", - "region": "region-b.geo-1", - "versionId": "3.0", - "versionInfo": "https://region-b.geo-1.identity.hpcloudsvc.com:35357/v3/", - "versionList": "https://region-b.geo-1.identity.hpcloudsvc.com:35357" - } - ] - }, - { - "name": "Image Management", - "type": "image", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "https://glance1.uswest.hpcloud.net:9292/v1.0", - "publicURL2": "", - "region": "az-1.region-a.geo-1", - "versionId": "1.0", - "versionInfo": "https://glance1.uswest.hpcloud.net:9292/v1.0/", - "versionList": "https://glance1.uswest.hpcloud.net:9292" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.images.hpcloudsvc.com:443/v1.0", - "publicURL2": "", - "region": "region-a.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-a.geo-1.images.hpcloudsvc.com:443/v1.0", - "versionList": "https://region-a.geo-1.images.hpcloudsvc.com:443" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-b.geo-1.images.hpcloudsvc.com:443/v1.0", - "publicURL2": "", - "region": "region-b.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-b.geo-1.images.hpcloudsvc.com:443/v1.0", - "versionList": "https://region-b.geo-1.images.hpcloudsvc.com:443" - } - ] - }, - { - "name": "DNS", - "type": "hpext:dns", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.dns.hpcloudsvc.com/v1/", - "publicURL2": "", - "region": "region-a.geo-1", - "versionId": "1", - "versionInfo": "https://region-a.geo-1.dns.hpcloudsvc.com/v1/", - "versionList": "https://region-a.geo-1.dns.hpcloudsvc.com/" - } - ] - }, - { - "name": "Block Storage", - "type": "volume", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/myTenantId", - "publicURL2": "", - "region": "az-1.region-a.geo-1", - "versionId": "1.1", - "versionInfo": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/", - "versionList": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.block.hpcloudsvc.com/v1/myTenantId", - "publicURL2": "", - "region": "region-a.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-a.geo-1.block.hpcloudsvc.com/v1", - "versionList": "https://region-a.geo-1.block.hpcloudsvc.com" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-b.geo-1.block.hpcloudsvc.com/v1/myTenantId", - "publicURL2": "", - "region": "region-b.geo-1", - "versionId": "1.0", - "versionInfo": "https://region-b.geo-1.block.hpcloudsvc.com/v1", - "versionList": "https://region-b.geo-1.block.hpcloudsvc.com" - } - ] - }, - { - "name": "Compute", - "type": "compute", - "endpoints": [ - { - "tenantId": "myTenantId", - "publicURL": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/myTenantId", - "publicURL2": "https://az-1.region-a.geo-1.ec2-compute.hpcloudsvc.com/services/Cloud", - "region": "az-1.region-a.geo-1", - "versionId": "1.1", - "versionInfo": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.1/", - "versionList": "https://az-1.region-a.geo-1.compute.hpcloudsvc.com" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-a.geo-1.compute.hpcloudsvc.com/v2/myTenantId", - "region": "region-a.geo-1", - "versionId": "2", - "versionInfo": "https://region-a.geo-1.compute.hpcloudsvc.com/v2/", - "versionList": "https://region-a.geo-1.compute.hpcloudsvc.com" - }, - { - "tenantId": "myTenantId", - "publicURL": "https://region-b.geo-1.compute.hpcloudsvc.com/v2/myTenantId", - "region": "region-b.geo-1", - "versionId": "2", - "versionInfo": "https://region-b.geo-1.compute.hpcloudsvc.com/v2/", - "versionList": "https://region-b.geo-1.compute.hpcloudsvc.com" - } - ] - } - ] - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-blockstorage/src/test/resources/auth_post_req.json ---------------------------------------------------------------------- diff --git a/providers/hpcloud-blockstorage/src/test/resources/auth_post_req.json b/providers/hpcloud-blockstorage/src/test/resources/auth_post_req.json deleted file mode 100644 index 57ef1c7..0000000 --- a/providers/hpcloud-blockstorage/src/test/resources/auth_post_req.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "auth": { - "apiAccessKeyCredentials": { - "accessKey": "accessKey", - "secretKey": "secretKey" - }, - "tenantName": "myTenantName" - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/pom.xml ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/pom.xml b/providers/hpcloud-compute/pom.xml deleted file mode 100644 index 6f49f63..0000000 --- a/providers/hpcloud-compute/pom.xml +++ /dev/null @@ -1,155 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF 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. - ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-project</artifactId> - <version>2.0.0-SNAPSHOT</version> - <relativePath>../../project/pom.xml</relativePath> - </parent> - <groupId>org.apache.jclouds.provider</groupId> - <artifactId>hpcloud-compute</artifactId> - <name>jclouds HP Cloud Compute provider</name> - <description>OpenStack Nova implementation targeted to HP Cloud Compute</description> - <packaging>bundle</packaging> - - <properties> - <test.hpcloud-compute.endpoint>https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/</test.hpcloud-compute.endpoint> - <test.hpcloud-compute.build-version /> - <!-- - Identity must be "tenantName:accessKey". Credential is "secretKey" - --> - <test.hpcloud-compute.identity>FIXME_IDENTITY</test.hpcloud-compute.identity> - <test.hpcloud-compute.credential>FIXME_CREDENTIAL</test.hpcloud-compute.credential> - <test.hpcloud-compute.template /> - <jclouds.osgi.export>org.jclouds.hpcloud.compute*;version="${project.version}"</jclouds.osgi.export> - <jclouds.osgi.import> - org.jclouds.compute.internal;version="${project.version}", - org.jclouds.rest.internal;version="${project.version}", - org.jclouds*;version="${project.version}", - * - </jclouds.osgi.import> - </properties> - - <dependencies> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-nova</artifactId> - <version>${project.version}</version> - </dependency> - <!-- for the extension namespaces --> - <dependency> - <groupId>com.google.inject.extensions</groupId> - <artifactId>guice-multibindings</artifactId> - </dependency> - <dependency> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-core</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds</groupId> - <artifactId>jclouds-compute</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-nova</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-keystone</artifactId> - <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.driver</groupId> - <artifactId>jclouds-slf4j</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.driver</groupId> - <artifactId>jclouds-sshj</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.jclouds.api</groupId> - <artifactId>openstack-cinder</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>ch.qos.logback</groupId> - <artifactId>logback-classic</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>com.google.auto.service</groupId> - <artifactId>auto-service</artifactId> - <optional>true</optional> - </dependency> - </dependencies> - - <profiles> - <profile> - <id>live</id> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <executions> - <execution> - <id>integration</id> - <phase>integration-test</phase> - <goals> - <goal>test</goal> - </goals> - <configuration> - <threadCount>1</threadCount> - <systemPropertyVariables> - <test.hpcloud-compute.endpoint>${test.hpcloud-compute.endpoint}</test.hpcloud-compute.endpoint> - <test.hpcloud-compute.api-version>${test.hpcloud-compute.api-version}</test.hpcloud-compute.api-version> - <test.hpcloud-compute.build-version>${test.hpcloud-compute.build-version}</test.hpcloud-compute.build-version> - <test.hpcloud-compute.identity>${test.hpcloud-compute.identity}</test.hpcloud-compute.identity> - <test.hpcloud-compute.credential>${test.hpcloud-compute.credential}</test.hpcloud-compute.credential> - <test.hpcloud-compute.template>${test.hpcloud-compute.template}</test.hpcloud-compute.template> - </systemPropertyVariables> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> - -</project> http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadata.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadata.java b/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadata.java deleted file mode 100644 index 1f2f1d2..0000000 --- a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadata.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute; - -import static org.jclouds.compute.config.ComputeServiceProperties.TEMPLATE; -import static org.jclouds.compute.config.ComputeServiceProperties.TIMEOUT_NODE_TERMINATED; -import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.CREDENTIAL_TYPE; -import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.REQUIRES_TENANT; -import static org.jclouds.openstack.nova.v2_0.config.NovaProperties.AUTO_ALLOCATE_FLOATING_IPS; -import static org.jclouds.openstack.nova.v2_0.config.NovaProperties.AUTO_GENERATE_KEYPAIRS; - -import java.net.URI; -import java.util.Properties; - -import org.jclouds.hpcloud.compute.config.HPCloudComputeHttpApiModule; -import org.jclouds.hpcloud.compute.config.HPCloudComputeServiceContextModule; -import org.jclouds.openstack.keystone.v2_0.config.AuthenticationApiModule; -import org.jclouds.openstack.keystone.v2_0.config.CredentialTypes; -import org.jclouds.openstack.keystone.v2_0.config.KeystoneAuthenticationModule; -import org.jclouds.openstack.keystone.v2_0.config.KeystoneAuthenticationModule.RegionModule; -import org.jclouds.openstack.nova.v2_0.NovaApiMetadata; -import org.jclouds.openstack.nova.v2_0.config.NovaParserModule; -import org.jclouds.providers.ProviderMetadata; -import org.jclouds.providers.internal.BaseProviderMetadata; - -import com.google.auto.service.AutoService; -import com.google.common.collect.ImmutableSet; -import com.google.inject.Module; - -/** - * Implementation of {@link ProviderMetadata} for HP Cloud Compute Services. - */ -@AutoService(ProviderMetadata.class) -public class HPCloudComputeProviderMetadata extends BaseProviderMetadata { - - public static Builder builder() { - return new Builder(); - } - - @Override - public Builder toBuilder() { - return builder().fromProviderMetadata(this); - } - - public HPCloudComputeProviderMetadata() { - super(builder()); - } - - public HPCloudComputeProviderMetadata(Builder builder) { - super(builder); - } - - public static Properties defaultProperties() { - Properties properties = NovaApiMetadata.defaultProperties(); - // deallocating ip addresses can take a while - properties.setProperty(TIMEOUT_NODE_TERMINATED, 60 * 1000 + ""); - - properties.setProperty(REQUIRES_TENANT, "true"); - properties.setProperty(CREDENTIAL_TYPE, CredentialTypes.API_ACCESS_KEY_CREDENTIALS); - - properties.setProperty(AUTO_ALLOCATE_FLOATING_IPS, "true"); - properties.setProperty(AUTO_GENERATE_KEYPAIRS, "true"); - properties.setProperty(TEMPLATE, "osFamily=UBUNTU,osVersionMatches=1[24].[01][04]," + - "imageNameMatches=.*LTS.*,os64Bit=true,locationId=region-a.geo-1"); - return properties; - } - - public static class Builder extends BaseProviderMetadata.Builder { - - protected Builder() { - id("hpcloud-compute") - .name("HP Cloud Compute Services") - .apiMetadata(new NovaApiMetadata().toBuilder() - .identityName("${tenantName}:${accessKey}") - .credentialName("${secretKey}") - .version("2") - .endpointName("identity service url ending in /v2.0/") - .defaultEndpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/") - .defaultModules(ImmutableSet.<Class<? extends Module>>builder() - .add(AuthenticationApiModule.class) - .add(KeystoneAuthenticationModule.class) - .add(RegionModule.class) - .add(NovaParserModule.class) - .add(HPCloudComputeHttpApiModule.class) - .add(HPCloudComputeServiceContextModule.class).build()) - .build()) - .homepage(URI.create("http://hpcloud.com")) - .console(URI.create("https://horizon.hpcloud.com/")) - .linkedServices("hpcloud-compute", "hpcloud-objectstorage") - .iso3166Codes("US-NV", "US-VA") - .endpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/") - .defaultProperties(HPCloudComputeProviderMetadata.defaultProperties()); - } - - @Override - public HPCloudComputeProviderMetadata build() { - return new HPCloudComputeProviderMetadata(this); - } - - @Override - public Builder fromProviderMetadata(ProviderMetadata in) { - super.fromProviderMetadata(in); - return this; - } - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeServiceAdapter.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeServiceAdapter.java b/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeServiceAdapter.java deleted file mode 100644 index c18b82b..0000000 --- a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/HPCloudComputeServiceAdapter.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute; - -import java.util.Set; - -import javax.inject.Inject; - -import org.jclouds.location.Region; -import org.jclouds.openstack.nova.v2_0.NovaApi; -import org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceAdapter; -import org.jclouds.openstack.nova.v2_0.compute.functions.RemoveFloatingIpFromNodeAndDeallocate; -import org.jclouds.openstack.nova.v2_0.domain.KeyPair; -import org.jclouds.openstack.nova.v2_0.domain.regionscoped.ImageInRegion; -import org.jclouds.openstack.nova.v2_0.domain.regionscoped.RegionAndName; - -import com.google.common.base.Predicate; -import com.google.common.base.Supplier; -import com.google.common.cache.LoadingCache; -import com.google.common.collect.Iterables; - -public class HPCloudComputeServiceAdapter extends NovaComputeServiceAdapter { - - @Inject - public HPCloudComputeServiceAdapter(NovaApi novaApi, @Region Supplier<Set<String>> regionIds, - RemoveFloatingIpFromNodeAndDeallocate removeFloatingIpFromNodeAndDeallocate, LoadingCache<RegionAndName, KeyPair> keyPairCache) { - super(novaApi, regionIds, removeFloatingIpFromNodeAndDeallocate, keyPairCache); - } - - @Override - public Iterable<ImageInRegion> listImages() { - return Iterables.filter(super.listImages(), new Predicate<ImageInRegion>() { - - @Override - public boolean apply(ImageInRegion arg0) { - String imageName = arg0.getImage().getName(); - return imageName.indexOf("Kernel") == -1 && imageName.indexOf("Ramdisk") == -1; - } - - @Override - public String toString() { - return "notKernelOrRamdisk"; - } - }); - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeHttpApiModule.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeHttpApiModule.java b/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeHttpApiModule.java deleted file mode 100644 index 74eec97..0000000 --- a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeHttpApiModule.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.config; - -import static org.jclouds.openstack.keystone.v2_0.config.KeystoneHttpApiModule.aliasBinder; - -import java.net.URI; - -import org.jclouds.openstack.nova.v2_0.config.NovaHttpApiModule; -import org.jclouds.openstack.nova.v2_0.extensions.ExtensionNamespaces; -import org.jclouds.rest.ConfiguresHttpApi; - -import com.google.inject.multibindings.MapBinder; - -@ConfiguresHttpApi -public class HPCloudComputeHttpApiModule extends NovaHttpApiModule { - - @Override - protected void configure() { - super.configure(); - MapBinder<URI, URI> aliases = aliasBinder(binder()); - aliases.addBinding(URI.create(ExtensionNamespaces.VOLUME_ATTACHMENTS)).toInstance( - URI.create("http://docs.openstack.org/compute/ext/volumes/api/v1.1")); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeServiceContextModule.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeServiceContextModule.java b/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeServiceContextModule.java deleted file mode 100644 index c2a7388..0000000 --- a/providers/hpcloud-compute/src/main/java/org/jclouds/hpcloud/compute/config/HPCloudComputeServiceContextModule.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.config; - -import org.jclouds.hpcloud.compute.HPCloudComputeServiceAdapter; -import org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceAdapter; -import org.jclouds.openstack.nova.v2_0.compute.config.NovaComputeServiceContextModule; - -public class HPCloudComputeServiceContextModule extends NovaComputeServiceContextModule { - - @Override - protected void configure() { - super.configure(); - bind(NovaComputeServiceAdapter.class).to(HPCloudComputeServiceAdapter.class); - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadataExpectTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadataExpectTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadataExpectTest.java deleted file mode 100644 index ef2b703..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderMetadataExpectTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute; - -import static org.testng.Assert.assertEquals; - -import org.jclouds.http.HttpRequest; -import org.jclouds.http.HttpResponse; -import org.jclouds.openstack.nova.v2_0.NovaApi; -import org.jclouds.openstack.nova.v2_0.internal.BaseNovaApiExpectTest; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableSet; - -/** - * This test ensures that the wiring in {@link HPCloudComputeProviderMetadata} is correct. - */ -@Test(groups = "unit", testName = "HPCloudComputeProviderMetadataExpectTest") -public class HPCloudComputeProviderMetadataExpectTest extends BaseNovaApiExpectTest { - - public HPCloudComputeProviderMetadataExpectTest() { - this.provider = "hpcloud-compute"; - this.identity = "tenant:accesskey"; - this.credential = "secret"; - } - - public void testCanGetConfiguredRegions() { - - HttpRequest authenticate = HttpRequest.builder().method("POST") - .endpoint("https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens") - .addHeader("Accept", "application/json") - .payload(payloadFromStringWithContentType( - "{\"auth\":{\"apiAccessKeyCredentials\":{\"accessKey\":\"accesskey\",\"secretKey\":\"secret\"},\"tenantName\":\"tenant\"}}" - , "application/json")).build(); - - - HttpResponse authenticationResponse = HttpResponse.builder().statusCode(200) - .payload(payloadFromResourceWithContentType("/access_hpcloud.json", "application/json")).build(); - - NovaApi whenNovaRegionExists = requestSendsResponse(authenticate, authenticationResponse); - - assertEquals(whenNovaRegionExists.getConfiguredRegions(), ImmutableSet.of("region-a.geo-1", "region-b.geo-1")); - - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderTest.java deleted file mode 100644 index 694db78..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/HPCloudComputeProviderTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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. - */ -/** - * - * - * ==================================================================== - * 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. - * ==================================================================== - */ -package org.jclouds.hpcloud.compute; - -import org.jclouds.openstack.nova.v2_0.NovaApiMetadata; -import org.jclouds.providers.internal.BaseProviderMetadataTest; -import org.testng.annotations.Test; - -@Test(groups = "unit", testName = "HPCloudComputeProviderTest") -public class HPCloudComputeProviderTest extends BaseProviderMetadataTest { - - public HPCloudComputeProviderTest() { - super(new HPCloudComputeProviderMetadata(), new NovaApiMetadata()); - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java deleted file mode 100644 index 71e613a..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeComputeServiceLiveTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.compute; - -import org.jclouds.openstack.nova.v2_0.compute.NovaComputeServiceLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", singleThreaded = true, testName = "HPCloudComputeComputeServiceLiveTest") -public class HPCloudComputeComputeServiceLiveTest extends NovaComputeServiceLiveTest { - - public HPCloudComputeComputeServiceLiveTest() { - provider = "hpcloud-compute"; - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeTemplateBuilderLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeTemplateBuilderLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeTemplateBuilderLiveTest.java deleted file mode 100644 index 19cf05e..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/HPCloudComputeTemplateBuilderLiveTest.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.compute; - -import static org.jclouds.compute.util.ComputeServiceUtils.getCores; -import static org.testng.Assert.assertEquals; -import static org.testng.Assert.assertTrue; - -import java.util.Set; - -import org.jclouds.compute.domain.OsFamily; -import org.jclouds.compute.domain.Template; -import org.jclouds.compute.internal.BaseTemplateBuilderLiveTest; -import org.jclouds.openstack.nova.v2_0.compute.options.NovaTemplateOptions; -import org.testng.annotations.Test; - -import com.google.common.collect.ImmutableSet; - -@Test(groups = "live", singleThreaded = true, testName = "HPCloudComputeTemplateBuilderLiveTest") -public class HPCloudComputeTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTest { - - public HPCloudComputeTemplateBuilderLiveTest() { - provider = "hpcloud-compute"; - } - - @Test - public void testTemplateBuilder() { - Template defaultTemplate = this.view.getComputeService().templateBuilder().build(); - assertEquals(defaultTemplate.getImage().getOperatingSystem().is64Bit(), true); - assertEquals(defaultTemplate.getImage().getOperatingSystem().getVersion(), "14.04"); - assertEquals(defaultTemplate.getImage().getOperatingSystem().getFamily(), OsFamily.UBUNTU); - assertTrue(defaultTemplate.getImage().getName().startsWith("Ubuntu Server 14.04")); - assertEquals(defaultTemplate.getImage().getDefaultCredentials().getUser(), "ubuntu"); - assertEquals(defaultTemplate.getLocation().getId(), "region-a.geo-1"); - assertEquals(defaultTemplate.getImage().getLocation().getId(), "region-a.geo-1"); - assertEquals(defaultTemplate.getHardware().getLocation().getId(), "region-a.geo-1"); - assertEquals(defaultTemplate.getOptions().as(NovaTemplateOptions.class).shouldAutoAssignFloatingIp(), true); - assertEquals(getCores(defaultTemplate.getHardware()), 1.0d); - } - - @Override - protected Set<String> getIso3166Codes() { - return ImmutableSet.of("US-NV", "US-VA"); - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeImageExtensionLivetest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeImageExtensionLivetest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeImageExtensionLivetest.java deleted file mode 100644 index 7f929fd..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeImageExtensionLivetest.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.compute.extensions; - -import org.jclouds.compute.extensions.internal.BaseImageExtensionLiveTest; -import org.jclouds.sshj.config.SshjSshClientModule; -import org.testng.annotations.Test; - -import com.google.inject.Module; - -@Test(groups = "live", singleThreaded = true, testName = "HPCloudComputeImageExtensionLivetest") -public class HPCloudComputeImageExtensionLivetest extends BaseImageExtensionLiveTest { - - public HPCloudComputeImageExtensionLivetest() { - provider = "hpcloud-compute"; - } - - @Override - protected Module getSshModule() { - return new SshjSshClientModule(); - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeSecurityGroupExtensionLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeSecurityGroupExtensionLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeSecurityGroupExtensionLiveTest.java deleted file mode 100644 index a5ccf72..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/compute/extensions/HPCloudComputeSecurityGroupExtensionLiveTest.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.compute.extensions; - -import org.jclouds.compute.extensions.internal.BaseSecurityGroupExtensionLiveTest; -import org.jclouds.sshj.config.SshjSshClientModule; -import org.testng.annotations.Test; - -import com.google.inject.Module; - -@Test(groups = "live", singleThreaded = true, testName = "HPCloudComputeImageExtensionLiveTest") -public class HPCloudComputeSecurityGroupExtensionLiveTest extends BaseSecurityGroupExtensionLiveTest { - - public HPCloudComputeSecurityGroupExtensionLiveTest() { - provider = "hpcloud-compute"; - } - - @Override - protected Module getSshModule() { - return new SshjSshClientModule(); - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/extensions/HPCloudComputeVolumeAttachmentExtensionLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/extensions/HPCloudComputeVolumeAttachmentExtensionLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/extensions/HPCloudComputeVolumeAttachmentExtensionLiveTest.java deleted file mode 100644 index bb3a77e..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/extensions/HPCloudComputeVolumeAttachmentExtensionLiveTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.extensions; - -import java.util.Properties; - -import org.jclouds.hpcloud.compute.HPCloudComputeProviderMetadata; -import org.jclouds.openstack.keystone.v2_0.config.CredentialTypes; -import org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties; -import org.jclouds.openstack.nova.v2_0.extensions.VolumeAttachmentApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeVolumeAttachmentExtensionLiveTest", singleThreaded = true) -public class HPCloudComputeVolumeAttachmentExtensionLiveTest extends VolumeAttachmentApiLiveTest { - - public HPCloudComputeVolumeAttachmentExtensionLiveTest() { - HPCloudComputeProviderMetadata metadata = new HPCloudComputeProviderMetadata(); - provider = metadata.getId(); - System.setProperty("test." + provider + ".endpoint", metadata.getEndpoint()); - System.setProperty(KeystoneProperties.CREDENTIAL_TYPE, CredentialTypes.API_ACCESS_KEY_CREDENTIALS); - } - - @Override - protected Properties setupProperties() { - Properties props = super.setupProperties(); - volumeProviderVersion = setIfTestSystemPropertyPresent(props, provider + ".volume-provider-version", "1.0"); - singleRegion = setIfTestSystemPropertyPresent(props, provider + ".region", "region-a.geo-1"); - return props; - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFlavorApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFlavorApiLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFlavorApiLiveTest.java deleted file mode 100644 index dfec994..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFlavorApiLiveTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.features; - -import org.jclouds.openstack.nova.v2_0.features.FlavorApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeFlavorApiLiveTest") -public class HPCloudComputeFlavorApiLiveTest extends FlavorApiLiveTest { - public HPCloudComputeFlavorApiLiveTest() { - provider = "hpcloud-compute"; - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFloatingIPApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFloatingIPApiLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFloatingIPApiLiveTest.java deleted file mode 100644 index b1b2b46..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeFloatingIPApiLiveTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.features; - -import org.jclouds.openstack.nova.v2_0.extensions.FloatingIPApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeFloatingIPApiLiveTest") -public class HPCloudComputeFloatingIPApiLiveTest extends FloatingIPApiLiveTest { - public HPCloudComputeFloatingIPApiLiveTest() { - provider = "hpcloud-compute"; - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeImageApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeImageApiLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeImageApiLiveTest.java deleted file mode 100644 index 60a9b83..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeImageApiLiveTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.features; - -import org.jclouds.openstack.nova.v2_0.features.ImageApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeImageApiLiveTest") -public class HPCloudComputeImageApiLiveTest extends ImageApiLiveTest { - public HPCloudComputeImageApiLiveTest() { - provider = "hpcloud-compute"; - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeKeyPairApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeKeyPairApiLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeKeyPairApiLiveTest.java deleted file mode 100644 index 1b8de5c..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeKeyPairApiLiveTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.features; - -import org.jclouds.openstack.nova.v2_0.extensions.KeyPairApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeKeyPairApiLiveTest") -public class HPCloudComputeKeyPairApiLiveTest extends KeyPairApiLiveTest { - public HPCloudComputeKeyPairApiLiveTest() { - provider = "hpcloud-compute"; - } - -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeSecurityGroupApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeSecurityGroupApiLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeSecurityGroupApiLiveTest.java deleted file mode 100644 index 091058b..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeSecurityGroupApiLiveTest.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.features; - -import org.jclouds.openstack.nova.v2_0.extensions.SecurityGroupApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeSecurityGroupApiLiveTest") -public class HPCloudComputeSecurityGroupApiLiveTest extends SecurityGroupApiLiveTest { - public HPCloudComputeSecurityGroupApiLiveTest() { - provider = "hpcloud-compute"; - } -} http://git-wip-us.apache.org/repos/asf/jclouds/blob/5d82b40d/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeServerApiLiveTest.java ---------------------------------------------------------------------- diff --git a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeServerApiLiveTest.java b/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeServerApiLiveTest.java deleted file mode 100644 index f0e772e..0000000 --- a/providers/hpcloud-compute/src/test/java/org/jclouds/hpcloud/compute/features/HPCloudComputeServerApiLiveTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF 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.hpcloud.compute.features; - -import org.jclouds.openstack.nova.v2_0.features.ServerApiLiveTest; -import org.testng.annotations.Test; - -@Test(groups = "live", testName = "HPCloudComputeServerApiLiveTest") -public class HPCloudComputeServerApiLiveTest extends ServerApiLiveTest { - public HPCloudComputeServerApiLiveTest() { - provider = "hpcloud-compute"; - } - -}
