Add FailLogger to monitor tests
@@ -67,6 +67,8 @@ func TestXconMonitorSingleNodeHealSuccess(t *testing.T) {
nodesConf, err := kubetest.SetupNodes(k8s, 1, defaultTimeout)
Expect(err).To(BeNil())
+ defer kubetest.FailLogger(k8s, nodesConf, t)
+
icmp0 := kubetest.DeployICMP(k8s, nodesConf[0].Node, "icmp-0", defaultTimeout)
Expect(icmp0).ToNot(BeNil())
@@ -116,6 +118,8 @@ func TestXconMonitorMultiNodeHealFail(t *testing.T) {
nodesConf, err := kubetest.SetupNodes(k8s, 2, defaultTimeout)
Expect(err).To(BeNil())
+ defer kubetest.FailLogger(k8s, nodesConf, t)
+
icmp := kubetest.DeployICMP(k8s, nodesConf[1].Node, "icmp-0", defaultTimeout)
Expect(icmp).ToNot(BeNil())
@@ -194,6 +198,8 @@ func TestXconMonitorMultiNodeHealSuccess(t *testing.T) {
nodesConf, err := kubetest.SetupNodes(k8s, 2, defaultTimeout)
Expect(err).To(BeNil())
+ defer kubetest.FailLogger(k8s, nodesConf, t)
+
icmp0 := kubetest.DeployICMP(k8s, nodesConf[1].Node, "icmp-0", defaultTimeout)
Expect(icmp0).ToNot(BeNil())
@@ -274,6 +280,8 @@ func TestXconMonitorNsmgrRestart(t *testing.T) {
nodesConf, err := kubetest.SetupNodes(k8s, 1, defaultTimeout)
Expect(err).To(BeNil())
+ defer kubetest.FailLogger(k8s, nodesConf, t)
+
icmp0 := kubetest.DeployICMP(k8s, nodesConf[0].Node, "icmp-0", defaultTimeout)
Expect(icmp0).ToNot(BeNil())
