aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/hosts7
-rw-r--r--data/my_key.pem50
-rw-r--r--data/pushtoDB.py23
3 files changed, 51 insertions, 29 deletions
diff --git a/data/hosts b/data/hosts
index 9a91cb0d..66320d25 100644
--- a/data/hosts
+++ b/data/hosts
@@ -1,4 +1,3 @@
-[2-host]
-172.18.0.104
-[1-server]
-172.18.0.105
+[host]
+172.18.0.114
+172.18.0.113
diff --git a/data/my_key.pem b/data/my_key.pem
index ddf097e0..c7f92edb 100644
--- a/data/my_key.pem
+++ b/data/my_key.pem
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
-MIIEowIBAAKCAQEA1gn04GbR4xZqRU9N4wp5+nlJxLTUO1o6X2XvAYvJeT+WczSt
-ghX5SE5EYCHaL2NoAaMpm6fXUMNAw/LdC5n2d6FzDKuvECmdChEUrFv2WTGleDJG
-uy3TjJQwMTZTC16ZV9MpBvkztEwxQf5PYjM2fAR3GJ27Lk9xZFeN4yB5NbK0AB2g
-PY8MMZfsvXKNgxci8a7MMnaGvSq3YeDIiB3S6QdUFUWW69JE/c69UkwUl9s1VWlA
-/j8GcoH5O1I2mlBfMj63QiYsQOcUEx3FSHoLqNeaDPCvRi0TEnTKRNtRln4Vg9Ky
-/TqGaB4ctj0IWZyFi30tME1o7n5z/JA/4A4AxQIDAQABAoIBAEq0au2vtW4HMsxC
-I7MswuozTxYC71hP47PMRiFKAuX41bAcILsYpEsiVicfaaHEllaL9kfHyxT7MS2z
-JIeaEzYp+ZfgjFedzpvm3kpSRqdW9qP/GETYd8/HIRLsHQwI1oiawOUYMX2qYj7g
-XiCuM0QR4ueKlfxR6gfVr0Yo3WVp9/77HN2y4ecqBJXyoUiVRrziXhdhwJrlkxwF
-06QpcGTuqzeyMZt0m3btaB5y7jhwS+e/NFUGk1pinaxS+nfN3j5zQ1KrW0x9zOTJ
-3eL2a5y+x4v18V5HE7Jkjwcc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fKGudGpdmeho
+7+y2R0Zj+3HcjXyIEi0Q9x+UxoxmRblyaRYly80LPo0xduYK7QFq+0m4vMy2J1/1
+ffabMq1NbXbdRaNdV14p9d0CgYEAwcGGOqMaDTDtqnCUZjZVbr5eFNMqPOqa2gzA
+BRBp7z9+n1bmEqQ834HMYEPQgQoCCbt4UIyeRAlL98V7P+2rnHe45XTYTNST212i
+5Iit++NyVjd2a8TtdsYIDqOQTWEo7i7stwseWUShdLdroTB1T2EMGS4qCw4WBn42
+j207GWsCgYAEEzJAEA90hE1OqxLmU54YxoenZCIYzuTwRpPKV8e09yWWtvvPV/z+
+pxLbAD7fH0KrfDUJcpG9yjRZPXYNFnSsGzaa69U5hUUVGJt+v/o0c8iQHxqjgYUz
+F41TE6oorp0Q5pPOy9Sy9ZBBKqGo6JxozCFp+w1XVm63bzNLKCR9DQ==
-----END RSA PRIVATE KEY-----
diff --git a/data/pushtoDB.py b/data/pushtoDB.py
new file mode 100644
index 00000000..fab78520
--- /dev/null
+++ b/data/pushtoDB.py
@@ -0,0 +1,23 @@
+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
+