Skip to content

Commit

Permalink
Update target URL in service proxy and modify validation test names t…
Browse files Browse the repository at this point in the history
…o 'banana' (#1327)
  • Loading branch information
t-burch authored Nov 5, 2024
1 parent 7ef9352 commit 5cbea03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distribution/examples/validation/form/proxies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<formValidation>
<field name="name" regex="[a-zA-Z]+" />
</formValidation>
<target host="www.thomas-bayer.com" />
<target url="https://api.predic8.de/shop/v2/products" />
</serviceProxy>

</router>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ protected String getExampleDirName() {
@Test
public void test() throws Exception {
try(Process2 ignored = startServiceProxyScript()) {
getAndAssert(400, "http://localhost:2000/?name=Abcde0");
getAndAssert(200, "http://localhost:2000/?name=Abcde");
getAndAssert(400, "http://localhost:2000/?name=banana0");
getAndAssert(200, "http://localhost:2000/?name=banana");
}
}
}

0 comments on commit 5cbea03

Please sign in to comment.