diff options
author | 2018-04-10 16:47:12 -0400 | |
---|---|---|
committer | 2018-04-10 16:50:22 -0400 | |
commit | 2ddf6124677b86e5c77d95f2f5fc32b0a8bf2a95 (patch) | |
tree | d1c4c85e81d8abc101344dcbf91a70123a748ccc /cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java | |
parent | 0d5a85cf357acf923d056264253189a0f416b71c (diff) |
Cloudify REST Client unit tests II
Adding tests missed in previous commit
Change-Id: I72762b1a598b4326710f8cbbc5a5588ee871a48a
Issue-ID: SO-489
Signed-off-by: Arthur Martella <amartell@research.att.com>
Diffstat (limited to 'cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java')
-rw-r--r-- | cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java b/cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java index ec7435fca5..5e443a5c69 100644 --- a/cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java +++ b/cloudify-client/src/test/java/org/openecomp/mso/cloudify/v3/client/BlueprintsResourceTest.java @@ -128,5 +128,20 @@ public class BlueprintsResourceTest { assertEquals("123", b.getId()); } + @Test + public void cloudifyClientBlueprintGetMetadataById() { + wireMockRule.stubFor(get(urlPathEqualTo("/api/v3/blueprints/")).willReturn(aResponse().withHeader("Content-Type", "application/json") + .withBody("{\"id\": \"123\"}") + .withStatus(HttpStatus.SC_OK))); + + int port = wireMockRule.port(); + + Cloudify c = new Cloudify("http://localhost:"+port, "tenant"); + BlueprintsResource br = c.blueprints(); + GetBlueprint gb = br.getMetadataById("123"); + Blueprint b = gb.execute(); + assertEquals("123", b.getId()); + } + } |