You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Ilya Kulakov <no...@github.com> on 2014/01/10 11:45:17 UTC

[jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

You can merge this Pull Request by running:

  git pull https://github.com/cloudsigma/jclouds-labs cloudsigma2-add-wdc-provider

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds-labs/pull/48

-- Commit Summary --

  * Add CloudSigma v2 Washington DC provider

-- File Changes --

    A cloudsigma2-wdc/pom.xml (126)
    A cloudsigma2-wdc/src/main/java/org/jclouds/cloudsigma2/CloudSigma2WashingtonProviderMetadata.java (82)
    A cloudsigma2-wdc/src/main/resources/META-INF/services/org.jclouds.providers.ProviderMetadata (1)
    A cloudsigma2-wdc/src/test/java/org/jclouds/cloudsigma2/CloudSigma2WashingtonLiveTest.java (29)
    M pom.xml (1)

-- Patch Links --

https://github.com/jclouds/jclouds-labs/pull/48.patch
https://github.com/jclouds/jclouds-labs/pull/48.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Andrew Phillips <no...@github.com>.
> +         .apiMetadata(new CloudSigma2ApiMetadata())
> +         .homepage(URI.create("http://www.cloudsigma.com/en/our-cloud/features"))
> +         .console(URI.create("https://gui.wdc.cloudsigma.com/"))
> +         .iso3166Codes("US-DC")
> +         .endpoint("https://wdc.cloudsigma.com/api/2.0/")
> +         .defaultProperties(CloudSigma2WashingtonProviderMetadata.defaultProperties());
> +      }
> +
> +      @Override
> +      public CloudSigma2WashingtonProviderMetadata build() {
> +         return new CloudSigma2WashingtonProviderMetadata(this);
> +      }
> +
> +      @Override
> +      public Builder fromProviderMetadata(
> +            ProviderMetadata in) {

[minor] Arg on previous line?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48/files#r8803790

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Viktor Petersson <no...@github.com>.
@nacx Can we count on this being in 1.7.1 then?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32256737

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Vladimir Shevchenko <no...@github.com>.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@163778cf
Starting test testCalculateSubscriptions(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCalculateSubscriptions(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 4027ms
Test suite progress: tests succeeded: 1, failed: 0, skipped: 0.
Starting test testCreateDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1175ms
Test suite progress: tests succeeded: 2, failed: 0, skipped: 0.
Starting test testCreateDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1205ms
Test suite progress: tests succeeded: 3, failed: 0, skipped: 0.
Starting test testCreateFirewallPolicies(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateFirewallPolicies(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 752ms
Test suite progress: tests succeeded: 4, failed: 0, skipped: 0.
Starting test testCreateFirewallPolicy(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateFirewallPolicy(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 701ms
Test suite progress: tests succeeded: 5, failed: 0, skipped: 0.
Starting test testCreateServer(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateServer(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1718ms
Test suite progress: tests succeeded: 6, failed: 0, skipped: 0.
Starting test testCreateServers(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateServers(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 747ms
Test suite progress: tests succeeded: 7, failed: 0, skipped: 0.
Starting test testEditIP(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditIP(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 2198ms
Test suite progress: tests succeeded: 8, failed: 0, skipped: 0.
Starting test testEditProfileInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditProfileInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 724ms
Test suite progress: tests succeeded: 9, failed: 0, skipped: 0.
Starting test testEditVLAN(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditVLAN(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 2167ms
Test suite progress: tests succeeded: 10, failed: 0, skipped: 0.
Starting test testGetAccountBalance(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetAccountBalance(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 695ms
Test suite progress: tests succeeded: 11, failed: 0, skipped: 0.
Starting test testGetCurrentUsage(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetCurrentUsage(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 776ms
Test suite progress: tests succeeded: 12, failed: 0, skipped: 0.
Starting test testGetIPInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetIPInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1396ms
Test suite progress: tests succeeded: 13, failed: 0, skipped: 0.
Starting test testGetLibraryDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetLibraryDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 9544ms
Test suite progress: tests succeeded: 14, failed: 0, skipped: 0.
Starting test testGetPricing(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetPricing(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 967ms
Test suite progress: tests succeeded: 15, failed: 0, skipped: 0.
Starting test testGetProfileInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetProfileInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 745ms
Test suite progress: tests succeeded: 16, failed: 0, skipped: 0.
Starting test testGetSubscription(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetSubscription(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 3423ms
Test suite progress: tests succeeded: 17, failed: 0, skipped: 0.
Starting test testGetVLANInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetVLANInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 702ms
Test suite progress: tests succeeded: 18, failed: 0, skipped: 0.
Starting test testListDiscounts(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListDiscounts(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 674ms
Test suite progress: tests succeeded: 19, failed: 0, skipped: 0.
Starting test testListIPInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListIPInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 830ms
Test suite progress: tests succeeded: 20, failed: 0, skipped: 0.
Starting test testListIPs(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListIPs(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 694ms
Test suite progress: tests succeeded: 21, failed: 0, skipped: 0.
Starting test testListLibraryDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListLibraryDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1458ms
Test suite progress: tests succeeded: 22, failed: 0, skipped: 0.
Starting test testListLicenses(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListLicenses(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 655ms
Test suite progress: tests succeeded: 23, failed: 0, skipped: 0.
Starting test testListSubscriptions(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListSubscriptions(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 669ms
Test suite progress: tests succeeded: 24, failed: 0, skipped: 0.
Starting test testListTransactions(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListTransactions(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 690ms
Test suite progress: tests succeeded: 25, failed: 0, skipped: 0.
Starting test testListVLANInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListVLANInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 684ms
Test suite progress: tests succeeded: 26, failed: 0, skipped: 0.
Starting test testListVLANs(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListVLANs(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 674ms
Test suite progress: tests succeeded: 27, failed: 0, skipped: 0.
Starting test testCreateTag(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateTag(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 789ms
Test suite progress: tests succeeded: 28, failed: 0, skipped: 0.
Starting test testCreateTags(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testCreateTags(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1093ms
Test suite progress: tests succeeded: 29, failed: 0, skipped: 0.
Starting test testDeleteDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testDeleteDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1518ms
Test suite progress: tests succeeded: 30, failed: 0, skipped: 0.
Starting test testDeleteServers(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testDeleteServers(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1529ms
Test suite progress: tests succeeded: 31, failed: 0, skipped: 0.
Starting test testEditDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 771ms
Test suite progress: tests succeeded: 32, failed: 0, skipped: 0.
Starting test testEditFirewallPolicy(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditFirewallPolicy(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 722ms
Test suite progress: tests succeeded: 33, failed: 0, skipped: 0.
Starting test testEditServer(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditServer(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 844ms
Test suite progress: tests succeeded: 34, failed: 0, skipped: 0.
Starting test testGetDriveInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetDriveInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1504ms
Test suite progress: tests succeeded: 35, failed: 0, skipped: 0.
Starting test testGetServerInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetServerInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 718ms
Test suite progress: tests succeeded: 36, failed: 0, skipped: 0.
Starting test testListDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListDrives(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 691ms
Test suite progress: tests succeeded: 37, failed: 0, skipped: 0.
Starting test testListDrivesInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListDrivesInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 755ms
Test suite progress: tests succeeded: 38, failed: 0, skipped: 0.
Starting test testListFirewallPolicies(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListFirewallPolicies(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 712ms
Test suite progress: tests succeeded: 39, failed: 0, skipped: 0.
Starting test testListFirewallPoliciesInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListFirewallPoliciesInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 710ms
Test suite progress: tests succeeded: 40, failed: 0, skipped: 0.
Starting test testListServers(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListServers(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 714ms
Test suite progress: tests succeeded: 41, failed: 0, skipped: 0.
Starting test testListServersInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListServersInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 718ms
Test suite progress: tests succeeded: 42, failed: 0, skipped: 0.
Starting test testDeleteTags(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testDeleteTags(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 2044ms
Test suite progress: tests succeeded: 43, failed: 0, skipped: 0.
Starting test testDeleteServer(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testDeleteServer(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1559ms
Test suite progress: tests succeeded: 44, failed: 0, skipped: 0.
Starting test testEditTag(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testEditTag(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 779ms
Test suite progress: tests succeeded: 45, failed: 0, skipped: 0.
Starting test testGetTagInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testGetTagInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1320ms
Test suite progress: tests succeeded: 46, failed: 0, skipped: 0.
Starting test testListTags(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListTags(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 649ms
Test suite progress: tests succeeded: 47, failed: 0, skipped: 0.
Starting test testListTagsInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testListTagsInfo(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 808ms
Test suite progress: tests succeeded: 48, failed: 0, skipped: 0.
Starting test testDeleteDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testDeleteDrive(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1500ms
Test suite progress: tests succeeded: 49, failed: 0, skipped: 0.
Starting test testDeleteTag(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest)
[TestNG] Test testDeleteTag(org.jclouds.cloudsigma2.CloudSigma2WashingtonLiveTest) succeeded: 1629ms
Test suite progress: tests succeeded: 50, failed: 0, skipped: 0.
Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 96.175 sec

Results :

Tests run: 50, Failures: 0, Errors: 0, Skipped: 0

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32188452

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Ignasi Barrera <no...@github.com>.
Cool all tests are passing. Thanks @shevchenator!
Merged.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32246314

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Andrew Phillips <no...@github.com>.
Ignasi's comments aside, looks good to me...thanks, @Kentzo!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32069380

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Ignasi Barrera <no...@github.com>.
LGTM, thanks @shevchenator !

Could you format the metadata class so it uses a 120 line length, and also paste the results of the live tests?

    mvn clean install -Plive -pl cloudsigma2-wdc \
        -Dtest.cloudsigma2-wdc.identity=<identity> \
        -Dtest.cloudsigma2-wdc.credential=<credential>

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32021936

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by CloudBees pull request builder plugin <no...@github.com>.
[jclouds-labs-pull-requests #121](https://jclouds.ci.cloudbees.com/job/jclouds-labs-pull-requests/121/) SUCCESS
This pull request looks good

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32018561

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Ignasi Barrera <no...@github.com>.
Done! https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;a=commit;h=839ba25b7ee45b77f78441c1f996c68a99d9f9e1

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48#issuecomment-32257301

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Andrew Phillips <no...@github.com>.
> +    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.labs</groupId>
> +    <artifactId>jclouds-labs</artifactId>
> +    <version>1.8.0-SNAPSHOT</version>
> +  </parent>
> +
> +  <!-- TODO: when out of labs, switch to org.jclouds.provider -->

[minor] `org.apache.jclouds.provider`

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48/files#r8803706

Re: [jclouds-labs] Add CloudSigma v2 Washington DC provider (#48)

Posted by Andrew Phillips <no...@github.com>.
> +   public CloudSigma2WashingtonProviderMetadata() {
> +      super(builder());
> +   }
> +
> +   public CloudSigma2WashingtonProviderMetadata(Builder builder) {
> +      super(builder);
> +   }
> +
> +   public static Properties defaultProperties() {
> +      Properties properties = new Properties();
> +      return properties;
> +   }
> +
> +   public static class Builder
> +         extends
> +         BaseProviderMetadata.Builder {

`public static class Builder extends BaseProviderMetadata.Builder {` in one line? Or is that a specific style preference?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/48/files#r8803763