X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=solution%2Fdev%2Fves-test-collector%2Fclient-scripts-ves-v7%2FsendVesNotification.py;fp=solution%2Fdev%2Fves-test-collector%2Fclient-scripts-ves-v7%2FsendVesNotification.py;h=55b5d34bc5ef7b68c0356329cfbe6fe0de51b30f;hb=731fccb5a8fc45063b99d0326aac3a607e044322;hp=6c4d52187038278e001d30afcb564f18ff370151;hpb=207c8907e2819d9b87f03f7110e9365a3a074957;p=oam.git diff --git a/solution/dev/ves-test-collector/client-scripts-ves-v7/sendVesNotification.py b/solution/dev/ves-test-collector/client-scripts-ves-v7/sendVesNotification.py index 6c4d521..55b5d34 100644 --- a/solution/dev/ves-test-collector/client-scripts-ves-v7/sendVesNotification.py +++ b/solution/dev/ves-test-collector/client-scripts-ves-v7/sendVesNotification.py @@ -23,7 +23,7 @@ import sys import getopt import json import requests -from globalVesEventEmitter import getInitData, saveExample +from globalVesEventEmitter import getInitData, saveExample, sendVesEvent # Construct VES body and send def performJob(domain, pnfId): @@ -56,17 +56,10 @@ def performJob(domain, pnfId): saveExample(initData) # Send VES Event - url = initData['config']['vesEndpoint']['url'] - username = initData['config']['vesEndpoint']['username'] - password = initData['config']['vesEndpoint']['password'] - verify = initData['config']['vesEndpoint']['verify'] - response = requests.post(url, json=initData['body'], auth=( - username, password), verify=verify) - print(response) - -# Analysing command line parameters + sendVesEvent(initData) +# Analysing command line parameters def main(argv): domain = 'notification' usage = 'sendVesNotification.py --pnfId '