1717package org .cloudfoundry .operations ;
1818
1919import org .cloudfoundry .AbstractIntegrationTest ;
20+ import org .cloudfoundry .CloudFoundryVersion ;
21+ import org .cloudfoundry .IfCloudFoundryVersion ;
2022import org .cloudfoundry .client .CloudFoundryClient ;
2123import org .cloudfoundry .client .v2 .applications .CreateApplicationRequest ;
2224import org .cloudfoundry .client .v2 .applications .CreateApplicationResponse ;
@@ -45,6 +47,7 @@ public final class NetworkPoliciesTest extends AbstractIntegrationTest {
4547 @ Autowired
4648 private Mono <String > spaceId ;
4749
50+ @ IfCloudFoundryVersion (greaterThanOrEqualTo = CloudFoundryVersion .PCF_1_12 )
4851 @ Test
4952 public void add () throws TimeoutException , InterruptedException {
5053 String destinationApplicationName = this .nameFactory .getApplicationName ();
@@ -70,6 +73,7 @@ public void add() throws TimeoutException, InterruptedException {
7073 .verify (Duration .ofMinutes (5 ));
7174 }
7275
76+ @ IfCloudFoundryVersion (greaterThanOrEqualTo = CloudFoundryVersion .PCF_1_12 )
7377 @ Test
7478 public void list () throws TimeoutException , InterruptedException {
7579 String destinationApplicationName = this .nameFactory .getApplicationName ();
@@ -93,6 +97,7 @@ public void list() throws TimeoutException, InterruptedException {
9397 .verify (Duration .ofMinutes (5 ));
9498 }
9599
100+ @ IfCloudFoundryVersion (greaterThanOrEqualTo = CloudFoundryVersion .PCF_1_12 )
96101 @ Test
97102 public void remove () throws TimeoutException , InterruptedException {
98103 String destinationApplicationName = this .nameFactory .getApplicationName ();
0 commit comments