Browse Source

Fix py27 job in specs repo

In py27 job index.rst file was checked as any other file if it
contains required headers and sections.
But index.rst file has different format so this file should be
skipped in this test.

After that there was also issue with unexpected "Footnotes"
section in neutron-inter.rst specs so this was also fixed.

Change-Id: If2baf887c49025a5481e97b2fb3500736b8668b6
Slawek Kaplonski 10 months ago
parent
commit
d531e274d5
2 changed files with 4 additions and 7 deletions
  1. 0
    6
      specs/rocky/neutron-inter.rst
  2. 4
    1
      tests/test_titles.py

+ 0
- 6
specs/rocky/neutron-inter.rst View File

@@ -529,16 +529,10 @@ References
529 529
 
530 530
 .. _networking-bgpvpn: https://docs.openstack.org/networking-bgpvpn
531 531
 .. _networking-l2gw: https://docs.openstack.org/networking-l2gw
532
-
533
-Footnotes
534
-=========
535
-
536 532
 .. [#f1] possible with floating IPs, VPNaaS, but not with the BGP VPN
537 533
    interconnections API extension (using a BGPVPN does not require admin
538 534
    right, but creating a new BGPVPN does require admin rights)
539
-
540 535
 .. [#f2] possible with VPNaaS, and BGP VPN interconnections, but not with
541 536
    floating IPs
542
-
543 537
 .. [#f3] possible with floating IPs and BGP VPN interconnections, but by
544 538
    definition not with VPNaaS

+ 4
- 1
tests/test_titles.py View File

@@ -18,6 +18,7 @@ import testtools
18 18
 
19 19
 POSTMORTEM = "postmortem"
20 20
 STADIUM = "stadium"
21
+INDEX = "index.rst"
21 22
 
22 23
 
23 24
 class TestTitles(testtools.TestCase):
@@ -116,7 +117,9 @@ class TestTitles(testtools.TestCase):
116 117
 
117 118
             files = glob.glob("specs/%s/*" % release)
118 119
             for filename in files:
119
-                if POSTMORTEM in filename or STADIUM in filename:
120
+                if (POSTMORTEM in filename or
121
+                        STADIUM in filename or
122
+                        INDEX in filename):
120 123
                     continue
121 124
                 self.assertTrue(filename.endswith(".rst"),
122 125
                                 "spec's file must uses 'rst' extension.")

Loading…
Cancel
Save