@@ -27,8 +27,8 @@ def test_valid_CRUD_tasks(setup, test_input, expected):
2727 "config" : {
2828 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
2929 "tasks.max" : "3" ,
30- "topics" : "test-datagen" ,
31- "splunk.indexes" : setup ["kafka_topic " ],
30+ "topics" : setup [ "kafka_topic" ] ,
31+ "splunk.indexes" : setup ["splunk_index " ],
3232 "splunk.hec.uri" : setup ["splunkd_url" ],
3333 "splunk.hec.token" : setup ["splunk_token" ],
3434 "splunk.hec.raw" : "false" ,
@@ -46,8 +46,8 @@ def test_valid_CRUD_tasks(setup, test_input, expected):
4646 "config" : {
4747 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
4848 "tasks.max" : "5" ,
49- "topics" : "test-datagen" ,
50- "splunk.indexes" : setup ["kafka_topic " ],
49+ "topics" : setup [ "kafka_topic" ] ,
50+ "splunk.indexes" : setup ["splunk_index " ],
5151 "splunk.hec.uri" : setup ["splunkd_url" ],
5252 "splunk.hec.token" : setup ["splunk_token" ],
5353 "splunk.hec.raw" : "false" ,
@@ -77,7 +77,7 @@ def test_valid_CRUD_tasks(setup, test_input, expected):
7777
7878
7979@pytest .mark .parametrize ("test_input,expected" , [
80- ("create_and_update_valid_task " , False )
80+ ("test_invalid_CRUD_tasks " , False )
8181])
8282def test_invalid_CRUD_tasks (setup , test_input , expected ):
8383 '''
@@ -92,8 +92,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
9292 "config" : {
9393 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
9494 "tasks.max" : "dummy-string" ,
95- "topics" : "test-datagen" ,
96- "splunk.indexes" : setup ["kafka_topic " ],
95+ "topics" : setup [ "kafka_topic" ] ,
96+ "splunk.indexes" : setup ["splunk_index " ],
9797 "splunk.hec.uri" : setup ["splunkd_url" ],
9898 "splunk.hec.token" : setup ["splunk_token" ],
9999 "splunk.hec.raw" : "false" ,
@@ -110,8 +110,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
110110 "config" : {
111111 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
112112 "tasks.max" : "3" ,
113- "topics" : "test-datagen" ,
114- "splunk.indexes" : setup ["kafka_topic " ],
113+ "topics" : setup [ "kafka_topic" ] ,
114+ "splunk.indexes" : setup ["splunk_index " ],
115115 "splunk.hec.uri" : setup ["splunkd_url" ],
116116 "splunk.hec.token" : setup ["splunk_token" ],
117117 "splunk.hec.raw" : "disable" ,
@@ -129,7 +129,7 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
129129 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
130130 "tasks.max" : "3" ,
131131 "topics" : "" ,
132- "splunk.indexes" : setup ["kafka_topic " ],
132+ "splunk.indexes" : setup ["splunk_index " ],
133133 "splunk.hec.uri" : setup ["splunkd_url" ],
134134 "splunk.hec.token" : setup ["splunk_token" ],
135135 "splunk.hec.raw" : "false" ,
@@ -146,8 +146,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
146146 "config" : {
147147 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
148148 "tasks.max" : "3" ,
149- "topics" : "test-datagen" ,
150- "splunk.indexes" : setup ["kafka_topic " ],
149+ "topics" : setup [ "kafka_topic" ] ,
150+ "splunk.indexes" : setup ["splunk_index " ],
151151 "splunk.hec.uri" : setup ["splunkd_url" ],
152152 "splunk.hec.token" : setup ["splunk_token" ],
153153 "splunk.hec.raw" : "false" ,
@@ -165,8 +165,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
165165 "config" : {
166166 "connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
167167 "tasks.max" : "3" ,
168- "topics" : "test-datagen" ,
169- "splunk.indexes" : setup ["kafka_topic " ],
168+ "topics" : setup [ "kafka_topic" ] ,
169+ "splunk.indexes" : setup ["splunk_index " ],
170170 "splunk.hec.uri" : setup ["splunkd_url" ],
171171 "splunk.hec.token" : setup ["splunk_token" ],
172172 "splunk.hec.raw" : "false" ,
0 commit comments