Esempio n. 1
0
    def do_2(self, line):
        print "CreateRequestComponentRevisionForImage using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_component_revision_for_image(
                self.versioned_iu_name, self.versioned_iu_level, self.iu_name,
                self.iu_level, self.label_name, self.label_type,
                self.component_name, self.label_level, self.state,
                self.label_poc, self.created_by, self.predecessor,
                self.client_root, self.is_active, self.iu_client_id,
                self.image_client_id, self.dependency_list)

        self.menu()
Esempio n. 2
0
    def do_8(self, line):
        print "GetLabelDetails using parameters:"
        print "  label_name:", self.label_name

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_label_details(self.label_name)

        self.menu()
Esempio n. 3
0
    def do_15(self, line):
        print "SaveTestResultsV2 using parameters:"
        print "Not complete yet"

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results_v2(self.user_name, self.iu_name,
                                           self.iu_client_id)

        self.menu()
Esempio n. 4
0
    def do_6(self, line):
        print "GetDeviceAssessmentsForCrmBuild using parameters:"
        print "  user_name:", self.user_name
        print "  crm_build_id:", self.crm_build_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_device_assessments_for_crm_build(
                self.user_name, self.crm_build_id)

        self.menu()
Esempio n. 5
0
    def do_14(self, line):
        print "SaveTestResults using parameters:"
        print "  user_name:", self.user_name
        print "  testResultsJson:", self.testResultsJson
        print "  assessment_id:", self.assessment_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results(self.user_name, self.iu_name,
                                        self.assessment_id)

        self.menu()
Esempio n. 6
0
    def do_13(self, line):
        print "RunAssessment using parameters:"
        print "  user_name:", self.user_name
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.run_assessment(self.user_name, self.iu_name,
                                     self.iu_level, self.iu_client_id)

        self.menu()
Esempio n. 7
0
    def do_1(self, line):
        print "CreateRequestImageBuildForProducts using parameters:"
        print "  user_name:", self.user_name
        print "  iu_name:", self.iu_name
        print "  label_name:", self.label_name
        print "  component_name:", self.component_name
        print "  predecessor:", self.predecessor
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_image_build_for_product(
                self.user_name,
                self.iu_name,
                self.label_name,
                self.component_name,
                self.predecessor,
                self.iu_client_id,
                self.image_client_id
               )

        self.menu()
Esempio n. 8
0
    def do_7(self, line):
        print "GetIntegrationLineActiveComposition using parameters:"
        print "  user_name:", self.user_name
        print "  integration_line_name:", self.integration_line_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_client_id:", self.integration_line_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_integration_line_active_composition(
                self.user_name, self.integration_line_name,
                self.integration_line_level, self.integration_line_client_id)

        self.menu()
Esempio n. 9
0
    def do_12(self, line):
        print "ResubmitLabel using parameters:"
        print "  user_name:", self.user_name 
        print "  label_name:", self.label_name 
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.resubmit_label(self.user_name, 
                                     self.label_name,
                                     self.versioned_iu_name, 
                                     self.versioned_iu_level, 
                                     self.iu_name, 
                                     self.iu_level, 
                                     self.is_active, 
                                     self.iu_client_id
                                    )

        self.menu()
Esempio n. 10
0
    def do_11(self, line):
        print "RejectResubmittedLabel using parameters:"
        print "  user_name:", self.user_name

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.reject_resubmitted_label(self.user_name, self.label_name,
                                               self.versioned_iu_name,
                                               self.versioned_iu_level,
                                               self.iu_name, self.iu_level,
                                               self.is_active,
                                               self.iu_client_id)

        self.menu()
Esempio n. 11
0
    def do_9(self, line):
        print "GetLastAssessmentDetail using parameters:"
        print "  user_name:", self.user_name 
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  assessment_type:", self.assessment_type
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_last_assessment_detail(self.user_name, 
                                        self.versioned_iu_name, 
                                        self.versioned_iu_level, 
                                        self.iu_name, 
                                        self.iu_level, 
                                        self.is_active, 
                                        self.is_passed, 
                                        self.assessment_type,
                                        self.iu_client_id
                                        )

        self.menu()
