From b686ac295f061685662fcdf2fea20451887e97d9 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 16 May 2024 15:53:17 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=E5=BF=85=E8=A6=81=E3=81=AB=E3=81=AA?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E6=A8=A9=E9=99=90=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/intTest/kotlin/mastodon/account/AccountApiTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hideout-core/src/intTest/kotlin/mastodon/account/AccountApiTest.kt b/hideout-core/src/intTest/kotlin/mastodon/account/AccountApiTest.kt index c936764d..6b482f85 100644 --- a/hideout-core/src/intTest/kotlin/mastodon/account/AccountApiTest.kt +++ b/hideout-core/src/intTest/kotlin/mastodon/account/AccountApiTest.kt @@ -113,6 +113,7 @@ class AccountApiTest { param("email", "test@example.com") param("agreement", "true") param("locale", "") + with(jwt()) with(csrf()) } .asyncDispatch() @@ -129,6 +130,7 @@ class AccountApiTest { contentType = MediaType.APPLICATION_FORM_URLENCODED param("username", "api-test-user-2") param("password", "very-secure-password") + with(jwt()) with(csrf()) } .asyncDispatch() @@ -145,6 +147,7 @@ class AccountApiTest { contentType = MediaType.APPLICATION_FORM_URLENCODED param("password", "api-test-user-3") with(csrf()) + with(jwt()) } .andDo { print() } .andExpect { status { isUnprocessableEntity() } } @@ -158,6 +161,7 @@ class AccountApiTest { contentType = MediaType.APPLICATION_FORM_URLENCODED param("username", "api-test-user-4") with(csrf()) + with(jwt()) } .andExpect { status { isUnprocessableEntity() } } }