summaryrefslogtreecommitdiffstats
path: root/robot/testsuites/security.robot
blob: 442da47d8488ae34b9c2dd63bf3277217f79344d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
*** Settings ***
| Documentation | Security validation                                    |
| ...           | This suite requires declaring ${ACTUAL_NODEPORTS_FILE} |
| Default tags  | security                                               |
| Library       | OperatingSystem                                        |
| Library       | ONAPLibrary.JSON                                       |

*** Variables ***
| ${EXPECTED_NODEPORTS_FILE} | ../assets/security/ExpectedNodePorts.json |

*** Test Cases ***
Validate present NodePorts
|   | ${expected_nodeports}=       | Get file               | ${EXPECTED_NODEPORTS_FILE} |
|   | ${actual_nodeports}=         | Get file               | ${ACTUAL_NODEPORTS_FILE}   |
|   | JSON should contain sub JSON | ${expected_node_ports} | ${actual_node_ports}       |