mirror of https://github.com/apache/jclouds.git
fix update media expect test
This commit is contained in:
parent
1387d9f704
commit
099f9137d0
|
@ -158,8 +158,7 @@ public class MediaClientExpectTest extends BaseVCloudDirectorRestClientExpectTes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: fix this
|
@Test
|
||||||
@Test( enabled=false )
|
|
||||||
public void testUpdateMedia() {
|
public void testUpdateMedia() {
|
||||||
URI mediaUri = URI.create(endpoint + "/media/794eb334-754e-4917-b5a0-5df85cbd61d1");
|
URI mediaUri = URI.create(endpoint + "/media/794eb334-754e-4917-b5a0-5df85cbd61d1");
|
||||||
|
|
||||||
|
@ -383,7 +382,6 @@ public class MediaClientExpectTest extends BaseVCloudDirectorRestClientExpectTes
|
||||||
.build())
|
.build())
|
||||||
.link(Link.builder()
|
.link(Link.builder()
|
||||||
.rel("remove")
|
.rel("remove")
|
||||||
.type("application/vnd.vmware.vcloud.metadata+xml")
|
|
||||||
.href(URI.create("https://mycloud.greenhousedata.com/api/media/c93e5cdc-f29a-4749-8ed2-093df04cc75e"))
|
.href(URI.create("https://mycloud.greenhousedata.com/api/media/c93e5cdc-f29a-4749-8ed2-093df04cc75e"))
|
||||||
.build())
|
.build())
|
||||||
.link(Link.builder()
|
.link(Link.builder()
|
||||||
|
@ -403,6 +401,7 @@ public class MediaClientExpectTest extends BaseVCloudDirectorRestClientExpectTes
|
||||||
.build())
|
.build())
|
||||||
.description("new test description")
|
.description("new test description")
|
||||||
.owner(Owner.builder()
|
.owner(Owner.builder()
|
||||||
|
.type("application/vnd.vmware.vcloud.owner+xml")
|
||||||
.user(Reference.builder()
|
.user(Reference.builder()
|
||||||
.type("application/vnd.vmware.admin.user+xml")
|
.type("application/vnd.vmware.admin.user+xml")
|
||||||
.name("dan")
|
.name("dan")
|
||||||
|
|
|
@ -10,4 +10,4 @@
|
||||||
<Owner type="application/vnd.vmware.vcloud.owner+xml">
|
<Owner type="application/vnd.vmware.vcloud.owner+xml">
|
||||||
<User type="application/vnd.vmware.admin.user+xml" name="dan" href="https://mycloud.greenhousedata.com/api/admin/user/7818d31c-df33-4d77-9bbc-0a0741cf3d44"/>
|
<User type="application/vnd.vmware.admin.user+xml" name="dan" href="https://mycloud.greenhousedata.com/api/admin/user/7818d31c-df33-4d77-9bbc-0a0741cf3d44"/>
|
||||||
</Owner>
|
</Owner>
|
||||||
</Media>
|
</Media>
|
||||||
|
|
Loading…
Reference in New Issue