Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 9689f5f

Browse files
schaudersdeleuze
authored andcommitted
Improve the verify step for the petclinic-jpa sample.
The previous verify.sh just accessed the home page ignoring pretty much all repository methods including those that are very suitable for finding problems with hints and similar. Now we access a small collection of end points in order to exercise those repository methods.
1 parent 9e4dc87 commit 9689f5f

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed
+19-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
#!/usr/bin/env bash
22
RESPONSE=`curl -s localhost:8080`
3-
if [[ $RESPONSE == *"Welcome"* ]]; then
4-
exit 0
5-
else
3+
if [[ $RESPONSE != *"Welcome"* ]]; then
64
exit 1
75
fi
6+
7+
RESPONSE=`curl -s http://localhost:8080/owners/7`
8+
if [[ $RESPONSE != *"Jeff Black"* ]]; then
9+
exit 2
10+
fi
11+
12+
RESPONSE=`curl -s http://localhost:8080/vets.html`
13+
if [[ $RESPONSE != *"James Carter"* ]]; then
14+
exit 3
15+
fi
16+
17+
RESPONSE=`curl -Ls "http://localhost:8080/owners?lastName=Frank"`
18+
if [[ $RESPONSE != *"George Franklin"* ]]; then
19+
exit 4
20+
fi
21+
22+
exit 0
23+

0 commit comments

Comments
 (0)