def main():
     #  step through the json server configuration file, checking the assertions against each server/SUT...
    SUTs = get_sut_prop()
    for sut_prop in SUTs:
        if sut_prop:
            #initalize tool before anything else..this sets up all the necc variables for this sut in this tool
            sut = setup_tool(sut_prop)  
            print('Running assertions on SUT %s...' %(sut_prop['DnsName']))   
            rfs_test.run(sut)
        else:
            print('No SUT found in properties.json. Please add an SUT following the format provided in readme.txt and try running the Redfish Service Check Tool again')
            exit(0)
Esempio n. 2
0
import logger


def run(self):
    # create logger obj
    log = logger.Log()
    # initialize assertions excel sheet at this point
    log.init_xl()
    ## Open/initialize the log files
    log.assertion_log('OPEN', None, self.SUT_prop,
                      self.Redfish_URIs['Service_Root'])
    rfs_test.TEST_protocol_details.Assertion_6_3_1(self, log)
    ## close log files
    log.assertion_log('CLOSE', None)


if __name__ == "__main__":
    SUTs = rf_client.get_sut_prop()
    for sut_prop in SUTs:
        if sut_prop:
            #initalize tool before anything else..this sets up all the necc variables for this sut in this tool
            sut = rf_client.setup_tool(sut_prop)
            if sut:
                #run(sut)
                rfs_test.run(sut)
        else:
            print(
                'No SUT found in properties.json. Please add an SUT following the format provided in readme.txt and try running the tool again'
            )
            exit(0)