Add remaining tests for new functionality

This commit is contained in:
kirby@puppetlabs.com 2020-05-07 01:57:38 -07:00
parent 2ed170fa23
commit c29ce0d56e
3 changed files with 301 additions and 27 deletions

View file

@ -142,3 +142,11 @@ end
def create_ondemand_vm(vmname, request_id, pool, pool_alias, redis)
redis.sadd("vmpooler__#{request_id}__#{pool_alias}__#{pool}", vmname)
end
def create_ondemand_creationtask(request_string, score, redis)
redis.zadd('vmpooler__odcreate__task', score, request_string)
end
def create_ondemand_processing(request_id, score, redis)
redis.zadd('vmpooler__provisioning__processing', score, request_id)
end