blob: c23fd431cccd05ed8ce7df7101a45ac223270029 [file] [log] [blame]
Lianhao Lu29245a02017-09-25 14:14:07 +08001*** settings ***
2Library OperatingSystem
3
4
5*** Variables ***
6${csarpath} ${SCRIPTS}/../tests/vnfsdk-pkgtools/tosca-metadata/csar
7${create_output} ${OUTPUT DIR}/test.csar
8${open_dir} ${OUTPUT DIR}/extracted
9
10*** Test Cases ***
11Create CSAR package
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
14 Log ${output}
15 File Should Exist ${create_output}
16
17Open CSAR package
18 [Documentation] Open CSAR package
19 ${output}= Run vnfsdk csar-open -d ${open_dir} ${create_output}
20 Log ${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
24 Log ${output}