File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
java-generator/src/test/java/com/hashicorp/secrets/v1beta1 Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 22
33import io .fabric8 .junit .jupiter .api .KubernetesTest ;
44import io .fabric8 .kubernetes .api .model .HasMetadata ;
5+ import io .fabric8 .kubernetes .api .model .apiextensions .v1 .CustomResourceDefinition ;
56import io .fabric8 .kubernetes .client .KubernetesClient ;
67import io .fabric8 .kubernetes .client .dsl .NonDeletingOperation ;
78import org .junit .jupiter .api .AfterEach ;
9+ import org .junit .jupiter .api .Assumptions ;
810import org .junit .jupiter .api .BeforeEach ;
911import org .junit .jupiter .api .Test ;
1012
@@ -21,6 +23,7 @@ class VaultConnectionTest {
2123
2224 @ BeforeEach
2325 void setUp () throws Exception {
26+ Assumptions .assumeTrue (client .supports (CustomResourceDefinition .class ), "CRDs are not supported in this cluster" );
2427 try (InputStream is = VaultConnectionTest .class .getResourceAsStream ("/vault-connection.yaml" )) {
2528 client .resource (is ).createOr (NonDeletingOperation ::update );
2629 }
You can’t perform that action at this time.
0 commit comments