Fix xenapi functions' tests
The tests got outdated, this fix makes the tests pass again. Change-Id: Iadddfbf34bf79ba455811645e766c2f3d0fcca84
This commit is contained in:
parent
68f142324d
commit
085abd8eb7
@ -73,7 +73,7 @@ function [ {
|
|||||||
done
|
done
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
echo "Mock test does not implement the requested function"
|
echo "Mock test does not implement the requested function: ${1:-}"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ function test_zip_snapshot_location {
|
|||||||
function test_create_directory_for_kernels {
|
function test_create_directory_for_kernels {
|
||||||
(
|
(
|
||||||
. mocks
|
. mocks
|
||||||
mock_out get_local_sr uuid1
|
mock_out get_local_sr_path /var/run/sr-mount/uuid1
|
||||||
create_directory_for_kernels
|
create_directory_for_kernels
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ EOF
|
|||||||
function test_create_directory_for_images {
|
function test_create_directory_for_images {
|
||||||
(
|
(
|
||||||
. mocks
|
. mocks
|
||||||
mock_out get_local_sr uuid1
|
mock_out get_local_sr_path /var/run/sr-mount/uuid1
|
||||||
create_directory_for_images
|
create_directory_for_images
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -199,8 +199,7 @@ function test_get_local_sr {
|
|||||||
|
|
||||||
[ "$RESULT" == "uuid123" ]
|
[ "$RESULT" == "uuid123" ]
|
||||||
|
|
||||||
assert_xe_min
|
assert_xe_param "pool-list" params=default-SR minimal=true
|
||||||
assert_xe_param "sr-list" "name-label=Local storage"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_get_local_sr_path {
|
function test_get_local_sr_path {
|
||||||
|
Loading…
Reference in New Issue
Block a user