summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/tests/test_network_function.py
diff options
context:
space:
mode:
authorSagarS <sagar.shetty@est.tech>2021-08-16 16:55:10 +0100
committerSagarS <sagar.shetty@est.tech>2021-08-26 13:25:20 +0100
commit4b80d09d8c55c6361dcea126e267ae7207bdaac3 (patch)
tree583fbef61ddf976395380b5981f7cc3af932c90e /components/pm-subscription-handler/tests/test_network_function.py
parent1972718be2da50d09ea3284a7ab1746952be4cbb (diff)
Subscription API DB changes with IPV4, IPV6 updates1.3.2-pmsh
Issue-ID: DCAEGEN2-2823 Change-Id: Ie455b1016ae1372934fa874667226ca9972b8d7f Signed-off-by: SagarS <sagar.shetty@est.tech>
Diffstat (limited to 'components/pm-subscription-handler/tests/test_network_function.py')
-rwxr-xr-xcomponents/pm-subscription-handler/tests/test_network_function.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/pm-subscription-handler/tests/test_network_function.py b/components/pm-subscription-handler/tests/test_network_function.py
index 5a1a6ba8..3e38b9c6 100755
--- a/components/pm-subscription-handler/tests/test_network_function.py
+++ b/components/pm-subscription-handler/tests/test_network_function.py
@@ -1,5 +1,5 @@
# ============LICENSE_START===================================================
-# Copyright (C) 2019-2020 Nordix Foundation.
+# Copyright (C) 2019-2021 Nordix Foundation.
# ============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -33,12 +33,14 @@ class NetworkFunctionTests(BaseClassSetup):
super().setUp()
self.nf_1 = NetworkFunction(sdnc_model_name='blah', sdnc_model_version=1.0,
**{'nf_name': 'pnf_1',
- 'ip_address': '1.2.3.4',
+ 'ipv4_address': '204.120.0.15',
+ 'ipv6_address': '2001:db8:3333:4444:5555:6666:7777:8888',
'model_invariant_id': 'some_id',
'model_version_id': 'some_other_id'})
self.nf_2 = NetworkFunction(sdnc_model_name='blah', sdnc_model_version=2.0,
**{'nf_name': 'pnf_2',
- 'ip_address': '1.2.3.4',
+ 'ipv4_address': '204.120.0.15',
+ 'ipv6_address': '2001:db8:3333:4444:5555:6666:7777:8888',
'model_invariant_id': 'some_id',
'model_version_id': 'some_other_id'})
with open(os.path.join(os.path.dirname(__file__), 'data/aai_model_info.json'), 'r') as data: