Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adapt documentation to change in API
[nonrtric.git]
/
policy-agent
/
src
/
test
/
java
/
org
/
oransc
/
policyagent
/
ApplicationTest.java
diff --git
a/policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java
b/policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java
index
4a7adf5
..
9b73892
100644
(file)
--- a/
policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java
+++ b/
policy-agent/src/test/java/org/oransc/policyagent/ApplicationTest.java
@@
-542,7
+542,7
@@
public class ApplicationTest {
// Keep alive
url = "/services/keepalive?name=name";
// Keep alive
url = "/services/keepalive?name=name";
- ResponseEntity<String> entity = restClient().p
ostForEntity(url, nul
l).block();
+ ResponseEntity<String> entity = restClient().p
utForEntity(ur
l).block();
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
// DELETE service
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
// DELETE service
@@
-552,7
+552,7
@@
public class ApplicationTest {
assertThat(services.size()).isEqualTo(0);
// Keep alive, no registerred service
assertThat(services.size()).isEqualTo(0);
// Keep alive, no registerred service
- testErrorCode(restClient().p
os
t("/services/keepalive?name=name", ""), HttpStatus.NOT_FOUND);
+ testErrorCode(restClient().p
u
t("/services/keepalive?name=name", ""), HttpStatus.NOT_FOUND);
// PUT servive with bad payload
testErrorCode(restClient().put("/service", "crap"), HttpStatus.BAD_REQUEST);
// PUT servive with bad payload
testErrorCode(restClient().put("/service", "crap"), HttpStatus.BAD_REQUEST);