mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 11:36:51 +00:00
add vendoring with go dep
This commit is contained in:
42
vendor/github.com/vmware/govmomi/govc/test/logs.bats
generated
vendored
Executable file
42
vendor/github.com/vmware/govmomi/govc/test/logs.bats
generated
vendored
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/env bats
|
||||
|
||||
load test_helper
|
||||
|
||||
@test "logs" {
|
||||
run govc logs
|
||||
assert_success
|
||||
nlogs=${#lines[@]}
|
||||
# there should be plenty more than 1 line of hostd logs
|
||||
[ $nlogs -ge 1 ]
|
||||
|
||||
# test -n flag
|
||||
run govc logs -n $((nlogs - 10))
|
||||
assert_success
|
||||
[ ${#lines[@]} -le $nlogs ]
|
||||
|
||||
run govc logs -log vmkernel
|
||||
assert_success
|
||||
nlogs=${#lines[@]}
|
||||
# there should be plenty more than 1 line of vmkernel logs
|
||||
[ $nlogs -ge 1 ]
|
||||
|
||||
# test > 1 call to BrowseLog()
|
||||
run govc logs -n 2002
|
||||
assert_success
|
||||
|
||||
# -host ignored against ESX
|
||||
run govc logs -host enoent
|
||||
assert_success
|
||||
|
||||
run govc logs -log enoent
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "logs.ls" {
|
||||
run govc logs.ls
|
||||
assert_success
|
||||
|
||||
# -host ignored against ESX
|
||||
run govc logs.ls -host enoent
|
||||
assert_success
|
||||
}
|
||||
Reference in New Issue
Block a user