Thanks @gcbirzan!
The following are the request/response bodies for the create and edit tag
requests.
You'll see that the edit tag request provides, in the resources list, the UUID
of a resource that was already associated (if that is the correct word) with
the tag in the create operation, but the response seems to not return that
resource (only an empty resource list), and that is what is making the test
fail.
Do you know if there is something that should be fixed in jclouds or could it
be a server-side issue? Any feedback is very welcome!
**Create tag request**
{ "meta" : { },
"name" : "Cloudsigma2 Test tag",
"resources" : [ "a390641e-265f-405f-8b23-e85e11fb960f" ]
}
**Create tag response**
{ "objects" : [ { "meta" : { },
"name" : "Cloudsigma2 Test tag",
"owner" : { "resource_uri" :
"/api/2.0/user/e4daa70a-0d5b-4f75-a93c-b7ab9d229875/",
"uuid" : "e4daa70a-0d5b-4f75-a93c-b7ab9d229875"
},
"resource_uri" :
"/api/2.0/tags/1dd3ff35-1d47-4d88-b043-b88aaf24d495/",
"resources" : [ { "owner" : { "resource_uri" :
"/api/2.0/user/e4daa70a-0d5b-4f75-a93c-b7ab9d229875/",
"uuid" : "e4daa70a-0d5b-4f75-a93c-b7ab9d229875"
},
"res_type" : "drives",
"resource_uri" :
"/api/2.0/drives/a390641e-265f-405f-8b23-e85e11fb960f/",
"uuid" : "a390641e-265f-405f-8b23-e85e11fb960f"
} ],
"uuid" : "1dd3ff35-1d47-4d88-b043-b88aaf24d495"
} ] }
**Edit tag request**
{ "meta" : { "description" : "test tag" },
"name" : "Edited tag",
"resources" : [ "a390641e-265f-405f-8b23-e85e11fb960f" ]
}
**Edit tag response**
{ "meta" : { "description" : "test tag" },
"name" : "Edited tag",
"owner" : { "resource_uri" :
"/api/2.0/user/e4daa70a-0d5b-4f75-a93c-b7ab9d229875/",
"uuid" : "e4daa70a-0d5b-4f75-a93c-b7ab9d229875"
},
"resource_uri" : "/api/2.0/tags/1dd3ff35-1d47-4d88-b043-b88aaf24d495/",
"resources" : [ ],
"uuid" : "1dd3ff35-1d47-4d88-b043-b88aaf24d495"
}
**Get tag info response after the edit operation**
{ "meta" : { "description" : "test tag" },
"name" : "Edited tag",
"owner" : { "resource_uri" :
"/api/2.0/user/e4daa70a-0d5b-4f75-a93c-b7ab9d229875/",
"uuid" : "e4daa70a-0d5b-4f75-a93c-b7ab9d229875"
},
"resource_uri" : "/api/2.0/tags/1dd3ff35-1d47-4d88-b043-b88aaf24d495/",
"resources" : [ ],
"uuid" : "1dd3ff35-1d47-4d88-b043-b88aaf24d495"
}
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/41#issuecomment-30134542