From 371c8f05ce0c78ba428ef0d0b21228f5e869ac02 Mon Sep 17 00:00:00 2001 From: Mofassir Date: Mon, 11 Jan 2016 04:23:14 -0800 Subject: Updated the code to accept compute instead of compute.txt Change-Id: I06ce77e04db0e1c7d7de6c16b3a876740099e5ae Signed-off-by: Mofassir (cherry picked from commit 3ba92560b96e59a4e93a03f2e42a000778536905) --- data/my_key.pem | 50 +++++++++++++++++++++++++------------------------- data/opnfv-creds.sh | 16 ++++++++++++++++ data/pushtoDB.py | 23 ----------------------- 3 files changed, 41 insertions(+), 48 deletions(-) create mode 100644 data/opnfv-creds.sh delete mode 100644 data/pushtoDB.py (limited to 'data') diff --git a/data/my_key.pem b/data/my_key.pem index c7f92edb..66bd451b 100644 --- a/data/my_key.pem +++ b/data/my_key.pem @@ -1,27 +1,27 @@ -----BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEAy5MGVdCDzTpjM5fWf/Iz0lhqnjNNIK/D5empQk9OU3ihlbvV -vjacFdWvXuJqrUJ5dyoqyXvPdcHkbgP9AR5g+gNE+0pxXXkuOAkseTC8Bi1D+Hu+ -6z1oXygvXPVuIRIIvW6z8al/bpr0bdzwPyAwxalcS+ghM9upeCqHoS1hbkwdzxbr -iUKrHLeJ6dMQshcVnW8aKmA6UP9qHBY9UlIvoOvjQ7duEIe4fwvOrv8ENmtr7dUJ -c01XV/YhpCOX3l+VnzNtjot7ByTgyTQmxneeGbd2bb+MIfc/7S0C1riB1NyfCso3 -BrczKg19iViB3srDImd+87A1sbCmyCw0bLj9zQIDAQABAoIBABikUmb+14V3JNzw -60EPk2BJ3ZYKxbJINGFXOGrTaLrH5l9WnlfpClnGRPUqWRlh64wWKZm8B+/MKZd7 -mhuRjtGUpbv5VeGnsoWL7rs4v/nLbufcKs8U3tZt6dXJy6vrH+22Qcfl6Yv868uE -q/woLF8w0gBKOAKr+0aVd1d2Q83y50EvFv0izcRLD6HmDAoncy6WgPPPQfQYe4w9 -BrrEqcK/XrndCRSo338JlCOg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0c16t5elkgt6NgAZvSGLIcpOk0Emnst2bKGR +djgeB5cKNo0LKBxb+6fCYN6RvV747DpYIminN7e7K+nE91whveDcURUM8NSqMDA+ +PyJpD1hWFkQs7l7e+9hgNe8CgYA6mBq1i8paMkhbuQgo87dyyp/+YEvk1M04/q2c +FWVk9/AaWqciU6BiMmHyN7nLChXQQW8NMRWD4Ryyq2hfWJdUF1LljhbPKnx49tv8 +o0tjkCpko6oJs9BPi7xttSynji6fkPtwGL5WQ30xzkT/mDSFMDcWbcK0Br/02YNw +GFzeHQKBgQDnOVkiXl70Pvjn07oZxebr0rXLPMXY7zSJxGWlWL6i8A30tRfkSABf +mV4SfBv7f4T32JJvRZvNPdwGXoKJJKL+bykF22Xq2BWwgjZg0ubOWPY2e4ut5gsQ +4Nv6Okvd0nMNBjev7MPNXgiRalYSts+H4diy/u8RwRQ3jAMmY4B8/Q== -----END RSA PRIVATE KEY----- diff --git a/data/opnfv-creds.sh b/data/opnfv-creds.sh new file mode 100644 index 00000000..9266c19a --- /dev/null +++ b/data/opnfv-creds.sh @@ -0,0 +1,16 @@ +#!/bin/sh +export LC_ALL=C +export OS_NO_CACHE='true' +export OS_TENANT_NAME='admin' +export OS_USERNAME='admin' +export OS_PASSWORD='admin' +export OS_AUTH_URL='http://172.18.0.69:5000/v2.0' +export OS_AUTH_STRATEGY='keystone' +export OS_REGION_NAME='RegionOne' +export CINDER_ENDPOINT_TYPE='internalURL' +export GLANCE_ENDPOINT_TYPE='internalURL' +export KEYSTONE_ENDPOINT_TYPE='internalURL' +export NOVA_ENDPOINT_TYPE='internalURL' +export NEUTRON_ENDPOINT_TYPE='internalURL' +export OS_ENDPOINT_TYPE='internalURL' +export MURANO_REPO_URL='http://storage.apps.openstack.org/' diff --git a/data/pushtoDB.py b/data/pushtoDB.py deleted file mode 100644 index fab78520..00000000 --- a/data/pushtoDB.py +++ /dev/null @@ -1,23 +0,0 @@ -import requests -import json -import os -TEST_DB = 'http://213.77.62.197' - - - -def push_results_to_db(db_url=TEST_DB, case_name, logger=None, pod_name='dell-us-testing-bm-1', payload): - url = db_url + "/results" - installer = get_installer_type(logger) - params = {"project_name": "functest", "case_name": case_name, - "pod_name": os.environ[''], "installer": installer, - "version": git_version, "details": payload} - - headers = {'Content-Type': 'application/json'} - try: - r = requests.post(url, data=json.dumps(params), headers=headers) - logger.debug(r) - return True - except: - print "Error:", sys.exc_info()[0] - return False - -- cgit 1.2.3-korg