-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
064c56c
commit edfc5de
Showing
5 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
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 +1,40 @@ | ||
LocalOnly = true # Deployment currently fails when run locally; once that is fixed, remove this setting | ||
|
||
[[Server]] | ||
Pattern = "GET /api/2.0/preview/scim/v2/Me" | ||
Response.Body = ''' | ||
{ | ||
"id": "1000012345", | ||
"userName": "[email protected]" | ||
} | ||
''' | ||
|
||
[[Server]] | ||
Pattern = "GET /api/2.0/workspace/get-status" | ||
Response.Body = ''' | ||
{ | ||
"object_id": 1001, | ||
"path": "", | ||
"object_type": "DIRECTORY", | ||
"resource_id": "1001" | ||
} | ||
''' | ||
|
||
[[Server]] | ||
Pattern = "POST /api/2.0/workspace/mkdirs" | ||
Response.Body = ''' | ||
{ | ||
"error_code": "FORBIDDEN", | ||
"message": "Some error message" | ||
} | ||
''' | ||
|
||
[[Server]] | ||
Pattern = "POST /api/2.0/workspace-files/import-file/" | ||
Response.Body = ''' | ||
{ | ||
"error_code": "RESOURCE_DOES_NOT_EXIST", | ||
"message": "Some error message" | ||
} | ||
''' | ||
Response.StatusCode = 404 |
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
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 +1 @@ | ||
{"method":"POST","path":"/api/2.1/jobs/update","body":{"job_id":0}} | ||
{"method":"POST","path":"/api/2.1/jobs/create","body":{"name":"abc"}} |
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,9 +1,5 @@ | ||
|
||
>>> [CLI] jobs update --json {"name":"abc"} | ||
Warning: unknown field: name | ||
at | ||
in (inline):1:3 | ||
|
||
Error: No stub found for pattern: POST /api/2.1/jobs/update | ||
|
||
Exit code: 1 | ||
>>> [CLI] jobs create --json {"name":"abc"} | ||
{ | ||
"job_id":1111 | ||
} |
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