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")
|
println("CSRF TOKEN = $attr")
|
||||||
|
|
||||||
val csrfToken = attr
|
|
||||||
|
|
||||||
webTestClient
|
webTestClient
|
||||||
.post()
|
.post()
|
||||||
.uri("/api/v1/accounts")
|
.uri("/api/v1/accounts")
|
||||||
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
|
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
|
||||||
.body(
|
.body(
|
||||||
BodyInserters.fromFormData("username", "oatuh-login-test")
|
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)
|
.cookie("JSESSIONID", session)
|
||||||
.exchange()
|
.exchange()
|
||||||
|
|
Loading…
Reference in New Issue