Esempio n. 12
0
    def do_4(self, line):
        print "CreateRequest using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_spec:", self.client_spec
        print "  client_spec_type:", self.client_spec_type
        print "  client_spec_p4_server:", self.client_spec_p4_server
        print "  client_spec_file_location:", self.client_spec_file_location
        print "  client_spec_file_version:", self.client_spec_file_version
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  is_static_label:", self.is_static_label
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request(
                self.versioned_iu_name,        
                self.versioned_iu_level,       
                self.iu_name,                  
                self.iu_level,                 
                self.label_name,               
                self.label_type,               
                self.component_name,           
                self.label_level,              
                self.state,                    
                self.label_poc,                
                self.created_by,               
                self.predecessor,              
                self.client_spec,              
                self.client_spec_type,         
                self.client_spec_p4_server,    
                self.client_spec_file_location,
                self.client_spec_file_version, 
                self.client_root,              
                self.is_active,                
                self.is_passed,                
                self.is_static_label,
                self.iu_client_id,        
                self.image_client_id,     
                self.dependency_list
                )

        self.menu()
Esempio n. 13
0
    def do_10(self, line):
        print "GetLastLabels using parameters:"
        print "  user_name:", self.user_name
        print "  state:", self.state
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_latest_labels(self.user_name, self.iu_name,
                                        self.iu_level, self.iu_client_id,
                                        self.state)

        self.menu()
Esempio n. 14
0
    def do_4(self, line):
        print "CreateRequest using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_spec:", self.client_spec
        print "  client_spec_type:", self.client_spec_type
        print "  client_spec_p4_server:", self.client_spec_p4_server
        print "  client_spec_file_location:", self.client_spec_file_location
        print "  client_spec_file_version:", self.client_spec_file_version
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  is_static_label:", self.is_static_label
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request(
                self.versioned_iu_name, self.versioned_iu_level, self.iu_name,
                self.iu_level, self.label_name, self.label_type,
                self.component_name, self.label_level, self.state,
                self.label_poc, self.created_by, self.predecessor,
                self.client_spec, self.client_spec_type,
                self.client_spec_p4_server, self.client_spec_file_location,
                self.client_spec_file_version, self.client_root,
                self.is_active, self.is_passed, self.is_static_label,
                self.iu_client_id, self.image_client_id, self.dependency_list)

        self.menu()
Esempio n. 15
0
    def do_8(self, line):
        print "GetLabelDetails using parameters:"
        print "  label_name:", self.label_name

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_label_details(self.label_name)

        self.menu()
Esempio n. 16
0
    def do_1(self, line):
        print "CreateRequestImageBuildForProducts using parameters:"
        print "  user_name:", self.user_name
        print "  iu_name:", self.iu_name
        print "  label_name:", self.label_name
        print "  component_name:", self.component_name
        print "  predecessor:", self.predecessor
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_image_build_for_product(
                self.user_name, self.iu_name, self.label_name,
                self.component_name, self.predecessor, self.iu_client_id,
                self.image_client_id)

        self.menu()
Esempio n. 17
0
    def do_16(self, line):
        print "UpdateRequestState using parameters:"
        print "  user_name:", self.user_name
        print "  label_name:", self.label_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_name:", self.integration_line_name
        print "  state:", self.state
        print "  integration_line_client_id:", self.integration_line_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.update_request_state(self.user_name, self.label_name,
                                           self.integration_line_name,
                                           self.integration_line_level,
                                           self.state,
                                           self.integration_line_client_id)

        self.menu()
Esempio n. 18
0
    def do_9(self, line):
        print "GetLastAssessmentDetail using parameters:"
        print "  user_name:", self.user_name
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  assessment_type:", self.assessment_type
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_last_assessment_detail(
                self.user_name, self.versioned_iu_name,
                self.versioned_iu_level, self.iu_name, self.iu_level,
                self.is_active, self.is_passed, self.assessment_type,
                self.iu_client_id)

        self.menu()
Esempio n. 19
0
    def do_6(self, line):
        print "GetDeviceAssessmentsForCrmBuild using parameters:"
        print "  user_name:", self.user_name 
        print "  crm_build_id:", self.crm_build_id 
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_device_assessments_for_crm_build(self.user_name, 
                                                           self.crm_build_id
                                                          )

        self.menu()
Esempio n. 20
0
    def do_15(self, line):
        print "SaveTestResultsV2 using parameters:"
        print "Not complete yet"

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results_v2(self.user_name, 
                                           self.iu_name, 
                                           self.iu_client_id
                                          )

        self.menu()
Esempio n. 21
0
    def do_14(self, line):
        print "SaveTestResults using parameters:"
        print "  user_name:", self.user_name 
        print "  testResultsJson:", self.testResultsJson
        print "  assessment_id:", self.assessment_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results(self.user_name, 
                                        self.iu_name, 
                                        self.assessment_id
                                       )

        self.menu()
