Skip to content
Snippets Groups Projects
Commit 6daf89d1 authored by Morris Jette's avatar Morris Jette
Browse files

update dw_wlm_cli emulator

parent 5d67e075
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,14 @@ if [ $2 == "create_persistent" ]; then ...@@ -5,10 +5,14 @@ if [ $2 == "create_persistent" ]; then
echo 'created' echo 'created'
fi fi
if [ $2 == "data_in" ]; then if [ $2 == "data_in" ]; then
sleep 1 sleep 100
# echo 'badness...'
# exit 1
fi fi
if [ $2 == "data_out" ]; then if [ $2 == "data_out" ]; then
sleep 1 sleep 1
# echo 'badness...'
# exit 1
fi fi
if [ $2 == "destroy_persistent" ]; then if [ $2 == "destroy_persistent" ]; then
sleep 0.1 sleep 0.1
...@@ -23,12 +27,19 @@ if [ $2 == "paths" ]; then ...@@ -23,12 +27,19 @@ if [ $2 == "paths" ]; then
fi fi
if [ $2 == "pre_run" ]; then if [ $2 == "pre_run" ]; then
sleep 0.1 sleep 0.1
# echo 'badness...'
# exit 1
fi fi
if [ $2 == "post_run" ]; then if [ $2 == "post_run" ]; then
sleep 0.1 sleep 0.1
fi fi
if [ $2 == "pools" ]; then if [ $2 == "pools" ]; then
echo '{ "pools": [ { "id":"dwcache", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 } ] }' # echo '{ "pools": [ { "id":"dwcache", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 } ] }'
echo '{ "pools": [ { "id":"dwcache", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 }, { "id":"test_pool", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 } ] }'
fi
if [ "$2" = "real_size" ] ; then
echo '{ "token":"job.1234", "capacity":17592186044416, "units":"bytes" }'
fi fi
if [ $2 == "setup" ]; then if [ $2 == "setup" ]; then
sleep 0.1 sleep 0.1
...@@ -44,6 +55,7 @@ if [ $2 == "show_sessions" ]; then ...@@ -44,6 +55,7 @@ if [ $2 == "show_sessions" ]; then
fi fi
if [ $2 == "teardown" ]; then if [ $2 == "teardown" ]; then
sleep 0.1 sleep 0.1
# exit 1
fi fi
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment