def test_machine_delete(self): cuckoo_machine("cuckoo1", "delete", None, None, None, None, None, None, None) assert config("virtualbox:virtualbox:machines") == [] # TODO This might require a little tweak. with pytest.raises(CuckooConfigurationError) as e: config("virtualbox:cuckoo1:label", strict=True) e.match("No such configuration value exists")
def test_machine_add(self): cuckoo_machine("cuckoo2", "add", "1.2.3.4", "windows", None, None, None, None, None) assert config("virtualbox:virtualbox:machines") == [ "cuckoo1", "cuckoo2", ] assert config("virtualbox:cuckoo2:ip") == "1.2.3.4" assert config("virtualbox:cuckoo2:platform") == "windows"
def test_machine_delete(self): cuckoo_machine( "cuckoo1", "delete", None, None, None, None, None, None, None ) assert config("virtualbox:virtualbox:machines") == [] # TODO This might require a little tweak. with pytest.raises(CuckooConfigurationError) as e: config("virtualbox:cuckoo1:label", strict=True) e.match("No such configuration value exists")
def test_machine_add(self): cuckoo_machine( "cuckoo2", "add", "1.2.3.4", "windows", None, None, None, None, None ) assert config("virtualbox:virtualbox:machines") == [ "cuckoo1", "cuckoo2", ] assert config("virtualbox:cuckoo2:ip") == "1.2.3.4" assert config("virtualbox:cuckoo2:platform") == "windows"