@@ -16,22 +16,49 @@ teardown() {
16
16
echo " "
17
17
}
18
18
19
- @test " download single file successfully to temp" {
19
+ @test " download driver file successfully to temp" {
20
20
$VCC_CMD logout
21
21
rm -f $TEMP_DIR /*
22
- local cmd=" $VCC_CMD download -p vmware_horizon_clients -s cart+andrd_x8632 -v 2106 -f VMware-Horizon-Client-AndroidOS-x86-*-store.apk --accepteula -o $TEMP_DIR "
23
- echo $cmd
24
- run $cmd
22
+ # command cannot be stored as a variable because bats does not properly process the speech mark needed for the -v flag
23
+ run $VCC_CMD download -p vmware_vsphere -t drivers_tools -s vs-mgmt-sdk80u2 -v ' *' -f VMware-vSphere-SDK-* .zip --accepteula -o $TEMP_DIR
25
24
echo " $output "
26
25
[[ " $output " != * " No output directory set." * ]]
27
26
[[ " $output " == * " Collecting download payload" * ]]
28
27
[[ " $output " == * " Download started to" * ]]
29
28
[[ " $output " == * " Download finished" * ]]
30
29
[ " $status " -eq 0 ]
31
- [ -f $TEMP_DIR /VMware-Horizon-Client -* .apk ]
30
+ [ -f $TEMP_DIR /VMware-vSphere-SDK -* .zip ]
32
31
}
33
32
34
- @test " download driver file successfully to temp" {
33
+ @test " download iso file successfully to temp" {
34
+ $VCC_CMD logout
35
+ rm -f $TEMP_DIR /*
36
+ # command cannot be stored as a variable because bats does not properly process the speech mark needed for the -v flag
37
+ run $VCC_CMD download -p vmware_vsphere -t custom_iso -s oem-esxi80u2-hitachi -v ' *' -f VMware-ESXi-* .iso --accepteula -o $TEMP_DIR
38
+ echo " $output "
39
+ [[ " $output " != * " No output directory set." * ]]
40
+ [[ " $output " == * " Collecting download payload" * ]]
41
+ [[ " $output " == * " Download started to" * ]]
42
+ [[ " $output " == * " Download finished" * ]]
43
+ [ " $status " -eq 0 ]
44
+ [ -f $TEMP_DIR /VMware-ESXi-* .iso ]
45
+ }
46
+
47
+ @test " download addon file successfully to temp" {
48
+ $VCC_CMD logout
49
+ rm -f $TEMP_DIR /*
50
+ # command cannot be stored as a variable because bats does not properly process the speech mark needed for the -v flag
51
+ run $VCC_CMD download -p vmware_vsphere -t addons -s addon_esxi80u2_hitachi -v ' *' -f VMware-ESXi-8.0* .zip --accepteula -o $TEMP_DIR
52
+ echo " $output "
53
+ [[ " $output " != * " No output directory set." * ]]
54
+ [[ " $output " == * " Collecting download payload" * ]]
55
+ [[ " $output " == * " Download started to" * ]]
56
+ [[ " $output " == * " Download finished" * ]]
57
+ [ " $status " -eq 0 ]
58
+ [ -f $TEMP_DIR /VMware-ESXi-8.0* .zip ]
59
+ }
60
+
61
+ @test " download single file successfully to temp" {
35
62
$VCC_CMD logout
36
63
rm -f $TEMP_DIR /*
37
64
local cmd=" $VCC_CMD download -p vmware_horizon_clients -s cart+andrd_x8632 -v 2106 -f VMware-Horizon-Client-AndroidOS-x86-*-store.apk --accepteula -o $TEMP_DIR "
@@ -46,6 +73,7 @@ teardown() {
46
73
[ -f $TEMP_DIR /VMware-Horizon-Client-* .apk ]
47
74
}
48
75
76
+
49
77
@test " re-download single file successfully to temp" {
50
78
$VCC_CMD logout
51
79
rm -f $TEMP_DIR /*
0 commit comments