-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Second try to update connect/site-info mock response to return differ…
…ent response on a non wp site.
- Loading branch information
1 parent
0a1803f
commit 2b6c9a1
Showing
3 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
WooCommerce/src/androidTest/assets/mocks/mappings/sites/site-info-not-a-wordpress-site.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"urlPath": "/rest/v1.1/connect/site-info/", | ||
"queryParameters": { | ||
"url": { | ||
"matches": ".*notawpsite.com.*" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"exists": true, | ||
"isWordPress": false, | ||
"hasJetpack": false, | ||
"isJetpackActive": false, | ||
"isJetpackConnected": false, | ||
"isWordPressDotCom": false, | ||
"urlAfterRedirects": "", | ||
"jetpackVersion": false | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"Connection": "keep-alive", | ||
"Cache-Control": "no-cache, must-revalidate, max-age=0" | ||
} | ||
} | ||
} |
45 changes: 25 additions & 20 deletions
45
WooCommerce/src/androidTest/assets/mocks/mappings/sites/site-info-wordpress-com.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"urlPath": "/rest/v1.1/connect/site-info/" | ||
"request": { | ||
"method": "GET", | ||
"urlPath": "/rest/v1.1/connect/site-info/", | ||
"queryParameters": { | ||
"url": { | ||
"matches": ".*automatticwidgets.wpcomstaging.com.*" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"exists": true, | ||
"isWordPress": true, | ||
"hasJetpack": true, | ||
"isJetpackActive": true, | ||
"isJetpackConnected": true, | ||
"isWordPressDotCom": true, | ||
"urlAfterRedirects": "https:\/\/automatticwidgets.wpcomstaging.com", | ||
"jetpackVersion": false | ||
}, | ||
"response": { | ||
"status": 200, | ||
"jsonBody": { | ||
"exists": true, | ||
"isWordPress": true, | ||
"hasJetpack": true, | ||
"isJetpackActive": true, | ||
"isJetpackConnected": true, | ||
"isWordPressDotCom": true, | ||
"urlAfterRedirects": "https:\/\/automatticwidgets.wpcomstaging.com", | ||
"jetpackVersion": false | ||
}, | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"Connection": "keep-alive", | ||
"Cache-Control": "no-cache, must-revalidate, max-age=0" | ||
} | ||
"headers": { | ||
"Content-Type": "application/json", | ||
"Connection": "keep-alive", | ||
"Cache-Control": "no-cache, must-revalidate, max-age=0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters