Skip to content

Commit

Permalink
route companypage usage table to fake data
Browse files Browse the repository at this point in the history
  • Loading branch information
benzuzu committed Mar 21, 2024
1 parent 9f33e18 commit 41576e4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions screenshot-test/App.screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ function getMockResponse(url) {
body: usageUserDetail,
};
break;
case `${SERVER_URL}api/usage/users/4`:
res = {
status: 200,
contentType: 'application/json',
body: usageUserDetail,
};
break;
case `${SERVER_URL}api/usage/resources?endpoint=%2Fapi%2Fv1%2Fexample`:
res = {
status: 200,
Expand Down
20 changes: 20 additions & 0 deletions screenshot-test/data/api-usage-users-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,26 @@
"company" : "MSKCC",
"summary" : {
"day" : {
"2021-04-01" : {
"/api/example/endpoint10" : 1.0,
"/api/example/endpoint11" : 12340.0,
"/api/example/endpoint12" : 832461.0
},
"2021-03-01" : {
"/api/example/endpoint10" : 1.0,
"/api/example/endpoint11" : 123490.0,
"/api/example/endpoint12" : 8324461.0
},
"2021-02-01" : {
"/api/example/endpoint10" : 1.0,
"/api/example/endpoint11" : 123490.0,
"/api/example/endpoint12" : 8324461.0
},
"2021-01-01" : {
"/api/example/endpoint10" : 1.0,
"/api/example/endpoint11" : 123490.0,
"/api/example/endpoint12" : 8324461.0
},
"2020-12-01" : {
"/api/example/endpoint1" : 2.0,
"/api/example/endpoint2" : 3.0,
Expand Down

0 comments on commit 41576e4

Please sign in to comment.