Closed mpeuster closed 6 years ago
Example command: tng-package -u misc/5gtango-ns-package-example.tgo -o /tmp -v
Status: Started to parse TOSCA.meta file
Status: TOSCA.meta, ETSI MF and NAPD are read. Now metadata needs to be combined.
Status: TOSCA.meta and ETSI MF are merged to empty NapdRecord. Next step: Deep-merge NAPD.yaml into NapdRecord (packager.py l.101) Unittests for this!
Next step: Complete _assert_usable_tango_package (packager.py l463) Done.
Next steps (packager.py l440):
Next step: Refactor checksum method and its error handling
Next step: Error handling in REST mode
# terminal A
python misc/callback_mock.py
# terminal B
tng-package -s
# terminal C
## good package
curl -X POST -v -H "Content-Type: multipart/form-data" \
-F callback_url="http://127.0.0.1:8000/api/v1/packages/on-change" \
-F package="@misc/5gtango-ns-package-example.tgo" \
http://127.0.0.1:5099/api/v1/packages
## bad package
curl -X POST -v -H "Content-Type: multipart/form-data" \
-F callback_url="http://127.0.0.1:8000/api/v1/packages/on-change" \
-F package="@misc/5gtango-ns-package-example-malformed.tgo" \
http://127.0.0.1:5099/api/v1/packages
Next:
Done!
TangoPackager
andEtsiPackager
~store to local file backend (replaces catalogue for first version)~IMPORTANT
implement specific unittests for 5GTANGO packager (use example package)Additional features
We might create independent issues for these.
_etsi_to_napd_package_content
)We skip
label
andreference
support in v0.