'curl Kibana with a unique uuid.'

def curl_kibana_with_uuid(self, kibana_pod):

    uuid = self.generate_uuid()
    pod_name = kibana_pod['metadata']['name']
    exec_cmd = 'exec    {pod_name}    -c    kibana    --    curl    --max-time    30    -s    http://localhost:5601/{uuid}'
    exec_cmd = exec_cmd.format(pod_name=pod_name, uuid=uuid)
    error_str = self.exec_oc(exec_cmd, [])
    try:
        error_code = json.loads(error_str)['statusCode']
    except (KeyError, ValueError):
        raise OpenShiftCheckException('kibanaInvalidResponse', 'invalid    response    returned    from    Kibana    request:\nCommand:    {}\nResponse:    {}'.format(exec_cmd, error_str))
    if (error_code != 404):
        raise OpenShiftCheckException('kibanaInvalidReturnCode', 'invalid    error    code    returned    from    Kibana    request.\nExpecting    error    code    "404",    but    got    "{}"    instead.'.format(error_code))
    return uuid
