X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=test%2Ftest_RO.py;h=f5194ac42935152d04d44237b2b77e354e10d39b;hb=99314908f1e270c682b3402491b227db71d59545;hp=3da3c314ba9ffdbd3582a0e22bb597566b3df180;hpb=2fe24fa022124324d5ab9325fc60835107f271d3;p=osm%2FRO.git diff --git a/test/test_RO.py b/test/test_RO.py index 3da3c314..f5194ac4 100755 --- a/test/test_RO.py +++ b/test/test_RO.py @@ -49,6 +49,7 @@ global test_directory global scenario_test_folder global test_image_name global management_network +global manual def check_instance_scenario_active(uuid): instance = client.get_instance(uuid=uuid) @@ -456,6 +457,10 @@ class descriptor_based_scenario_test(unittest.TestCase): scenario_test_folder) self.__class__.test_index += 1 + if manual: + raw_input('Scenario has been deployed. Perform manual check and press any key to resume') + return + keep_waiting = 50 instance_active = False while(keep_waiting): @@ -518,6 +523,7 @@ if __name__=="__main__": default=default_logger_file) parser.add_option('--list-tests', help='List all available tests', dest='list-tests', action="store_true", default=False) + parser.add_option('-m', '--manual-check', help='Pause execution once deployed to allow manual checking of the deployed instance scenario', dest='manual', action="store_true", default=False) parser.add_option('--test', '--tests', help='Specify the tests to run', dest='tests', default=None) #Mandatory arguments @@ -593,6 +599,7 @@ if __name__=="__main__": # set test image name and management network test_image_name = options.__dict__['image-name'] management_network = options.__dict__['mgmt-net'] + manual = options.__dict__['manual'] #Create the list of tests to be run descriptor_based_tests = []