@@ -27,8 +27,8 @@ def test_valid_CRUD_tasks(setup, test_input, expected):
27
27
"config" : {
28
28
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
29
29
"tasks.max" : "3" ,
30
- "topics" : "test-datagen" ,
31
- "splunk.indexes" : setup ["kafka_topic " ],
30
+ "topics" : setup [ "kafka_topic" ] ,
31
+ "splunk.indexes" : setup ["splunk_index " ],
32
32
"splunk.hec.uri" : setup ["splunkd_url" ],
33
33
"splunk.hec.token" : setup ["splunk_token" ],
34
34
"splunk.hec.raw" : "false" ,
@@ -46,8 +46,8 @@ def test_valid_CRUD_tasks(setup, test_input, expected):
46
46
"config" : {
47
47
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
48
48
"tasks.max" : "5" ,
49
- "topics" : "test-datagen" ,
50
- "splunk.indexes" : setup ["kafka_topic " ],
49
+ "topics" : setup [ "kafka_topic" ] ,
50
+ "splunk.indexes" : setup ["splunk_index " ],
51
51
"splunk.hec.uri" : setup ["splunkd_url" ],
52
52
"splunk.hec.token" : setup ["splunk_token" ],
53
53
"splunk.hec.raw" : "false" ,
@@ -77,7 +77,7 @@ def test_valid_CRUD_tasks(setup, test_input, expected):
77
77
78
78
79
79
@pytest .mark .parametrize ("test_input,expected" , [
80
- ("create_and_update_valid_task " , False )
80
+ ("test_invalid_CRUD_tasks " , False )
81
81
])
82
82
def test_invalid_CRUD_tasks (setup , test_input , expected ):
83
83
'''
@@ -92,8 +92,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
92
92
"config" : {
93
93
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
94
94
"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 " ],
97
97
"splunk.hec.uri" : setup ["splunkd_url" ],
98
98
"splunk.hec.token" : setup ["splunk_token" ],
99
99
"splunk.hec.raw" : "false" ,
@@ -110,8 +110,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
110
110
"config" : {
111
111
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
112
112
"tasks.max" : "3" ,
113
- "topics" : "test-datagen" ,
114
- "splunk.indexes" : setup ["kafka_topic " ],
113
+ "topics" : setup [ "kafka_topic" ] ,
114
+ "splunk.indexes" : setup ["splunk_index " ],
115
115
"splunk.hec.uri" : setup ["splunkd_url" ],
116
116
"splunk.hec.token" : setup ["splunk_token" ],
117
117
"splunk.hec.raw" : "disable" ,
@@ -129,7 +129,7 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
129
129
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
130
130
"tasks.max" : "3" ,
131
131
"topics" : "" ,
132
- "splunk.indexes" : setup ["kafka_topic " ],
132
+ "splunk.indexes" : setup ["splunk_index " ],
133
133
"splunk.hec.uri" : setup ["splunkd_url" ],
134
134
"splunk.hec.token" : setup ["splunk_token" ],
135
135
"splunk.hec.raw" : "false" ,
@@ -146,8 +146,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
146
146
"config" : {
147
147
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
148
148
"tasks.max" : "3" ,
149
- "topics" : "test-datagen" ,
150
- "splunk.indexes" : setup ["kafka_topic " ],
149
+ "topics" : setup [ "kafka_topic" ] ,
150
+ "splunk.indexes" : setup ["splunk_index " ],
151
151
"splunk.hec.uri" : setup ["splunkd_url" ],
152
152
"splunk.hec.token" : setup ["splunk_token" ],
153
153
"splunk.hec.raw" : "false" ,
@@ -165,8 +165,8 @@ def test_invalid_CRUD_tasks(setup, test_input, expected):
165
165
"config" : {
166
166
"connector.class" : "com.splunk.kafka.connect.SplunkSinkConnector" ,
167
167
"tasks.max" : "3" ,
168
- "topics" : "test-datagen" ,
169
- "splunk.indexes" : setup ["kafka_topic " ],
168
+ "topics" : setup [ "kafka_topic" ] ,
169
+ "splunk.indexes" : setup ["splunk_index " ],
170
170
"splunk.hec.uri" : setup ["splunkd_url" ],
171
171
"splunk.hec.token" : setup ["splunk_token" ],
172
172
"splunk.hec.raw" : "false" ,
0 commit comments