test: 不要な変数を削除

This commit is contained in:
usbharu 2023-12-01 10:50:52 +09:00
parent 6727a1c8da
commit 1ad9eb8e88
1 changed files with 1 additions and 3 deletions

View File

@ -45,15 +45,13 @@ class OAuth2LoginTest {
println("CSRF TOKEN = $attr")
val csrfToken = attr
webTestClient
.post()
.uri("/api/v1/accounts")
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
.body(
BodyInserters.fromFormData("username", "oatuh-login-test")
.with("password", "very-secure-password").with("_csrf", csrfToken)
.with("password", "very-secure-password").with("_csrf", attr)
)
.cookie("JSESSIONID", session)
.exchange()