From 500efab9fc4a55ba024b5e1a9dc9937f48495ca2 Mon Sep 17 00:00:00 2001 From: Ishan Arya Date: Mon, 31 Jul 2023 13:03:30 +0530 Subject: [PATCH] test: fix driver tests --- modules/firehose/driver_plan_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/firehose/driver_plan_test.go b/modules/firehose/driver_plan_test.go index fcb8b8ab..c984979f 100644 --- a/modules/firehose/driver_plan_test.go +++ b/modules/firehose/driver_plan_test.go @@ -97,6 +97,7 @@ func TestFirehoseDriver_Plan(t *testing.T) { "SOURCE_KAFKA_BROKERS": "localhost:9092", "SOURCE_KAFKA_TOPIC": "foo-log", }, + "init_container": map[string]interface{}{"args": interface{}(nil), "command": interface{}(nil), "enabled": false, "image_tag": "", "pull_policy": "", "repository": ""}, }), }, State: resource.State{ @@ -167,6 +168,7 @@ func TestFirehoseDriver_Plan(t *testing.T) { "SOURCE_KAFKA_BROKERS": "localhost:9092", "SOURCE_KAFKA_TOPIC": "foo-log", }, + "init_container": map[string]interface{}{"args": interface{}(nil), "command": interface{}(nil), "enabled": false, "image_tag": "", "pull_policy": "", "repository": ""}, }), }, State: resource.State{ @@ -252,6 +254,7 @@ func TestFirehoseDriver_Plan(t *testing.T) { "cpu": "200m", "memory": "512Mi", }, + "init_container": map[string]interface{}{"args": interface{}(nil), "command": interface{}(nil), "enabled": false, "image_tag": "", "pull_policy": "", "repository": ""}, }), }, State: resource.State{ @@ -377,7 +380,8 @@ func TestFirehoseDriver_Plan(t *testing.T) { "cpu": "200m", "memory": "512Mi", }, - "stopped": false, + "stopped": false, + "init_container": map[string]interface{}{"args": interface{}(nil), "command": interface{}(nil), "enabled": false, "image_tag": "", "pull_policy": "", "repository": ""}, }), }, State: resource.State{ @@ -469,6 +473,7 @@ func TestFirehoseDriver_Plan(t *testing.T) { "SOURCE_KAFKA_BROKERS": "localhost:9092", "SOURCE_KAFKA_TOPIC": "foo-log", }, + "init_container": map[string]interface{}{"args": interface{}(nil), "command": interface{}(nil), "enabled": false, "image_tag": "", "pull_policy": "", "repository": ""}, }), }, State: resource.State{