The INFO job template was improperly formatted. The sanity_check call
is to a class method, and requires and positional argument for "self"
(this does not need to contain anything; it is just filler in this
case).
Change-Id: I1dcbc456bf31e907821ab4c5aee7c324dbd70722
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
gerrit_project test/test1
issue_id: CIMAN-33
"""
- gerrit_api.sanity_check(self.fqdn, gerrit_project)
+ gerrit_api.sanity_check(None, self.fqdn, gerrit_project)
filename = ".gitreview"
jinja_env = Environment(loader=PackageLoader("lftools.git"), autoescape=select_autoescape())
---
-project:
+- project:
name: {{ project_name_dashed }}-project-view
project-name: {{ project_name_dashed }}
views:
- project-view
-project:
+- project:
name: {{ project_name_dashed }}-info
project: {{ project_name }}
project-name: {{ project_name_dashed }}
--- /dev/null
+---
+fixes:
+ - |
+ Fix template for INFO jobs and a bad call to sanity_check in git.gerrit.
commit_msg = "Chore: Automation adds project-subproject.yaml"
filepath = os.path.join(mock_init.repo.working_tree_dir, "jjb/project-subproject/project-subproject.yaml")
content = """---
-project:
+- project:
name: project-subproject-project-view
project-name: project-subproject
views:
- project-view
-project:
+- project:
name: project-subproject-info
project: project/subproject
project-name: project-subproject