Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HWKINVENT-90 | fixed Inventory MetricTypes test
Browse files Browse the repository at this point in the history
  • Loading branch information
pavolloffay committed Jul 16, 2015
1 parent fb75fcb commit 1786933
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,16 @@ class InventoryITest extends AbstractTestBase {
assertEquals(201, response.status)
assertEquals(baseURI + "$basePath/resourceTypes/$copyMachineRTypeId", response.headers.Location)


/* Create a metric type */
response = postDeletable(path: "metricTypes", body: [id : responseTimeMTypeId, unit : "MILLI_SECOND"])
response = postDeletable(path: "metricTypes", body: [id : responseTimeMTypeId, unit : "MILLI_SECOND",
type: "COUNTER"])
assertEquals(201, response.status)
assertEquals(baseURI + "$basePath/metricTypes/$responseTimeMTypeId", response.headers.Location)

/* Create another metric type */
response = postDeletable(path: "metricTypes", body: [id : responseStatusCodeMTypeId, unit : "NONE"])
response = postDeletable(path: "metricTypes", body: [id : responseStatusCodeMTypeId, unit : "NONE",
type: "GAUGE"])
assertEquals(201, response.status)
assertEquals(baseURI + "$basePath/metricTypes/$responseStatusCodeMTypeId", response.headers.Location)

Expand Down

0 comments on commit 1786933

Please sign in to comment.