Skip to content

Commit cc3fbdf

Browse files
authored
Collect more resources when test fails (#107)
Signed-off-by: David Kornel <[email protected]>
1 parent 0813f24 commit cc3fbdf

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/main/java/io/streams/constants/KubeResourceConstants.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package io.streams.constants;
66

77
public interface KubeResourceConstants {
8-
// Kubernetes default resoruces
8+
// Kubernetes default resources
99
String DEPLOYMENT = "deployment";
1010
String SUBSCRIPTION = "subscription";
1111
String OPERATOR_GROUP = "operatorgroup";
@@ -18,6 +18,12 @@ public interface KubeResourceConstants {
1818
String NODE = "node";
1919
String PV = "pv";
2020
String PVC = "pvc";
21+
String STATEFUL_SET = "statefulset";
22+
String REPLICA_SET = "replicasets";
23+
String SERVICE = "service";
24+
String ROUTE = "route";
25+
String NETWORK_POLICY = "networkpolicies";
26+
String INGRESS = "ingress";
2127

2228
// Custom resources
2329
String FLINK_DEPLOYMENT = "FlinkDeployment";

src/main/java/io/streams/listeners/TestExceptionCallbackListener.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ private void saveKubernetesState(ExtensionContext context, Throwable throwable)
8585
KubeResourceConstants.ROLE_BINDING,
8686
KubeResourceConstants.SERVICE_ACCOUNT,
8787
KubeResourceConstants.PVC,
88+
KubeResourceConstants.STATEFUL_SET,
89+
KubeResourceConstants.REPLICA_SET,
90+
KubeResourceConstants.SERVICE,
91+
KubeResourceConstants.ROUTE,
92+
KubeResourceConstants.INGRESS,
93+
KubeResourceConstants.NETWORK_POLICY,
8894
Kafka.RESOURCE_SINGULAR,
8995
KafkaNodePool.RESOURCE_SINGULAR,
9096
KafkaConnect.RESOURCE_SINGULAR,

0 commit comments

Comments
 (0)