Esempio n. 22
0
    def do_2(self, line):
        print "CreateRequestComponentRevisionForImage using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_component_revision_for_image(
                self.versioned_iu_name,        
                self.versioned_iu_level,       
                self.iu_name,                  
                self.iu_level,                 
                self.label_name,               
                self.label_type,               
                self.component_name,           
                self.label_level,              
                self.state,                    
                self.label_poc,                
                self.created_by,               
                self.predecessor,              
                self.client_root,              
                self.is_active,                
                self.iu_client_id,        
                self.image_client_id,     
                self.dependency_list
                )

        self.menu()
Esempio n. 23
0
    def do_7(self, line):
        print "GetIntegrationLineActiveComposition using parameters:"
        print "  user_name:", self.user_name 
        print "  integration_line_name:", self.integration_line_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_client_id:", self.integration_line_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_integration_line_active_composition(self.user_name,
                                                              self.integration_line_name,
                                                              self.integration_line_level,
                                                              self.integration_line_client_id
                                                             )

        self.menu()
Esempio n. 24
0
    def do_13(self, line):
        print "RunAssessment using parameters:"
        print "  user_name:", self.user_name 
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.run_assessment(self.user_name, 
                                     self.iu_name, 
                                     self.iu_level, 
                                     self.iu_client_id
                                    )

        self.menu()
Esempio n. 25
0
    def do_10(self, line):
        print "GetLastLabels using parameters:"
        print "  user_name:", self.user_name
        print "  state:", self.state
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_latest_labels(self.user_name, 
                                        self.iu_name, 
                                        self.iu_level, 
                                        self.iu_client_id, 
                                        self.state
                                       )

        self.menu()
Esempio n. 26
0
    def do_16(self, line):
        print "UpdateRequestState using parameters:"
        print "  user_name:", self.user_name 
        print "  label_name:", self.label_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_name:", self.integration_line_name
        print "  state:", self.state
        print "  integration_line_client_id:", self.integration_line_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.update_request_state(self.user_name, 
                                           self.label_name, 
                                           self.integration_line_name,
                                           self.integration_line_level,
                                           self.state,
                                           self.integration_line_client_id
                                          )

        self.menu()
