Commit da635f06 authored by Michele Carignani's avatar Michele Carignani
Browse files

new templates for nfv tst 010

parent 8c5b5136
Loading
Loading
Loading
Loading
Loading
+23.8 KiB

File added.

No diff preview for this file type.

+23.8 KiB

File added.

No diff preview for this file type.

+23.7 KiB

File added.

No diff preview for this file type.

+14 −2
Original line number Diff line number Diff line
@@ -29,6 +29,18 @@ def create_test_for_sol(solspec, all_tests_root, commit_id, output_dir):
        "SOL005" : 'sol_005_index.csv',
    }

    templates = {
        "SOL002" : 'Tests-SOL002-VeVnfm_template.docx',
        "SOL003" : 'Tests-SOL003-OrVnfm_template.docx',
        "SOL005" : 'Tests-SOL005-OsMaNfvo_template.docx'
    }

    outnames = {
        "SOL002" : 'Tests-SOL002-VeVnfm.docx',
        "SOL003" : 'Tests-SOL003-OrVnfm.docx',
        "SOL005" : 'Tests-SOL005-OsMaNfvo.docx',
    }

    if not solspec in indexes:
        print("Error: Wrong SOL Specification: {}".format(solspec))
        return
@@ -42,7 +54,7 @@ def create_test_for_sol(solspec, all_tests_root, commit_id, output_dir):
        print("ERROR OPENING INDEX: {}".format(indexes[solspec]))
        return

    spec = testspec.TestSpec()
    spec = testspec.TestSpec(templates[solspec])
    current_folder = None

    for row in sol_index:
@@ -61,7 +73,7 @@ def create_test_for_sol(solspec, all_tests_root, commit_id, output_dir):
            )
            lib.gen_api_suite(ref, suite, spec, current_folder, commit_id, solspec)

    outfn = os.path.join(output_dir,"{}_attachment.docx".format(solspec))
    outfn = os.path.join(output_dir,outnames[solspec])
    print("Writing {} definitions to: {}".format(solspec, outfn))
    spec.save(outfn)