X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FScripts%2Fe2mdbscripts.py;h=b452b93322bf8b3a832e53d89f5978a5f16448a9;hb=380b7a2a46087a054ebfac57f3dbf7949d318cc6;hp=936346b23856a3fb6cf1bf21b95678e5329bb57c;hpb=6c768752831c511df0a38f76116fc44cf2a4caf3;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Scripts/e2mdbscripts.py b/Automation/Tests/Scripts/e2mdbscripts.py index 936346b..b452b93 100644 --- a/Automation/Tests/Scripts/e2mdbscripts.py +++ b/Automation/Tests/Scripts/e2mdbscripts.py @@ -40,6 +40,15 @@ def verify_e2t_instance_has_no_associated_rans(e2tAddress): assocRanList = e2tInstanceDic.get("associatedRanList") return not assocRanList +def verify_e2t_instance_exists_in_addresses(e2tAddress): + r = getRedisClientDecodeResponse() + e2tAddressesJson = r.get("{e2Manager},E2TAddresses") + e2tAddresses = json.loads(e2tAddressesJson) + return e2tAddress in e2tAddresses + +def verify_e2t_instance_key_exists(e2tAddress): + r = getRedisClientDecodeResponse() + return r.exists("{e2Manager},E2TInstance:"+e2tAddress) def populate_e2t_instances_in_e2m_db_for_get_e2t_instances_tc(): r = getRedisClientDecodeResponse()