-
Notifications
You must be signed in to change notification settings - Fork 9
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
fd79060
commit e5233fe
Showing
3 changed files
with
74 additions
and
2 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
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,41 @@ | ||
meta { | ||
name: NOT_FOUND | ||
type: graphql | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{gqlUrl}} | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
mutation DeleteImage ($filename: String!) { | ||
deleteImage(filename: $filename) { | ||
filename | ||
createdById | ||
createTime | ||
} | ||
} | ||
} | ||
|
||
body:graphql:vars { | ||
{ | ||
"filename": "not found" | ||
} | ||
} | ||
|
||
assert { | ||
res.body.errors: isDefined | ||
res.body.errors[0].extensions.code: eq NOT_FOUND | ||
} | ||
|
||
docs { | ||
## Delete Image | ||
S3 Bucket에 업로드된 이미지를 삭제합니다. | ||
|
||
### Error Cases | ||
#### NOT_FOUND | ||
존재하는 filename을 사용해야 합니다. | ||
} |
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,31 @@ | ||
meta { | ||
name: Succeed | ||
type: graphql | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{gqlUrl}} | ||
body: graphql | ||
auth: none | ||
} | ||
|
||
body:graphql { | ||
mutation DeleteImage ($filename: String!) { | ||
deleteImage(filename: $filename) { | ||
filename | ||
createdById | ||
createTime | ||
} | ||
} | ||
} | ||
|
||
body:graphql:vars { | ||
{ | ||
"filename": "fill this field with filename after executing upload-image api" | ||
} | ||
} | ||
|
||
assert { | ||
res.body.data.deleteImage: isDefined | ||
} |