Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame^] | 1 | *** settings *** |
| 2 | Library 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 *** |
| 11 | Create 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 | |
| 17 | Open 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} |