tests.large_resource
This MC generates a new binary file, gets its hash, and then drop both the binary and the hash_compare.py
VMR on every VM in the experiment.
The size of the generated binary can be passed in (using bytes), but the default is 1048576
(i.e. 1 MB).
This MC is mainly useful for functional testing of FIREWHEEL.
- Attribute Depends:
topology
- Model Component Dependencies:
Plugin
- class tests.large_resource_plugin.Plugin(graph, log)[source]
Bases:
AbstractPlugin
Add a newly generated VM resource containing random bytes to each VM in the experiment.
- __annotations__ = {}
- run(size='1048576', location_dir='/tmp', preload='True')[source]
Generate a new binary file, get its hash, and then drop both the binary and the
hash_compare.py
VMR on every VM in the experiment.- Parameters:
size (str, optional) – The size in bytes. The default is 1048576 (i.e. 1 MB).
location_dir (str, optional) – Where to place the file on the VM. Default is
"/tmp"
.preload (str, optional) – Whether of not to push the file into the VM before negative time starts. Should be either
"True"
or"False"
. Defaults to"True"
.