Commit Graph

8 Commits

Author SHA1 Message Date
Zane Bitter 19cd10c314 Fix rocky template
specs/rocky/rocky-template.rst should be a symlink, not a text file
containing the path to the actual template. This fixes the tests, and
also improves them to properly report errors when whole sections are
missing.

Change-Id: Ie95d45d134e8f332ecdecc687a68deb7af6c30c3
2018-08-29 15:51:49 -04:00
Sergey Kraynev d8cecd4124 Stop ignoring kilo release directory in tests
Change-Id: I3a8044fd8f68442055dcf34e4c9b5079a91c51da
2016-01-12 03:43:44 -05:00
Sergey Kraynev d84e677004 Stop ignoring juno directory for tests
Change-Id: I5851637aa5b5c17a667f63cbf44fe082986d9ace
2016-01-12 03:41:34 -05:00
Sergey Kraynev 521d5b633a Re-factor couple functions
Move out of the class generation of scenario list.
Move logic for reading files from directory to separete help method.

Change-Id: I0dc75100536d93dd8129cb9a3a902a5e30254cf4
2016-01-12 03:39:36 -05:00
Sergey Kraynev 81f6b1a9d1 Split test_templates on different tests
Splitting one main templates on several will allow to get information
about other checks without fixing one by one.
Note: it does not allow to get a lot of similar errors on one file or
several files in one release.

Change-Id: Idb1d313fe2fc1ff109d83d24ef1f28680b3b5c3b
2016-01-12 08:33:36 +00:00
Sergey Kraynev 3a99bb5c40 Use testscenarios lib for testing per-release
- Added test-requirement: testscenarios
- Move logic for choosing names of release to scenarios list

Change-Id: I74951c5add0ac5329c624b3ddfd1e82bdb43fef6
2016-01-12 08:32:36 +00:00
Sergey Kraynev 53c1092943 Move all base templates to separate directory
Now we can store all base templates in separate directory and use a link
on these templates instead of copy-pasting it in all new directory.

Change-Id: Ibc0c77642bb40303606047a54e3e198e7ef5a962
2015-12-22 10:19:16 -05:00
Sirushti Murugesan 29e22e45c5 Add some tests to validate specs
Tests were added to
- Compare titles with the skeleton template.rst.
- Detect trailing whitespaces
- Check lines are limited to a maximum of 79 characters.
- Detect literal carriage returns

Note: Taken from nova-specs/tests/test_titles.py and modified for
Heat.

Change-Id: Ib8bc85c086cbf37ec79b787c07657b9ffd7d17ac
2015-04-21 16:05:03 +05:30