def check_rest_api(): LOG.info("Check sysinv REST API") sysinv_rest = Rest('sysinv', platform=True) resource = '/controller_fs' status_code, text = sysinv_rest.get(resource=resource, auth=True) message = "Retrieved: status_code: {} message: {}" LOG.debug(message.format(status_code, text)) LOG.info("Check status_code of 200 is received") message = "Expected status_code of 200 - received {} and message {}" assert status_code == 200, message.format(status_code, text)
def sysinv_rest(): r = Rest('sysinv', platform=True) return r
def gnocchi_rest(): r = Rest('gnocchi', platform=False) return r
def gnocchi_rest(stx_openstack_required): r = Rest('gnocchi', platform=False) return r
def fm_rest(): r = Rest('fm', platform=True) return r