commit | 8d0764095284bebf23d124c24b5f282312df0f65 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Mon Aug 31 15:43:18 2015 -0700 |
committer | Ray Milkey <ray@onlab.us> | Thu Sep 03 17:52:54 2015 +0000 |
tree | fb76f61334f5b43a50dd4f004110e89237a43e55 | |
parent | b4e5cbee7b1c7a8995c6f0a76a88c8310a776ed1 [diff] [blame] |
Set the location string correctly for intent POST operations Change-Id: I7ddb98ca1c5e87fc0fe34c79c5499047e599191f
diff --git a/web/api/src/test/java/org/onosproject/rest/IntentsResourceTest.java b/web/api/src/test/java/org/onosproject/rest/IntentsResourceTest.java index 4943705..33ee931 100644 --- a/web/api/src/test/java/org/onosproject/rest/IntentsResourceTest.java +++ b/web/api/src/test/java/org/onosproject/rest/IntentsResourceTest.java
@@ -400,7 +400,7 @@ .post(ClientResponse.class, jsonStream); assertThat(response.getStatus(), is(HttpURLConnection.HTTP_CREATED)); String location = response.getLocation().getPath(); - assertThat(location, Matchers.startsWith("/intents/2/")); + assertThat(location, Matchers.startsWith("/intents/myApp/")); } /**