Esempio n. 27
0
class aris_menu(cmd.Cmd):
    
    def __init__(self):
        cmd.Cmd.__init__(self)
        self.prompt = "\n aris->"
        self.menu()
    
    def menu(self):
        self.cv = confVars()
        self.conf = confVars.getAll(self.cv)
        self.assessment_id = self.conf['assessment_id']
        self.assessment_type = self.conf['assessment_type']
        self.client_root = self.conf['client_root']
        self.client_spec = self.conf['client_spec']
        self.client_spec_file_location = self.conf['client_spec_file_location']
        self.client_spec_file_version = self.conf['client_spec_file_version']
        self.client_spec_p4_server = self.conf['client_spec_p4_server']
        self.client_spec_type = self.conf['client_spec_type']
        self.component_name = self.conf['component_name']
        self.created_by = self.conf['created_by']
        self.crm_build_id = self.conf['crm_build_id']
        self.dependency_list = self.conf['dependency_list']
        self.image_client_id = self.conf['image_client_id']
        self.integration_line_client_id = self.conf['integration_line_client_id']
        self.integration_line_name = self.conf['integration_line_name']
        self.integration_line_level = self.conf['integration_line_level']
        self.is_active = self.conf['is_active']
        self.is_passed = self.conf['is_passed']
        self.is_static_label = self.conf['is_static_label']
        self.iu_client_id = self.conf['iu_client_id']
        self.iu_level = self.conf['iu_level']
        self.iu_name = self.conf['iu_name']
        self.label_level = self.conf['label_level']
        self.label_name = self.conf['label_name']
        self.label_poc = self.conf['label_poc']
        self.label_type = self.conf['label_type']
        self.predecessor = self.conf['predecessor']
        self.state = self.conf['state']
        self.testResultsJson = self.conf['testResultsJson']
        self.user_name = self.conf['user_name']
        self.versioned_iu_name = self.conf['versioned_iu_name']
        self.versioned_iu_level = self.conf['versioned_iu_level']
        
        print "\n     [ARIS Client " + ARIS_CLIENT_VERSION + "]\n\n" + \
        "     ARIS Request Commands\n" + " " + "-"*29 + "\n" + \
        "  1. CreateRequestImageBuildForProduct\n" + \
        "  2. CreateRequestComponentRevisionForImage\n" + \
        "  3. CreateRequestStaticLabelForImage\n" + \
        "  4. CreateRequest\n" + \
        "  5. GetBuildItemsForCrmBuild\n" + \
        "  6. GetDeviceAssessmentsForCrmBuild\n" + \
        "  7. GetIntegrationLineActiveComposition\n" + \
        "  8. GetLabelDetails\n" + \
        "  9. GetLastAssessmentDetail\n" + \
        " 10. GetLastLabels\n" + \
        " 11. RejectResubmittedLabel\n" + \
        " 12. ReSubmitLabel\n" + \
        " 13. RunAssessment\n" + \
        " 14. SaveTestResults\n" + \
        " 15. SaveTestResultsV2\n" + \
        " 16. UpdateRequestState\n" + \
        "  c. Configure function parameters\n\n" + \
        "      (Q)uit ---- Exits\n"

    #--------------------------------------
    #  CreateRequestImageBuildForProducts
    #--------------------------------------
    def do_1(self, line):
        print "CreateRequestImageBuildForProducts using parameters:"
        print "  user_name:", self.user_name
        print "  iu_name:", self.iu_name
        print "  label_name:", self.label_name
        print "  component_name:", self.component_name
        print "  predecessor:", self.predecessor
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_image_build_for_product(
                self.user_name,
                self.iu_name,
                self.label_name,
                self.component_name,
                self.predecessor,
                self.iu_client_id,
                self.image_client_id
               )

        self.menu()

    #--------------------------------------
    #  CreateRequestComponentRevisionForImage
    #--------------------------------------
    def do_2(self, line):
        print "CreateRequestComponentRevisionForImage using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_component_revision_for_image(
                self.versioned_iu_name,        
                self.versioned_iu_level,       
                self.iu_name,                  
                self.iu_level,                 
                self.label_name,               
                self.label_type,               
                self.component_name,           
                self.label_level,              
                self.state,                    
                self.label_poc,                
                self.created_by,               
                self.predecessor,              
                self.client_root,              
                self.is_active,                
                self.iu_client_id,        
                self.image_client_id,     
                self.dependency_list
                )

        self.menu()

    #--------------------------------------
    #  CreateRequestStaticLabelForImage
    #--------------------------------------
    def do_3(self, line):
        print "CreateRequestStaticLabelForImage using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_spec:", self.client_spec
        print "  client_spec_type:", self.client_spec_type
        print "  client_spec_p4_server:", self.client_spec_p4_server
        print "  client_spec_file_location:", self.client_spec_file_location
        print "  client_spec_file_version:", self.client_spec_file_version
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  is_static_label:", self.is_static_label
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_static_label_for_image(
                self.versioned_iu_name,        
                self.versioned_iu_level,       
                self.iu_name,                  
                self.iu_level,                 
                self.label_name,               
                self.label_type,               
                self.component_name,           
                self.label_level,              
                self.state,                    
                self.label_poc,                
                self.created_by,               
                self.predecessor,              
                self.client_spec,              
                self.client_spec_type,         
                self.client_spec_p4_server,    
                self.client_spec_file_location,
                self.client_spec_file_version, 
                self.client_root,              
                self.is_active,                
                self.is_passed,                
                self.is_static_label,
                self.iu_client_id,        
                self.image_client_id,     
                self.dependency_list
                )

        self.menu()

    #--------------------------------------
    #  CreateRequest
    #--------------------------------------
    def do_4(self, line):
        print "CreateRequest using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_spec:", self.client_spec
        print "  client_spec_type:", self.client_spec_type
        print "  client_spec_p4_server:", self.client_spec_p4_server
        print "  client_spec_file_location:", self.client_spec_file_location
        print "  client_spec_file_version:", self.client_spec_file_version
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  is_static_label:", self.is_static_label
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request(
                self.versioned_iu_name,        
                self.versioned_iu_level,       
                self.iu_name,                  
                self.iu_level,                 
                self.label_name,               
                self.label_type,               
                self.component_name,           
                self.label_level,              
                self.state,                    
                self.label_poc,                
                self.created_by,               
                self.predecessor,              
                self.client_spec,              
                self.client_spec_type,         
                self.client_spec_p4_server,    
                self.client_spec_file_location,
                self.client_spec_file_version, 
                self.client_root,              
                self.is_active,                
                self.is_passed,                
                self.is_static_label,
                self.iu_client_id,        
                self.image_client_id,     
                self.dependency_list
                )

        self.menu()

    #--------------------------------------
    #  GetBuildItemsForCrmBuild
    #--------------------------------------
    def do_5(self, line):
        print "GetBuildItemsForCrmBuild using parameters:"
        print "  user_name:", self.user_name 
        print "  crm_build_id:", self.crm_build_id 
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_build_items_for_crm_build(self.user_name, 
                                                    self.crm_build_id
                                                   )

        self.menu()

    #--------------------------------------
    #  GetDeviceAssessmentsForCrmBuild
    #--------------------------------------
    def do_6(self, line):
        print "GetDeviceAssessmentsForCrmBuild using parameters:"
        print "  user_name:", self.user_name 
        print "  crm_build_id:", self.crm_build_id 
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_device_assessments_for_crm_build(self.user_name, 
                                                           self.crm_build_id
                                                          )

        self.menu()

    #--------------------------------------
    #  GetIntegrationLineActiveComposition
    #--------------------------------------
    def do_7(self, line):
        print "GetIntegrationLineActiveComposition using parameters:"
        print "  user_name:", self.user_name 
        print "  integration_line_name:", self.integration_line_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_client_id:", self.integration_line_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_integration_line_active_composition(self.user_name,
                                                              self.integration_line_name,
                                                              self.integration_line_level,
                                                              self.integration_line_client_id
                                                             )

        self.menu()

    #--------------------------------------
    #  GetLabelDetails
    #--------------------------------------
    def do_8(self, line):
        print "GetLabelDetails using parameters:"
        print "  label_name:", self.label_name

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_label_details(self.label_name)

        self.menu()

    #--------------------------------------
    #  GetLastAssessmentDetail
    #--------------------------------------
    def do_9(self, line):
        print "GetLastAssessmentDetail using parameters:"
        print "  user_name:", self.user_name 
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  assessment_type:", self.assessment_type
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_last_assessment_detail(self.user_name, 
                                        self.versioned_iu_name, 
                                        self.versioned_iu_level, 
                                        self.iu_name, 
                                        self.iu_level, 
                                        self.is_active, 
                                        self.is_passed, 
                                        self.assessment_type,
                                        self.iu_client_id
                                        )

        self.menu()

    #--------------------------------------
    #  GetLastLabels
    #--------------------------------------
    def do_10(self, line):
        print "GetLastLabels using parameters:"
        print "  user_name:", self.user_name
        print "  state:", self.state
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_latest_labels(self.user_name, 
                                        self.iu_name, 
                                        self.iu_level, 
                                        self.iu_client_id, 
                                        self.state
                                       )

        self.menu()

    #--------------------------------------
    #  RejectResubmittedLabel
    #--------------------------------------
    def do_11(self, line):
        print "RejectResubmittedLabel using parameters:"
        print "  user_name:", self.user_name 
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.reject_resubmitted_label(self.user_name, 
                                               self.label_name,
                                               self.versioned_iu_name, 
                                               self.versioned_iu_level, 
                                               self.iu_name, 
                                               self.iu_level, 
                                               self.is_active, 
                                               self.iu_client_id
                                              )

        self.menu()

    #--------------------------------------
    #  ReSubmitLabel
    #--------------------------------------
    def do_12(self, line):
        print "ResubmitLabel using parameters:"
        print "  user_name:", self.user_name 
        print "  label_name:", self.label_name 
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.resubmit_label(self.user_name, 
                                     self.label_name,
                                     self.versioned_iu_name, 
                                     self.versioned_iu_level, 
                                     self.iu_name, 
                                     self.iu_level, 
                                     self.is_active, 
                                     self.iu_client_id
                                    )

        self.menu()

    #--------------------------------------
    #  RunAssessment
    #--------------------------------------
    def do_13(self, line):
        print "RunAssessment using parameters:"
        print "  user_name:", self.user_name 
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.run_assessment(self.user_name, 
                                     self.iu_name, 
                                     self.iu_level, 
                                     self.iu_client_id
                                    )

        self.menu()

    #--------------------------------------
    #  SaveTestResults
    #--------------------------------------
    def do_14(self, line):
        print "SaveTestResults using parameters:"
        print "  user_name:", self.user_name 
        print "  testResultsJson:", self.testResultsJson
        print "  assessment_id:", self.assessment_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results(self.user_name, 
                                        self.iu_name, 
                                        self.assessment_id
                                       )

        self.menu()

    #--------------------------------------
    #  SaveTestResultsV2
    #--------------------------------------
    def do_15(self, line):
        print "SaveTestResultsV2 using parameters:"
        print "Not complete yet"

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results_v2(self.user_name, 
                                           self.iu_name, 
                                           self.iu_client_id
                                          )

        self.menu()

    #--------------------------------------
    #  UpdateRequestState
    #--------------------------------------
    def do_16(self, line):
        print "UpdateRequestState using parameters:"
        print "  user_name:", self.user_name 
        print "  label_name:", self.label_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_name:", self.integration_line_name
        print "  state:", self.state
        print "  integration_line_client_id:", self.integration_line_client_id
        
        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.update_request_state(self.user_name, 
                                           self.label_name, 
                                           self.integration_line_name,
                                           self.integration_line_level,
                                           self.state,
                                           self.integration_line_client_id
                                          )

        self.menu()


    #--------------------------------------
    #  Config
    #--------------------------------------
    def help_config(self):
        print "Configuration menu to setup various parameters"
    def do_config(self, line):
        conf_menu().cmdloop() 
        self.menu()

    #--------------------------------------
    #  Menu
    #--------------------------------------
    def help_menu(self):
        print "Redraws the menu"
    def do_menu(self, line):
        self.menu()

    #--------------------------------------
    #  Quit ARIS
    #--------------------------------------
    def help_quit(self):
        print "Quits the program"
    def do_quit(self, line):
        sys.exit(1)

    # shortcuts for single letter commands
    help_q = help_quit
    help_e = help_quit
    do_q = do_quit
    do_Q = do_quit
    do_e = do_quit
    do_E = do_quit

    help_c = help_config
    do_c = do_config
    do_C = do_config

    help_m = help_menu
    do_m = do_menu
    do_M = do_menu
