mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 23:11:10 +00:00
test: 不要な変数を削除
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user