Fix Bug 2197 - Prometheus cannot be authenticated in Robot tests
[osm/tests.git] / robot-systest / testsuite / epa_03-crud_operations_on_sdnc.robot
index c0e27da..982a8de 100644 (file)
 #   limitations under the License.
 
 *** Settings ***
-Documentation     [EPA-03] CRUD operations on SDNC accounts.
+Documentation   [EPA-03] CRUD operations on SDNC accounts.
 
 Resource   %{ROBOT_DEVOPS_FOLDER}/lib/sdnc_lib.robot
 
 Variables   %{ROBOT_DEVOPS_FOLDER}/resources/epa_03-crud_operations_on_sdnc_data.py
 
+Force Tags   epa_03   cluster_epa   daily   regression
+
 Suite Teardown   Run Keyword And Ignore Error   Delete Basic SDNC
 
 
+*** Variables ***
+${sdnc_enabled_max_wait_time}   1min
+${sdnc_enabled_pol_time}   10
+
+
 *** Test Cases ***
 Create Basic SDNC
-    [Tags]  sdnc_crud  sanity   regression
 
-    ${created_sdnc_id}=  Create SDNC  ${sdnc_name}  ${sdnc_user}  ${sdnc_password}  ${sdnc_url}  ${sdnc_type}
-    Check for SDNC  ${sdnc_name}
+    ${created_sdnc_id}=   Create SDNC   ${sdnc_name}   ${sdnc_user}   ${sdnc_password}   ${sdnc_url}   ${sdnc_type}
+    Set Suite Variable   ${sdnc_id}   ${created_sdnc_id}
+    Wait Until Keyword Succeeds   ${sdnc_enabled_max_wait_time}   ${sdnc_enabled_pol_time}   Check for SDNC   ${sdnc_id}
 
 
 Check SDNC Status Is Healthy
-    [Tags]  sdnc_crud  sanity   regression
 
-    Check for SDNC Status  ${sdnc_name}  ${prometheus_host}  ${prometheus_port}
+    Check for SDNC Status   ${sdnc_id}   ${prometheus_host}   ${prometheus_port}   ${prometheus_user}   ${prometheus_password}
 
 
 Delete Basic SDNC
-    [Tags]  sdnc_crud  sanity   regression  cleanup
+    [Tags]   cleanup
 
-    Delete SDNC  ${sdnc_name}
+    Delete SDNC   ${sdnc_name}