File tree Expand file tree Collapse file tree 2 files changed +37
-35
lines changed
cloudfoundry-client/src/test/java/org/cloudfoundry/client/v3/routes Expand file tree Collapse file tree 2 files changed +37
-35
lines changed Original file line number Diff line number Diff line change @@ -98,31 +98,32 @@ void valid() {
9898
9999 @ Test
100100 void validWithRouteOptions () {
101- CreateRouteRequest request = CreateRouteRequest .builder ()
102- .relationships (
103- RouteRelationships .builder ()
104- .domain (
105- ToOneRelationship .builder ()
106- .data (
107- Relationship .builder ()
108- .id ("test-domain-id" )
109- .build ())
110- .build ())
111- .space (
112- ToOneRelationship .builder ()
113- .data (
114- Relationship .builder ()
115- .id ("test-space-id" )
116- .build ())
117- .build ())
118- .build ())
119- .options (
120- RouteOptions .builder ()
121- .value ("loadbalancing" , "hash" )
122- .value ("hash_header" , "X-Hash" )
123- .value ("hash_balance" , "90" )
124- .build ())
125- .build ();
101+ CreateRouteRequest request =
102+ CreateRouteRequest .builder ()
103+ .relationships (
104+ RouteRelationships .builder ()
105+ .domain (
106+ ToOneRelationship .builder ()
107+ .data (
108+ Relationship .builder ()
109+ .id ("test-domain-id" )
110+ .build ())
111+ .build ())
112+ .space (
113+ ToOneRelationship .builder ()
114+ .data (
115+ Relationship .builder ()
116+ .id ("test-space-id" )
117+ .build ())
118+ .build ())
119+ .build ())
120+ .options (
121+ RouteOptions .builder ()
122+ .value ("loadbalancing" , "hash" )
123+ .value ("hash_header" , "X-Hash" )
124+ .value ("hash_balance" , "90" )
125+ .build ())
126+ .build ();
126127
127128 assertEquals ("hash" , request .getOptions ().getLoadbalancing ().get ());
128129 assertEquals ("X-Hash" , request .getOptions ().getHashHeader ().get ());
Original file line number Diff line number Diff line change @@ -43,16 +43,17 @@ void valid() {
4343
4444 @ Test
4545 void validWithRouteOptions () {
46- UpdateRouteRequest request = UpdateRouteRequest .builder ()
47- .metadata (Metadata .builder ().label ("test-key" , "test-value" ).build ())
48- .options (
49- RouteOptions .builder ()
50- .value ("loadbalancing" , "hash" )
51- .value ("hash_header" , "X-Hash" )
52- .value ("hash_balance" , "90" )
53- .build ())
54- .routeId ("test-route-id" )
55- .build ();
46+ UpdateRouteRequest request =
47+ UpdateRouteRequest .builder ()
48+ .metadata (Metadata .builder ().label ("test-key" , "test-value" ).build ())
49+ .options (
50+ RouteOptions .builder ()
51+ .value ("loadbalancing" , "hash" )
52+ .value ("hash_header" , "X-Hash" )
53+ .value ("hash_balance" , "90" )
54+ .build ())
55+ .routeId ("test-route-id" )
56+ .build ();
5657
5758 assertEquals ("hash" , request .getOptions ().getLoadbalancing ().get ());
5859 assertEquals ("X-Hash" , request .getOptions ().getHashHeader ().get ());
You can’t perform that action at this time.
0 commit comments