예제 #1
0
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)
예제 #2
0
def sysinv_rest():
    r = Rest('sysinv', platform=True)
    return r
예제 #3
0
def gnocchi_rest():
    r = Rest('gnocchi', platform=False)
    return r
예제 #4
0
def gnocchi_rest(stx_openstack_required):
    r = Rest('gnocchi', platform=False)
    return r
예제 #5
0
def fm_rest():
    r = Rest('fm', platform=True)
    return r