github.com/vmware/govmomi@v0.37.1/govc/test/storage.bats (about) 1 #!/usr/bin/env bats 2 3 load test_helper 4 5 @test "storage.policy.info" { 6 vcsim_env 7 8 run govc storage.policy.ls 9 assert_success 10 11 run govc storage.policy.ls enoent 12 assert_failure 13 14 run govc storage.policy.ls "vSAN Default Storage Policy" 15 assert_success 16 17 run govc storage.policy.ls -i "vSAN Default Storage Policy" 18 assert_success 19 20 run govc storage.policy.info 21 assert_success 22 23 run govc storage.policy.info enoent 24 assert_failure 25 26 run govc storage.policy.info "vSAN Default Storage Policy" 27 assert_success 28 }