Skip to content

Commit

Permalink
add length check for image/volume store in output
Browse files Browse the repository at this point in the history
  • Loading branch information
AngieCris committed Feb 8, 2018
1 parent 4931a55 commit 24a04f8
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ Inspect VCH Within Datacenter Using Session
Get Path Under Target Using Session datacenter/${DC-ID}/vch/${VCH-ID}

Verify VCH Inspect Output
# debug
Property Should Be Equal .debug 1
# basic
Property Should Be Equal .debug 1
Property Should Be Equal .name %{VCH-NAME}

# networks
Property Should Be Equal .network.bridge.ip_range 172.16.0.0/12
Property Should Not Be Empty .network.bridge.port_group
Property Should Be Equal .network.public.nameservers[0] null
Property Should Not Be Empty .network.public.port_group
Property Should Be Equal .network.container[0].alias public
Property Should Not Be Empty .network.container[0].port_group
Property Should Not Be Empty .network.container[0].port_grou

# cert
${domain}= Get Environment Variable DOMAIN ''
Expand All @@ -72,7 +73,9 @@ Verify VCH Inspect Output
Property Should Be Equal .storage.base_image_size.value 8000000
Property Should Be Equal .storage.base_image_size.units KB

Property Length Should Be .storage.image_stores 1
Property Should Contain .storage.image_stores[0] %{TEST_DATASTORE}
Property Length Should Be .storage.volume_stores 1
Property Should Contain .storage.volume_stores[0].datastore %{TEST_DATASTORE}/%{VCH-NAME}-VOL
Property Should Be Equal .storage.volume_stores[0].label default

Expand All @@ -91,7 +94,7 @@ Verify VCH Inspect Output

# version
${version}= Get Version String
Property Should Be Equal .version ${version}
Property Should Be Equal .version ${version}


*** Test Cases ***
Expand Down

0 comments on commit 24a04f8

Please sign in to comment.