Skip to content

Commit 6a02b8d

Browse files
authored
Merge pull request #12 from AITestingOrg/add-userservice-to-properties
Added userservice route to application.yml
2 parents 4c74848 + f6b6227 commit 6a02b8d

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.gradle
22
/build/
33
!gradle/wrapper/gradle-wrapper.jar
4+
/out/
45

56
### STS ###
67
.apt_generated

build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,11 @@ dependencyManagement {
6868
checkstyle {
6969
toolVersion = "8.7"
7070
configFile = new File(rootDir, "checkstyle.xml")
71+
}
72+
73+
test {
74+
testLogging {
75+
events "failed"
76+
exceptionFormat "full"
77+
}
7178
}

src/main/resources/application.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ zuul:
1515
trip-query:
1616
path: /trip/query/**
1717
url: http://tripmanagementquery:8080/api
18+
userservice:
19+
path: /userservice/**
20+
url: http://userservice:8080/
21+
sensitiveHeaders: Cookie,Set-Cookie
1822
security:
1923
oauth2:
2024
resource:
21-
userInfoUri: http://localhost:8080/uaa/user
25+
userInfoUri: http://userservice:8080/auth/user
2226
ignored: /catalog/**
2327
eureka:
2428
instance:
@@ -46,10 +50,14 @@ zuul:
4650
trip-query:
4751
path: /trip/query/**
4852
url: http://tripmanagementquery:8080/api
53+
userservice:
54+
path: /userservice/**
55+
url: http://userservice:8080/
56+
sensitiveHeaders: Cookie,Set-Cookie
4957
security:
5058
oauth2:
5159
resource:
52-
userInfoUri: http://localhost:8181/uaa/user
60+
userInfoUri: http://userservice:8080/auth/user
5361
ignored: /catalog/**
5462
eureka:
5563
instance:

src/test/java/aist/edge/edgeservice/EdgeServiceIntegrationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ public void gmapsAdapterRequestSuccess() {
211211
headers.add("Authorization", "Bearer " + token);
212212
headers.add("Content-Type", "application/json");
213213

214-
String body = "{ \"origin\": \"Weston, FL\", \"destination\": \"Miami, FL\", \"departureTime\": \"15220998650000000\" }";
214+
String body = "{ \"origin\": \"Weston, FL\", \"destination\": \"Miami, FL\","
215+
+ " \"departureTime\": \"15220998650000000\" }";
215216
HttpEntity<String> request = new HttpEntity<>(body, headers);
216217

217218
//when:

0 commit comments

Comments
 (0)