Skip to content

Commit

Permalink
test: gallery_preview_hurl test에 북마크 부분을 추가한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 22, 2024
1 parent 5f41118 commit eb3668b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data class GalleryPreviewDto(
val nickname: String,
val position: String?,
val job: Job = Job.OTHER,
@JsonProperty("image_url")
val imageUrl: String = "empty_image",
)

Expand Down
23 changes: 23 additions & 0 deletions support/e2e/v1_6_find_gallery_preview.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,29 @@ HTTP 201

##########

GET http://nalab-server:8080/v1/feedbacks # 북마크를 위해 feedback id 저장
Authorization: {{ token_type }} {{ auth_token }}

[QueryStringParams]
survey-id: {{ survey_id }}

HTTP 200
[Asserts]
header "Content-type" == "application/json"

[Captures]
form_question_feedback_id: jsonpath "$.question_feedback.[0].feedbacks.[0].form_question_feedback_id"

##########

PATCH http://nalab-server:8080/v1/feedbacks/bookmarks # 북마크를 진행한다.
Authorization: {{ token_type }} {{ auth_token }}

[QueryStringParams]
form-question-feedback-id: {{form_question_feedback_id}}

##########

GET http://nalab-server:8080/v1/gallerys/previews # 생성된 유저의 Gallery Preview 조회
Authorization: {{ token_type }} {{ auth_token }}

Expand Down

0 comments on commit eb3668b

Please sign in to comment.