Fixes for changes in SPR-15657
Fixes gh-4408
This commit is contained in:
@@ -68,7 +68,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void basicWorks() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/principal")
|
||||
.exchange()
|
||||
@@ -79,7 +81,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void basicWhenPasswordInvalid401() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(invalidPassword())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/principal")
|
||||
.exchange()
|
||||
@@ -90,7 +94,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void authorizationAdmin403() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/admin")
|
||||
.exchange()
|
||||
@@ -101,7 +107,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void authorizationAdmin200() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(adminCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/admin")
|
||||
.exchange()
|
||||
@@ -111,7 +119,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void basicMissingUser401() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(basicAuthentication("missing-user", "password"))
|
||||
.build()
|
||||
.get()
|
||||
.uri("/admin")
|
||||
.exchange()
|
||||
@@ -121,7 +131,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void basicInvalidPassword401() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(invalidPassword())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/admin")
|
||||
.exchange()
|
||||
@@ -141,7 +153,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void sessionWorks() throws Exception {
|
||||
ExchangeResult result = this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/principal")
|
||||
.exchange()
|
||||
@@ -160,7 +174,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void me() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/me")
|
||||
.exchange()
|
||||
@@ -171,7 +187,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void monoMe() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/mono/me")
|
||||
.exchange()
|
||||
@@ -182,7 +200,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void principal() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/principal")
|
||||
.exchange()
|
||||
@@ -193,7 +213,9 @@ public class HelloWebfluxApplicationITests {
|
||||
@Test
|
||||
public void headers() throws Exception {
|
||||
this.rest
|
||||
.mutate()
|
||||
.filter(robsCredentials())
|
||||
.build()
|
||||
.get()
|
||||
.uri("/principal")
|
||||
.exchange()
|
||||
|
||||
Reference in New Issue
Block a user