Esempio n. 28
0
class aris_menu(cmd.Cmd):
    def __init__(self):
        cmd.Cmd.__init__(self)
        self.prompt = "\n aris->"
        self.menu()

    def menu(self):
        self.cv = confVars()
        self.conf = confVars.getAll(self.cv)
        self.assessment_id = self.conf['assessment_id']
        self.assessment_type = self.conf['assessment_type']
        self.client_root = self.conf['client_root']
        self.client_spec = self.conf['client_spec']
        self.client_spec_file_location = self.conf['client_spec_file_location']
        self.client_spec_file_version = self.conf['client_spec_file_version']
        self.client_spec_p4_server = self.conf['client_spec_p4_server']
        self.client_spec_type = self.conf['client_spec_type']
        self.component_name = self.conf['component_name']
        self.created_by = self.conf['created_by']
        self.crm_build_id = self.conf['crm_build_id']
        self.dependency_list = self.conf['dependency_list']
        self.image_client_id = self.conf['image_client_id']
        self.integration_line_client_id = self.conf[
            'integration_line_client_id']
        self.integration_line_name = self.conf['integration_line_name']
        self.integration_line_level = self.conf['integration_line_level']
        self.is_active = self.conf['is_active']
        self.is_passed = self.conf['is_passed']
        self.is_static_label = self.conf['is_static_label']
        self.iu_client_id = self.conf['iu_client_id']
        self.iu_level = self.conf['iu_level']
        self.iu_name = self.conf['iu_name']
        self.label_level = self.conf['label_level']
        self.label_name = self.conf['label_name']
        self.label_poc = self.conf['label_poc']
        self.label_type = self.conf['label_type']
        self.predecessor = self.conf['predecessor']
        self.state = self.conf['state']
        self.testResultsJson = self.conf['testResultsJson']
        self.user_name = self.conf['user_name']
        self.versioned_iu_name = self.conf['versioned_iu_name']
        self.versioned_iu_level = self.conf['versioned_iu_level']

        print "\n     [ARIS Client " + ARIS_CLIENT_VERSION + "]\n\n" + \
        "     ARIS Request Commands\n" + " " + "-"*29 + "\n" + \
        "  1. CreateRequestImageBuildForProduct\n" + \
        "  2. CreateRequestComponentRevisionForImage\n" + \
        "  3. CreateRequestStaticLabelForImage\n" + \
        "  4. CreateRequest\n" + \
        "  5. GetBuildItemsForCrmBuild\n" + \
        "  6. GetDeviceAssessmentsForCrmBuild\n" + \
        "  7. GetIntegrationLineActiveComposition\n" + \
        "  8. GetLabelDetails\n" + \
        "  9. GetLastAssessmentDetail\n" + \
        " 10. GetLastLabels\n" + \
        " 11. RejectResubmittedLabel\n" + \
        " 12. ReSubmitLabel\n" + \
        " 13. RunAssessment\n" + \
        " 14. SaveTestResults\n" + \
        " 15. SaveTestResultsV2\n" + \
        " 16. UpdateRequestState\n" + \
        "  c. Configure function parameters\n\n" + \
        "      (Q)uit ---- Exits\n"

    #--------------------------------------
    #  CreateRequestImageBuildForProducts
    #--------------------------------------
    def do_1(self, line):
        print "CreateRequestImageBuildForProducts using parameters:"
        print "  user_name:", self.user_name
        print "  iu_name:", self.iu_name
        print "  label_name:", self.label_name
        print "  component_name:", self.component_name
        print "  predecessor:", self.predecessor
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_image_build_for_product(
                self.user_name, self.iu_name, self.label_name,
                self.component_name, self.predecessor, self.iu_client_id,
                self.image_client_id)

        self.menu()

    #--------------------------------------
    #  CreateRequestComponentRevisionForImage
    #--------------------------------------
    def do_2(self, line):
        print "CreateRequestComponentRevisionForImage using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_component_revision_for_image(
                self.versioned_iu_name, self.versioned_iu_level, self.iu_name,
                self.iu_level, self.label_name, self.label_type,
                self.component_name, self.label_level, self.state,
                self.label_poc, self.created_by, self.predecessor,
                self.client_root, self.is_active, self.iu_client_id,
                self.image_client_id, self.dependency_list)

        self.menu()

    #--------------------------------------
    #  CreateRequestStaticLabelForImage
    #--------------------------------------
    def do_3(self, line):
        print "CreateRequestStaticLabelForImage using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_spec:", self.client_spec
        print "  client_spec_type:", self.client_spec_type
        print "  client_spec_p4_server:", self.client_spec_p4_server
        print "  client_spec_file_location:", self.client_spec_file_location
        print "  client_spec_file_version:", self.client_spec_file_version
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  is_static_label:", self.is_static_label
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request_static_label_for_image(
                self.versioned_iu_name, self.versioned_iu_level, self.iu_name,
                self.iu_level, self.label_name, self.label_type,
                self.component_name, self.label_level, self.state,
                self.label_poc, self.created_by, self.predecessor,
                self.client_spec, self.client_spec_type,
                self.client_spec_p4_server, self.client_spec_file_location,
                self.client_spec_file_version, self.client_root,
                self.is_active, self.is_passed, self.is_static_label,
                self.iu_client_id, self.image_client_id, self.dependency_list)

        self.menu()

    #--------------------------------------
    #  CreateRequest
    #--------------------------------------
    def do_4(self, line):
        print "CreateRequest using parameters:"
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  label_name:", self.label_name
        print "  label_type:", self.label_type
        print "  component_name:", self.component_name
        print "  label_level:", self.label_level
        print "  state:", self.state
        print "  label_poc:", self.label_poc
        print "  created_by:", self.created_by
        print "  predecessor:", self.predecessor
        print "  client_spec:", self.client_spec
        print "  client_spec_type:", self.client_spec_type
        print "  client_spec_p4_server:", self.client_spec_p4_server
        print "  client_spec_file_location:", self.client_spec_file_location
        print "  client_spec_file_version:", self.client_spec_file_version
        print "  client_root:", self.client_root
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  is_static_label:", self.is_static_label
        print "  iu_client_id:", self.iu_client_id
        print "  image_client_id:", self.image_client_id
        print "  dependency_list:", self.dependency_list

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.create_request(
                self.versioned_iu_name, self.versioned_iu_level, self.iu_name,
                self.iu_level, self.label_name, self.label_type,
                self.component_name, self.label_level, self.state,
                self.label_poc, self.created_by, self.predecessor,
                self.client_spec, self.client_spec_type,
                self.client_spec_p4_server, self.client_spec_file_location,
                self.client_spec_file_version, self.client_root,
                self.is_active, self.is_passed, self.is_static_label,
                self.iu_client_id, self.image_client_id, self.dependency_list)

        self.menu()

    #--------------------------------------
    #  GetBuildItemsForCrmBuild
    #--------------------------------------
    def do_5(self, line):
        print "GetBuildItemsForCrmBuild using parameters:"
        print "  user_name:", self.user_name
        print "  crm_build_id:", self.crm_build_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_build_items_for_crm_build(self.user_name,
                                                    self.crm_build_id)

        self.menu()

    #--------------------------------------
    #  GetDeviceAssessmentsForCrmBuild
    #--------------------------------------
    def do_6(self, line):
        print "GetDeviceAssessmentsForCrmBuild using parameters:"
        print "  user_name:", self.user_name
        print "  crm_build_id:", self.crm_build_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_device_assessments_for_crm_build(
                self.user_name, self.crm_build_id)

        self.menu()

    #--------------------------------------
    #  GetIntegrationLineActiveComposition
    #--------------------------------------
    def do_7(self, line):
        print "GetIntegrationLineActiveComposition using parameters:"
        print "  user_name:", self.user_name
        print "  integration_line_name:", self.integration_line_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_client_id:", self.integration_line_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_integration_line_active_composition(
                self.user_name, self.integration_line_name,
                self.integration_line_level, self.integration_line_client_id)

        self.menu()

    #--------------------------------------
    #  GetLabelDetails
    #--------------------------------------
    def do_8(self, line):
        print "GetLabelDetails using parameters:"
        print "  label_name:", self.label_name

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_label_details(self.label_name)

        self.menu()

    #--------------------------------------
    #  GetLastAssessmentDetail
    #--------------------------------------
    def do_9(self, line):
        print "GetLastAssessmentDetail using parameters:"
        print "  user_name:", self.user_name
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  is_passed:", self.is_passed
        print "  assessment_type:", self.assessment_type
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_last_assessment_detail(
                self.user_name, self.versioned_iu_name,
                self.versioned_iu_level, self.iu_name, self.iu_level,
                self.is_active, self.is_passed, self.assessment_type,
                self.iu_client_id)

        self.menu()

    #--------------------------------------
    #  GetLastLabels
    #--------------------------------------
    def do_10(self, line):
        print "GetLastLabels using parameters:"
        print "  user_name:", self.user_name
        print "  state:", self.state
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.get_latest_labels(self.user_name, self.iu_name,
                                        self.iu_level, self.iu_client_id,
                                        self.state)

        self.menu()

    #--------------------------------------
    #  RejectResubmittedLabel
    #--------------------------------------
    def do_11(self, line):
        print "RejectResubmittedLabel using parameters:"
        print "  user_name:", self.user_name

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.reject_resubmitted_label(self.user_name, self.label_name,
                                               self.versioned_iu_name,
                                               self.versioned_iu_level,
                                               self.iu_name, self.iu_level,
                                               self.is_active,
                                               self.iu_client_id)

        self.menu()

    #--------------------------------------
    #  ReSubmitLabel
    #--------------------------------------
    def do_12(self, line):
        print "ResubmitLabel using parameters:"
        print "  user_name:", self.user_name
        print "  label_name:", self.label_name
        print "  versioned_iu_name:", self.versioned_iu_name
        print "  versioned_iu_level:", self.versioned_iu_level
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  is_active:", self.is_active
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.resubmit_label(self.user_name, self.label_name,
                                     self.versioned_iu_name,
                                     self.versioned_iu_level, self.iu_name,
                                     self.iu_level, self.is_active,
                                     self.iu_client_id)

        self.menu()

    #--------------------------------------
    #  RunAssessment
    #--------------------------------------
    def do_13(self, line):
        print "RunAssessment using parameters:"
        print "  user_name:", self.user_name
        print "  iu_name:", self.iu_name
        print "  iu_level:", self.iu_level
        print "  iu_client_id:", self.iu_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.run_assessment(self.user_name, self.iu_name,
                                     self.iu_level, self.iu_client_id)

        self.menu()

    #--------------------------------------
    #  SaveTestResults
    #--------------------------------------
    def do_14(self, line):
        print "SaveTestResults using parameters:"
        print "  user_name:", self.user_name
        print "  testResultsJson:", self.testResultsJson
        print "  assessment_id:", self.assessment_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results(self.user_name, self.iu_name,
                                        self.assessment_id)

        self.menu()

    #--------------------------------------
    #  SaveTestResultsV2
    #--------------------------------------
    def do_15(self, line):
        print "SaveTestResultsV2 using parameters:"
        print "Not complete yet"

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.save_test_results_v2(self.user_name, self.iu_name,
                                           self.iu_client_id)

        self.menu()

    #--------------------------------------
    #  UpdateRequestState
    #--------------------------------------
    def do_16(self, line):
        print "UpdateRequestState using parameters:"
        print "  user_name:", self.user_name
        print "  label_name:", self.label_name
        print "  integration_line_level:", self.integration_line_level
        print "  integration_line_name:", self.integration_line_name
        print "  state:", self.state
        print "  integration_line_client_id:", self.integration_line_client_id

        print "\n Press S to Submit or C to Cancel request",
        temp = raw_input()
        if temp == "s":
            self.aris = ArisExtAPI()
            self.aris.update_request_state(self.user_name, self.label_name,
                                           self.integration_line_name,
                                           self.integration_line_level,
                                           self.state,
                                           self.integration_line_client_id)

        self.menu()

    #--------------------------------------
    #  Config
    #--------------------------------------
    def help_config(self):
        print "Configuration menu to setup various parameters"

    def do_config(self, line):
        conf_menu().cmdloop()
        self.menu()

    #--------------------------------------
    #  Menu
    #--------------------------------------
    def help_menu(self):
        print "Redraws the menu"

    def do_menu(self, line):
        self.menu()

    #--------------------------------------
    #  Quit ARIS
    #--------------------------------------
    def help_quit(self):
        print "Quits the program"

    def do_quit(self, line):
        sys.exit(1)

    # shortcuts for single letter commands
    help_q = help_quit
    help_e = help_quit
    do_q = do_quit
    do_Q = do_quit
    do_e = do_quit
    do_E = do_quit

    help_c = help_config
    do_c = do_config
    do_C = do_config

    help_m = help_menu
    do_m = do_menu
    do_M = do_menu