mirror of https://github.com/usbharu/Hideout.git
test: 不要な変数を削除
This commit is contained in:
parent
6727a1c8da
commit
1ad9eb8e88
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue