Remove commitLayoutUpdate

This is superceded by commitConfigUpdate

Change-Id: Ice9c2fd320a4d581f0f71cbacc61f7ac58183c23
This commit is contained in:
James E. Blair 2017-04-20 13:13:21 -07:00
parent 31cb3e8d24
commit afc49ea495
1 changed files with 0 additions and 16 deletions

View File

@ -2039,22 +2039,6 @@ class ZuulTestCase(BaseTestCase):
repo.create_tag(tag)
return before
def commitLayoutUpdate(self, orig_name, source_name):
source_path = os.path.join(self.test_root, 'upstream',
source_name)
to_copy = ['zuul.yaml']
for playbook in os.listdir(os.path.join(source_path, 'playbooks')):
to_copy.append('playbooks/{}'.format(playbook))
commit_data = {}
for source_file in to_copy:
source_file_path = os.path.join(source_path, source_file)
with open(source_file_path, 'r') as nt:
commit_data[source_file] = nt.read()
before = self.addCommitToRepo(
orig_name, 'Pulling content from %s' % source_name,
commit_data)
return before
def commitConfigUpdate(self, project_name, source_name):
"""Commit an update to zuul.yaml