Skip to content

Commit ce78dc9

Browse files
authored
Merge pull request #3378 from Tanzp01/fix_for_coredns_test
Fix for the coredns configmap update: the corefile was not updated, e…
2 parents 0d72d56 + d2bd702 commit ce78dc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dns/py/params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def is_relevant(self, attributes):
160160
def set(self, inputs, value):
161161
if value > 0:
162162
cf = inputs.configmap_yaml['data']['Corefile']
163-
cfList = cf.decode().split("\n")
163+
cfList = cf.split("\n")
164164
cfList.insert(1,
165165
" cache {\n"
166166
" success " + repr(value) + "\n"

dns/py/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def go(self):
124124
self._create(inputs.deployment_yaml)
125125
self._create(self.service_yaml)
126126
if self.configmap_yaml is not None:
127-
self._create(self.configmap_yaml)
127+
self._create(inputs.configmap_yaml)
128128
self._wait_for_status(True)
129129
test_threads=[]
130130
#Spawn off a thread to run the test case in each client pod simultaneously.

0 commit comments

Comments
 (0)