-
Notifications
You must be signed in to change notification settings - Fork 23
Commit a68ab11
authored
Added Happy and Sad Path tests for restful e-commerce APIs (#24)
* updated date format in booking data builder
* added example for post api
* added log4j for logging response details, added helper method to print log response details
* added tests for get all order and get orders using order id, user id as params
* added token generation and update order tests, modified the assertions for get order tests
* handled blank and empty response body while response log generation and added tests for partial update and delete orders
* updated Helper class name to Logger
* added docker compose file for restful ecommerce, updated testng.xml and maven.yml to run restfulecommerce tests in github actions
* updated docker compose to use service-ports
* updated the baseurl for running tests in github actions
* updated baseurl for ecommerce
* updated github actions hosted runner to macos
* added amd64 docker image and updated yml workflow to use ubuntu latest
* added steps to start docker service for restful ecommerce app
* added gson dependency in pom, added sadpathtest class, updated logger, update happy path tests
* updated sad path scenario assertions and corrected spelling mistake in message text recevied in response
* updated happy and sad path tests1 parent 3d37eec commit a68ab11
File tree
16 files changed
+828
-8
lines changed- .github/workflows
- public/results
- src
- main/resources
- test/java/io/github/mfaisalkhatri/api
- restfulbooker/data
- restfulecommerce
- testdata
- test-suite
16 files changed
+828
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | + | ||
41 | + | ||
42 | + | ||
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
52 | + | ||
53 | + | ||
54 | + | ||
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | - | ||
15 | + | ||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | + | ||
21 | 22 | | |
23 | + | ||
24 | + | ||
25 | + | ||
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
57 | 81 | | |
58 | 82 | | |
59 | 83 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | - | ||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | - | ||
28 | - | ||
29 | - | ||
30 | - | ||
31 | - | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
0 commit comments