+ [Documentation] Verify database has been created and is empty
+ [Timeout] 10 seconds
+ ${resp}= Get Request pmsh_session ${SUBSCRIPTIONS_ENDPOINT}
+ Should Be True ${resp.status_code} == 200
+ Should Contain ${resp.text} []
+
+Verify PNF detected in AAI when administrative state unlocked
+ [Tags] PMSH_03
+ [Documentation] Verify PNF detected when administrative state unlocked
+ [Timeout] 40 seconds
+ SetAdministrativeStateToUnlocked
+ Sleep 31 Allow PMSH time to pick up changes in CBS config
+ ${resp}= Get Request pmsh_session ${SUBSCRIPTIONS_ENDPOINT}
+ Should Be Equal As Strings ${resp.json()[0]['subscription_status']} UNLOCKED
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][0]['nf_name']} pnf-existing
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][0]['orchestration_status']} Active
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][0]['nf_sub_status']} PENDING_CREATE
+
+Verify Policy response on MR is handled
+ [Tags] PMSH_04
+ [Documentation] Verify policy response on MR is handled
+ [Timeout] 60 seconds
+ SimulatePolicyResponse ${MR_EXPECTATION_POLICY_RESPONSE_PNF_EXISTING}
+ Sleep 31 seconds Ensure Policy response on MR is picked up
+ ${resp}= Get Request pmsh_session ${SUBSCRIPTIONS_ENDPOINT}
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][0]['nf_sub_status']} CREATED
+
+Verify AAI event on MR detailing new PNF being detected is handled
+ [Tags] PMSH_05
+ [Documentation] Verify PNF created AAI event on MR is handled
+ [Timeout] 60 seconds
+ SimulateNewPNF
+ Sleep 31 seconds Ensure AAI event on MR is picked up
+ ${resp}= Get Request pmsh_session ${SUBSCRIPTIONS_ENDPOINT}
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][1]['nf_name']} pnf_newly_discovered
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][1]['orchestration_status']} Active
+ Should Be Equal As Strings ${resp.json()[0]['network_functions'][1]['nf_sub_status']} PENDING_CREATE
+
+Verify AAI event on MR detailing PNF being deleted is handled
+ [Tags] PMSH_06
+ [Documentation] Verify PNF deleted AAI event on MR is handled
+ [Timeout] 60 seconds
+ SimulateDeletedPNF
+ Sleep 31 seconds Ensure AAI event on MR is picked up
+ ${resp}= Get Request pmsh_session ${SUBSCRIPTIONS_ENDPOINT}
+ Should Not Contain ${resp.text} pnf_newly_discovered