2 Library OperatingSystem
6 ${csarpath} ${SCRIPTS}/../tests/vnfsdk-pkgtools/tosca-metadata/csar
7 ${create_output} ${OUTPUT DIR}/test.csar
8 ${open_dir} ${OUTPUT DIR}/extracted
12 [Documentation] Create CSAR package
13 ${output}= Run vnfsdk csar-create -d ${create_output} --manifest test_entry.mf --history ChangeLog.txt --tests Tests --licenses Licenses ${csarpath} test_entry.yaml
15 File Should Exist ${create_output}
18 [Documentation] Open CSAR package
19 ${output}= Run vnfsdk csar-open -d ${open_dir} ${create_output}
21 Directory Should Not Be Empty ${open_dir}
22 ${rc} ${output}= Run and Return RC And Output diff -r -x TOSCA-Metadata ${open_dir} ${csarpath}
23 Should Be Equal As Integers ${rc} 0