b0d86df30e6ff22147edd48d897e0d168ef414a9
[osm/tests.git] / robot-systest / testsuite / epa_03-crud_operations_on_sdnc.robot
1 #   Licensed under the Apache License, Version 2.0 (the "License");
2 #   you may not use this file except in compliance with the License.
3 #   You may obtain a copy of the License at
4 #
5 #       http://www.apache.org/licenses/LICENSE-2.0
6 #
7 #   Unless required by applicable law or agreed to in writing, software
8 #   distributed under the License is distributed on an "AS IS" BASIS,
9 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 #   See the License for the specific language governing permissions and
11 #   limitations under the License.
12
13 *** Settings ***
14 Documentation     [EPA-03] CRUD operations on SDNC accounts.
15
16 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/sdnc_lib.robot
17
18 Variables   %{ROBOT_DEVOPS_FOLDER}/resources/epa_03-crud_operations_on_sdnc_data.py
19
20 Force Tags   epa_03   cluster_epa   daily   regression
21
22 Suite Teardown   Run Keyword And Ignore Error   Delete Basic SDNC
23
24
25 *** Variables ***
26 ${sdnc_enabled_max_wait_time}   1min
27 ${sdnc_enabled_pol_time}   10
28
29
30 *** Test Cases ***
31 Create Basic SDNC
32
33     ${created_sdnc_id}=  Create SDNC  ${sdnc_name}  ${sdnc_user}  ${sdnc_password}  ${sdnc_url}  ${sdnc_type}
34     Set Suite Variable  ${sdnc_id}  ${created_sdnc_id}
35     Wait Until Keyword Succeeds  ${sdnc_enabled_max_wait_time}  ${sdnc_enabled_pol_time}  Check for SDNC  ${sdnc_id}
36
37
38 Check SDNC Status Is Healthy
39
40     Check for SDNC Status  ${sdnc_id}  ${prometheus_host}  ${prometheus_port}
41
42
43 Delete Basic SDNC
44     [Tags]   cleanup
45
46     Delete SDNC  ${sdnc_name}