blob: 9c4d563d5fc7a22d16ea1f076b5bf1d37e497e14 (
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
|
*** Settings ***
Documentation Creates VID VNF Instance
Library StringTemplater
Library String
Library OperatingSystem
Library UUID
Library Collections
Library DateTime
Resource ../optimizer_common.robot
Resource ../json_templater.robot
Resource ../files.robot
*** Variables ****
*** Keywords ***
Optimizer Validation Template
[Arguments] ${template_folder} ${request_file} ${expected_status_code} ${expected_message} ${variables}=[]
${uuid}= Generate UUID
${map}= Create Dictionary uuid=${uuid}
${data}= Fill JSON Template File ${template_folder}/${request_file} ${map}
${resp}= Post Optimizer alias optimize/schedule ${data}
@{listVars}= Evaluate ${variables}
Validate JSON Error ${resp.json()} ${expected_Message} ${listVars}
|