aboutsummaryrefslogtreecommitdiffstats
path: root/tests/so/etsi/data
diff options
context:
space:
mode:
authorAndrewLamb <andrew.a.lamb@est.tech>2021-02-12 13:58:36 +0000
committerAndrewLamb <andrew.a.lamb@est.tech>2021-02-12 14:39:54 +0000
commit29da40e2e76f35598642d52bdf35fc9a501ac7dc (patch)
tree22d18e455570613ddf1a1663c9b6f85a39c3b543 /tests/so/etsi/data
parent4fbb28749f57727dc23790b6e9ec480ca61490fb (diff)
Add Tests for VNF Package Mgmt - Subscribe and Notify
Change-Id: Ie6a14445f3b90975ec579ebf96c806365a01b8ca Issue-ID: INT-1847 Signed-off-by: AndrewLamb <andrew.a.lamb@est.tech>
Diffstat (limited to 'tests/so/etsi/data')
-rw-r--r--tests/so/etsi/data/responses/expectedVnfPackage.json6
-rw-r--r--tests/so/etsi/data/subscriptionRequest.json23
2 files changed, 26 insertions, 3 deletions
diff --git a/tests/so/etsi/data/responses/expectedVnfPackage.json b/tests/so/etsi/data/responses/expectedVnfPackage.json
index c841956c..41eeb8b1 100644
--- a/tests/so/etsi/data/responses/expectedVnfPackage.json
+++ b/tests/so/etsi/data/responses/expectedVnfPackage.json
@@ -10,13 +10,13 @@
"operationalState": "ENABLED",
"_links": {
"self": {
- "href": "http://so-vnfm-adapter:9092/so/vnfm-adapter/v1/vnfpkgm/v1/vnf_packages/73522444-e8e9-49c1-be29-d355800aa349"
+ "href": "http://so-vnfm-adapter.onap:9092/so/vnfm-adapter/v1/vnfpkgm/v1/vnf_packages/73522444-e8e9-49c1-be29-d355800aa349"
},
"vnfd": {
- "href": "http://so-vnfm-adapter:9092/so/vnfm-adapter/v1/vnfpkgm/v1/vnf_packages/73522444-e8e9-49c1-be29-d355800aa349/vnfd"
+ "href": "http://so-vnfm-adapter.onap:9092/so/vnfm-adapter/v1/vnfpkgm/v1/vnf_packages/73522444-e8e9-49c1-be29-d355800aa349/vnfd"
},
"packageContent": {
- "href": "http://so-vnfm-adapter:9092/so/vnfm-adapter/v1/vnfpkgm/v1/vnf_packages/73522444-e8e9-49c1-be29-d355800aa349/package_content"
+ "href": "http://so-vnfm-adapter.onap:9092/so/vnfm-adapter/v1/vnfpkgm/v1/vnf_packages/73522444-e8e9-49c1-be29-d355800aa349/package_content"
}
}
}
diff --git a/tests/so/etsi/data/subscriptionRequest.json b/tests/so/etsi/data/subscriptionRequest.json
new file mode 100644
index 00000000..c54bf3c2
--- /dev/null
+++ b/tests/so/etsi/data/subscriptionRequest.json
@@ -0,0 +1,23 @@
+{
+ "filter": {
+ "notificationTypes": [
+ "VnfPackageOnboardingNotification",
+ "VnfPackageChangeNotification"
+ ],
+ "vnfdId": [
+ "b1bb0ce7-2222-4fa7-95ed-4840d70a1177"
+ ],
+ "operationalState": ["ENABLED", "DISABLED"]
+ },
+ "callbackUri": "http://so-vnfm-simulator:9093/vnfpkgm/v1/notification",
+ "authentication": {
+ "authType": [
+ "OAUTH2_CLIENT_CREDENTIALS"
+ ],
+ "paramsOauth2ClientCredentials": {
+ "clientId": "vnfm",
+ "clientPassword": "password1$",
+ "tokenEndpoint": "http://so-vnfm-simulator:9093/oauth/token?grant_type=client_credentials"
+ }
+ }
+}