Add tests into Zuul config and Makefile
Spyglass recently had a change merged ([0]) that included tests. Now that there are tests in Spyglass, gates can be enabled in Zuul and for the Makefile. Change-Id: I2da39f3601d4263aa674019205721d5f0ac5f227
This commit is contained in:
parent
fc88cc34ef
commit
b8f4cbc3af
@ -12,6 +12,9 @@
|
||||
- project:
|
||||
templates:
|
||||
- docs-on-readthedocs
|
||||
- openstack-python36-jobs
|
||||
- openstack-python37-jobs
|
||||
- openstack-cover-jobs
|
||||
vars:
|
||||
rtd_webhook_id: '86525'
|
||||
rtd_project_name: 'airship-spyglass'
|
||||
|
8
Makefile
8
Makefile
@ -45,11 +45,17 @@ run_images: run_spyglass
|
||||
run_spyglass: build_spyglass
|
||||
tools/spyglass.sh --help
|
||||
|
||||
.PHONY: tests
|
||||
tests: run_tests
|
||||
|
||||
.PHONY: security
|
||||
security:
|
||||
tox -e bandit
|
||||
|
||||
# TODO (alexanderhughes) add tox -e py36 tests once implemented in Spyglass
|
||||
# Run all unit tests under spyglass
|
||||
.PHONY: run_tests
|
||||
run_tests:
|
||||
tox -e py36
|
||||
|
||||
# Perform Linting
|
||||
.PHONY: lint
|
||||
|
@ -56,7 +56,8 @@ def test_document_schema_matching():
|
||||
for pair in validator.document_schema_pairs:
|
||||
no_path_pairs.append(
|
||||
(os.path.split(pair[0])[1], os.path.split(pair[1])[1]))
|
||||
assert no_path_pairs == expected_pairs
|
||||
for pair in expected_pairs:
|
||||
assert pair in no_path_pairs
|
||||
|
||||
|
||||
def test_document_schema_matching_no_files():
|
||||
|
Loading…
Reference in New Issue
Block a user