blob: 1595cd4a460ed5f902c76feeb7b46b53d7152b34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
*** Settings ***
Documentation The main interface for interacting with PRH. It handles low level stuff like managing the http request library
Library PrhLibrary.py
Library RequestsLibrary
*** Variables ***
*** Keywords ***
PRH Suite Setup
[Documentation] Start DMaaP and AAI Mockup Server
${ret}= Setup DMaaP Server
Should Be Equal As Strings ${ret} true
${ret}= Setup AAI Server
Should Be Equal As Strings ${ret} true
PRH Suite Shutdown
[Documentation] Shutdown DMaaP and AAI Mockup Server
${ret}= Shutdown DMaap Server
Should Be Equal As Strings ${ret} true
${ret}= Shutdown AAI Server
Should Be Equal As Strings ${ret} true
Get event from DMaaP
[Arguments] ${ip} ${endpoint}
[Documentation] Get an event from DMaaP
${url}= Catenate SEPARATOR= ${ip} ${endpoint}
Log Creating session ${url}
Create Session prh-d1 ${url}
${resp}= Get Request prh-d1 ${url}
Log Received response from dcae ${resp.json()}
[Return] ${resp}
Send patch from AAI
[Arguments] ${ip} ${endpoint}
[Documentation] Get patch from AAI
${url}= Catenate SEPARATOR= ${ip} ${endpoint}
Log Creating session ${url}
Create Session prh-d1 ${url}
${resp}= Patch Request prh-d1 ${url}
Log ${resp}
[Return] ${resp}
Get json from AAI
[Arguments] ${ip} ${endpoint}
[Documentation] Get json from AAI
${url}= Catenate SEPARATOR= ${ip} ${endpoint}
Log Creating session ${url}
Create Session prh-d1 ${url}
${resp}= Get Request prh-d1 ${url}
Log Received response from dcae ${resp.json()}
[Return] ${resp}
Post json to DMaaP
[Arguments] ${ip} ${endpoint} ${PNF_READY}
[Documentation] Get json from AAI
${url}= Catenate SEPARATOR= ${ip} ${endpoint}
Log Creating session ${url}
Create Session prh-d1 ${url}
${resp}= Post Request prh-d1 ${url} data=${PNF_READY}
Log ${resp}
[Return] ${resp}
|