Comments (11)
Method takes a package uuid as argument and returns a service uuid. Just checked it locally and seems to work correctly.
Could be an issue with the package. Which env and what is the package uuid?
from tng-tests.
first of all, Thank you very much for you quick response! :-)
well i created a very short test with the package uuid hardcoded:
*** Settings ***
Documentation Test suite for enforcing a Runtime Policy to the SP platform
Library tnglib
*** Variables ***
${HOST} http://int-sp-ath.5gtango.eu # the name of SP we want to use
${PACKAGE_UUID} 1270f101-44c1-418c-bc39-58e6b65e611a
*** Test Cases ***
Setting the SP Path
Set SP Path ${HOST}
${result} = Sp Health Check
Should Be True ${result}
Upload the Package
${service} = Map Package On Service ${PACKAGE_UUID}
Should Be True ${service[0]}
Set Suite Variable ${SERVICE_UUID} ${service[1]}
Log ${SERVICE_UUID}
i get the same error!
i also pull all latest tng-cli updates today....
Are you able to run the above small test ?
==============================================================================
Test :: Test suite for enforcing a Runtime Policy to the SP platform
==============================================================================
Setting the SP Path | PASS |
------------------------------------------------------------------------------
Upload the Package | FAIL |
KeyError: 'name'
------------------------------------------------------------------------------
Test :: Test suite for enforcing a Runtime Policy to the SP platform | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
==============================================================================
from tng-tests.
I'm getting the same error. Seems that the nsd of the package you are using doesn't have the 'name' key.
from tng-tests.
When requesting the nsds, the payload of the response is wrong for the nsd of your package.
created_at: '2019-06-24T12:08:05.513+00:00'
md5: 4d53b4ef04e35720e719900331a20a32
nsd:
nsd-catalog:
nsd:
constituent-vnfd:
It shouldn't have the nsd-catalog nesting. Either a GK issue or a package issue.
from tng-tests.
i am using the eu.5gtango.ns-squid-haproxy.0.1.tgo package from y1 demo.
Do we have an updated version of this specific NS??
I could also base my tests on the test-nsid1v NS for homogeneity reasons (i saw that you use this for testing scaling out/in functionality)
The only problem is that test-nsid1v NS does not have monitoring_parameters
or snmp_parameters
as the ns-squid-haproxy and i need them so as to enable specific monitoring rules for the alerts.
Can we enhance the test-nsid1v with monitoring metrics or get an updated version of squid-haproxy service?
from tng-tests.
I don't have a strong opinion on which of the two options to go with. Either way should work I guess.
from tng-tests.
For me is the same. i would opt for the more quick one.
Did you create the test-nsid1v service? if yes can you add some dummy monitoring metrics such as:
monitoring_parameters:
- name: "cpu_util"
unit: "Percentage"
- name: "memory_usage"
unit: "MB"
i can also do it.... not sure if i have to change something more within the package.
About the squid-haproxy NS not sure what i have to change...
NS name
seems to be there....
https://github.com/sonata-nfv/tng-y1-demo/blob/master/tango/squid-haproxy/Definitions/ns-squid-haproxy.yaml#L5
from tng-tests.
The squid-haproxy issue is not the nsd itself, it is the payload formatting when requesting the nsd from the GTK. You could check with Jose why the formatting is unexpected. Should be an easy fix.
You can add monitoring parameters as you want to the test-sdi1v service. I think Panos is the guy to ask if you have doubts there.
from tng-tests.
i think i will try to solve the squid-haproxy case.
Is the test-nsid1v horizontally scalable? have you tested that? if not maybe i will come up with more issues while creating the policies integrated tests.
One last thing....at the portal is see that the squid-haproxy service is correctly fetched as service....
https://int-sp-ath.5gtango.eu/service-platform/network-services/1d09d884-a418-4129-add3-b936e6b5bd17
I do not understand what to ask at Jose for. If the payload formatting was malformed then it would not be available neither from the portal. right?
Which API you requested at so as to get the wrong response?
When requesting the nsds, the payload of the response is wrong for the nsd of your package.
created_at: '2019-06-24T12:08:05.513+00:00' md5: 4d53b4ef04e35720e719900331a20a32 nsd: nsd-catalog: nsd: constituent-vnfd:
It shouldn't have the nsd-catalog nesting. Either a GK issue or a package issue.
Thanks again in advance!
from tng-tests.
curl http://int-sp-ath.5gtango.eu:32002/api/v3/services | jq .
there is a different in nesting for your nsd. No idea why this works on the portal.
from tng-tests.
Different nesting seems to be related with the platform (5gtango or osm).
ns-squid-haproxy NA is saved as an osm package within the 5gtango portal "platform": "osm"
the .tgo i submit should be saved at portal as 5gtango package.
i will follow up the conversation at gitter so as to come up with a solution in collaboration with gatekeeper.
Thanks a lot for the guidance!
:-)
from tng-tests.
Related Issues (20)
- Slice - Network Service Composition 3.1.1
- Slice - Share Network Service 3.2.1
- Slice - SLA within a Network Slice 3.3.1 HOT 1
- Slice - Network Service Composition 3.1.2
- Slice - Share Network Service 3.2.2
- g1-10_analyze_test_results HOT 1
- [User management] Test admin role HOT 7
- [User management] Test developer role
- [User management] Test customer role
- vnv-g1-07_deploy_service_charms_osm
- vnv-g1-03_deploy_service_and_test_onap
- vnv-g1-09_deploy_service_cloud_init_sonata
- vnv-g1-09_deploy_hybrid_package
- vnv-g1-01_deploy_service_and_test_sonata
- vnv-g1-02_deploy_service_and_test_osm
- vnv-g1-06_deploy_service_cloud_init_osm
- vnv-g1-04_deploy_pre_onboarded_service_sonata
- vnv-g1-05_deploy_pre_onboarded_service_osm
- vnv-g1-08_grab_store_metrics_from_sonata HOT 2
- vnv-g1-09_storage_metrics_from_sonata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tng-tests.