+@AutoValue
+public abstract class VMImage {
+
+ @AutoValue
+ public abstract static class OSDiskConfiguration {
+
+ public enum Caching {
+ READ_ONLY,
+ READ_WRITE,
+ NONE
+ }
+
+ public enum OSState {
+ GENERALIZED,
+
+ public abstract String name();
+
+ /**
+ * Specifies the caching behavior of the operating system disk.
+ * This setting impacts the consistency and performance of the disk.
+ * The default value is ReadWrite
+ */
+ @Nullable public abstract Caching
+
+ @Nullable public abstract URI iconUri();
+
+ @Nullable public abstract URI smallIconUri();
+
+ @Nullable public abstract URI privacyUri();
+
+ @Nullable public abstract Date publishedDate();
+
+ public static VMImage create(String name, String label, String category,
+ }
+
+ public Builder fromVMImageParams(VMImageParams in) {
+ return
name(in.name()).label(in.label()).description(in.description())
+
.osDiskConfiguration(in.osDiskConfiguration()).dataDiskConfigurations(in.dataDiskConfiguration())
+
+ public abstract String name();
+
+ /**
+ * Specifies the caching behavior of the operating system disk.
+ * This setting impacts the consistency and performance of the disk.
+ * The default value is ReadWrite
+ */
+ @Nullable public abstract Caching
+
+ private VMImage.OSDiskConfiguration.Caching hostCaching;
+ private String name;
+ private VMImage.OSDiskConfiguration.OSState osState;
+ private OSImage.Type os;
+ private Integer logicalDiskSizeInGB;
+ private URI mediaLink;
+ private String ioType;
+
+ private final
+ groupIdcom.google.auto.service/groupId
+ artifactIdauto-service/artifactId
+ scopeprovided/scope
+ /dependency
+ dependency
+ groupIdcom.google.auto.value/groupId
+ artifactIdauto-value/artifactId
+ version1.0/version
+
+ String stackName = getName();
+ CreateStack createStack =
CreateStack.builder().name(stackName).templateUrl(TEMPLATE_URL).build();
+ Stack stack = stackApi.create(createStack);
+ assertThat(stack).isNotNull();
+
+*/
+ @Named(UpdateVMImage)
+ @PUT
+ @Path(/{imageName})
+ @Produces(APPLICATION_XML)
+ @ResponseParser(ParseRequestIdHeader.class) String update(String
imageName,
+ @BinderParam(VMImageParamsToXML.class) VMImageParams params);
+
+ /**
+* The Delete VM Image
+ return new
AutoValue_CreateStack.Builder().disableRollback(true).files(null).environment(null);
+ }
+
+ public Builder toBuilder() {
+ return builder()
+.name(getName())
+.template(getTemplate())
+.templateUrl(getTemplateUrl())
+
+ * @param environment - used to affect the runtime behaviour of the
template
+ */
+ public Builder environment(String environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ public CreateStack build() {
+ CreateStack
+.template(template)
+.templateUrl(templateUrl)
+.parameters(parameters)
+.disableRollback(disableRollback)
+.files(files)
+.environment(environment).build();
+ }
+
+ public static final class Builder {
+
+
+/**
+ * Tests parsing and Guice wiring of StackApi
+ */
+@Test(groups = live, testName = StackApiLiveTest)
+public class StackApiLiveTest extends BaseHeatApiLiveTest {
+
+ public static final String TEMPLATE_URL =
http://10.5.5.121/Installs/cPaaS/YAML/simple_stack.yaml;;
+ protected
Test failures seem to be due to auth issues. Are you using the mentioned custom
image?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/145#issuecomment-93447771
+Storage.Request.connectingBuilder()
+.storageId(storageId)
+.serverId(serverId)
+.build());
+
+waitDcUntilAvailable.apply(dataCenterId);
+logger.trace( storage connected.);
+ }
+ * @see a
href=https://msdn.microsoft.com/en-us/library/azure/dn499771.aspx;docs/a
+ */
+@Path(/services/vmimages)
+@Consumes(APPLICATION_XML)
+@Headers(keys = x-ms-version, values = {jclouds.api-version})
+public interface VMImageApi {
+
+
+ /**
+* The List VM Images operation
+ @GET
+ @SelectJson(stack)
+ @Path(/{id})
+ @Fallback(NullOnNotFoundOr404.class)
+ Stack get(@PathParam(id) String stackId);
+
+ @Named(stack:create)
+ @POST
+ @SelectJson(stack)
+ Stack create(@BinderParam(BindToJsonPayload.class) CreateStack options);
+
+
+ @Nullable public abstract String getSatusReason();
+
+ /**
+* @return the date this Stack was created.
+*/
+ @Nullable public abstract Date getCreated();
+
+ /**
+* @return the date this Stack was last updated.
+*/
+ @Nullable public abstract Date
+ this.templateUrl = templateUrl;
+ return this;
+ }
+
+ /**
+ * @see UpdateStack#getParameters()
+ */
+ public Builder parameters(MapString, Object parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+
+ MapString, Object metadata =
api.getStackResourceMetadata(TEST_STACK_NAME, TEST_STACK_ID,
RESOURCES_TEST_NAME);
+
+ /*
+ * Check request
+ */
+ assertEquals(server.getRequestCount(), 2);
+ assertAuthentication(server);
+
@hsbhathiya I think it looks good, only minor comments from my side.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/167#issuecomment-93453856
+ @Nullable public abstract Date getCreated();
+
+ /**
+* @return the date this Stack was last updated.
+*/
+ @Nullable public abstract Date getUpdated();
+
+ /**
+* @return the timeout of this Stack (in minutes).
+*/
+ @Nullable public abstract int
+ @Named(stack:create)
+ @POST
+ @SelectJson(stack)
+ Stack create(@BinderParam(BindToJsonPayload.class) CreateStack options);
+
+ @Named(stack:delete)
+ @DELETE
+ @Path(/{stack_name}/{stack_id})
+ @Fallback(NullOnNotFoundOr404.class)
+ @Nullable
+ boolean
+ return this;
+ }
+
+ /**
+ * @param environment - used to affect the runtime behaviour of the
template
+ */
+ public Builder environment(String environment) {
+ this.environment = environment;
+ return this;
+ }
+
+
+ return builder()
+.name(name)
+.template(template)
+.templateUrl(templateUrl)
+.parameters(parameters)
+.disableRollback(disableRollback)
+.files(files)
+.environment(environment).build();
+ }
+
Also add the mock and live tests for the method you added to the
`VirtualMachineApi`.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/167#issuecomment-93456947
@zack-shoylev @everett-toews Can you have a final look and merge this?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/697#issuecomment-93421112
+
+ /*
+ * Check request
+ */
+ assertThat(server.getRequestCount()).isEqualTo(2);
+ assertAuthentication(server);
+ assertRequest(server.takeRequest(), GET, BASE_URI + /stacks);
+
+ /*
+ * Check response
+ */
+.language(en)
+.eula(http://www.gnu.org/copyleft/gpl.html;)
+
.iconUri(URI.create(http://www.cloudera.com/content/cloudera/en/privacy-policy.html;))
+
@RequestFilters(AuthenticateRequest.class)
@Consumes(MediaType.APPLICATION_JSON)
@Path(/servers)
-public interface AttachInterfaceApi {
+public interface InterfaceApi {
Will this be backported? It seems like a breaking change for existing code.
---
Reply to this email directly or view it
+1
Thanks @nacx
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/730#issuecomment-93467176
+
VMImageParams.OSDiskConfigurationParams.Caching.READ_ONLY,
+
VMImageParams.OSDiskConfigurationParams.OSState.SPECIALIZED,
+image.osDiskConfiguration().os(),
+URI.create(
+
[
https://issues.apache.org/jira/browse/JCLOUDS-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ignasi Barrera resolved JCLOUDS-683.
Resolution: Fixed
Fix Version/s: 2.0.0
Promote oauth API
-
Just one live test should be enough to show its working. Thanks for doing this!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/136#issuecomment-93556511
I can confirm it is working then :) I plan to spend some time this week working
on the GCE provider. Let's see if we can get it promoted too! Thanks for the
feedback!
---
Reply to this email directly or view it on GitHub:
rebuild please
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/136#issuecomment-93551393
Did you run live tests?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/136#issuecomment-93553884
[
https://issues.apache.org/jira/browse/JCLOUDS-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14496788#comment-14496788
]
Ignasi Barrera commented on JCLOUDS-683:
And the second part:
Note that this PR will fail the build until the snapshots from the recently
merged PR in the main repo are published to the ASP snapshot repository.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/136#issuecomment-93545944
https://issues.apache.org/jira/browse/JCLOUDS-683
You can view, comment on, or merge this pull request online at:
https://github.com/jclouds/jclouds-labs-google/pull/136
-- Commit Summary --
* Use OAuth from the main repo
-- File Changes --
M googlecloud/pom.xml (4)
D oauth/README
Thanks @hsbhathiya ! Looks good. Only missing the mock tests for the new api
method.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/155#issuecomment-93548988
Merged and backported to 1.9.x. Thanks!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/137#issuecomment-93585172
Merged and backported to 1.9.x
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/731#issuecomment-93585438
See https://jclouds.ci.cloudbees.com/job/jclouds-1.9.x-branch/16/changes
Changes:
[Ignasi Barrera] Exclude Eclipse annotation processor files that are git ignored
--
Started by an SCM change
Building remotely on 8e010172 (lxc-fedora17 standard m1.large
See https://jclouds.ci.cloudbees.com/job/jclouds-karaf/1124/
--
Started by upstream project jclouds build number 3050
originally caused by:
Started by upstream project jclouds-labs-openstack build number 738
originally caused by:
Started by upstream
See https://jclouds.ci.cloudbees.com/job/jclouds-karaf/1125/
See
https://jclouds.ci.cloudbees.com/job/jclouds-guava-17-18/GUAVA_VERSION=17.0,jdk=OpenJDK%207%20(latest)/188/
--
[...truncated 19744 lines...]
at java.lang.Thread.run(Thread.java:744)
ERROR: , completed: 0/2, errors: 1, rate: 0ms/op
Running the live tests, the only tests that failed were the health check ones.
The cause was the following:
```json
errors: [
{
domain: global,
reason: invalid,
message: Invalid value for field 'resource.unhealthyThreshold': '15'.
Must be less than or equal to 10
},
{
[
https://issues.apache.org/jira/browse/JCLOUDS-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14497075#comment-14497075
]
Ignasi Barrera commented on JCLOUDS-861:
Are you using password or public key
You can view, comment on, or merge this pull request online at:
https://github.com/jclouds/jclouds/pull/731
-- Commit Summary --
* Exclude Eclipse annotation processor files that are git ignored
-- File Changes --
M project/pom.xml (2)
-- Patch Links --
See https://jclouds.ci.cloudbees.com/job/jclouds-cli/559/
See
https://jclouds.ci.cloudbees.com/job/jclouds-guava-17-18/GUAVA_VERSION=17.0,jdk=OpenJDK%207%20(latest)/189/
@nacx all comments should be addressed.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/166#issuecomment-93610419
Zack Shoylev created JCLOUDS-888:
Summary: Add examples for rackspace cloudnetworks in
jclouds-examples
Key: JCLOUDS-888
URL: https://issues.apache.org/jira/browse/JCLOUDS-888
Project: jclouds
+Storage.Request.connectingBuilder()
+.storageId(storageId)
+.serverId(serverId)
+.build());
+
+waitDcUntilAvailable.apply(dataCenterId);
+logger.trace( storage connected.);
+ }
See https://jclouds.ci.cloudbees.com/job/jclouds-cli/558/
--
[...truncated 121 lines...]
[INFO]
[INFO] --- maven-enforcer-plugin:1.1.1:enforce (enforce-banned-dependencies) @
jclouds-cli-project ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.1.1:enforce
Happy to help!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/20#issuecomment-93213658
[Live test
results](https://gist.github.com/devcsrj/828e5be44a54f5217cbd/60eca3d2eb1fe1d07bfdec1c9c41ec03d0458059).
`Tests run: 25, Failures: 3, Errors: 0, Skipped: 10, at 38:40.672s`
---
Reply to this email directly or view it on GitHub:
[
https://issues.apache.org/jira/browse/JCLOUDS-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14495920#comment-14495920
]
Ignasi Barrera commented on JCLOUDS-683:
Pull request to promote the API:
+import static org.testng.Assert.assertNotNull;
+
+import org.jclouds.shipyard.domain.roles.RoleInfo;
+import org.jclouds.shipyard.internal.BaseShipyardApiLiveTest;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.Test;
+
+@Test(groups = live, testName =
+ RoleInfo role = api().getRole(roleName);
+ assertNotNull(role, Role was not set);
+ assertTrue(role.name().equals(roleName), Found Role name does not
match expected name: found= + role.name() + , expected= + roleName);
+ }
+
+ @Test (dependsOnMethods = testGetRole)
+public abstract class CreateAccount {
+
+ public abstract String username();
+
+ public abstract String password();
+
+ public abstract CreateRole role();
+
+ CreateAccount() {
+ }
+
+ @SerializedNames({ username, password, role})
+ public static CreateAccount
+
+ public void testCreateAccount() throws Exception {
+ api().createAccount(CreateAccount.create(username, password, null));
+ }
+
+ @Test (dependsOnMethods = testCreateAccount)
+ public void testListAccounts() throws Exception {
+ ListAccountInfo possibleAccounts =
+import org.jclouds.shipyard.domain.accounts.AccountInfo;
+import org.jclouds.shipyard.domain.accounts.CreateAccount;
+import org.jclouds.shipyard.internal.BaseShipyardApiLiveTest;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.Test;
+
+@Test(groups = live,
+
+ public void testDeleteRole() throws Exception {
+ MockWebServer server = mockShipyardWebServer();
+ server.enqueue(new MockResponse().setResponseCode(204));
+ ShipyardApi shipyardApi = api(server.getUrl(/));
+ RolesApi api = shipyardApi.rolesApi();
+ try {
Thanks @cdancy!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/165#issuecomment-93317048
https://issues.apache.org/jira/browse/JCLOUDS-683
Promotes the OAuth v2 API from the jclouds-labs-google repository.
It respects the commit history (details
[here](https://cwiki.apache.org/confluence/display/JCLOUDS/How+to+Promote+a+Provider)).
The important commits are the last two commits:
```
Tests run: 98, Failures: 0, Errors: 0, Skipped: 2
[...]
[INFO] Total time: 01:24 h
```
Looks good! @nacx @andreaturli could you please review this PR?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/167#issuecomment-93259276
Closed #73.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/73#event-281856907
69 matches
Mail list logo