fix(agent-call): support automatic spot pricing
This commit is contained in:
@@ -138,6 +138,14 @@ class CloudTests(unittest.TestCase):
|
||||
self.assertEqual(params["SystemDisk.PerformanceLevel"], "PL1")
|
||||
self.assertEqual(api.mutations(), ["RunInstances", "AssociateEipAddress"])
|
||||
|
||||
def test_automatic_spot_price_omits_price_limit(self):
|
||||
cfg = config()
|
||||
cfg["spot_strategy"] = "SpotAsPriceGo"
|
||||
cfg.pop("spot_price_limit")
|
||||
params = cloud.create_params(cfg)
|
||||
self.assertEqual(params["SpotStrategy"], "SpotAsPriceGo")
|
||||
self.assertNotIn("SpotPriceLimit", params)
|
||||
|
||||
def test_user_data_is_base64_encoded_without_logging_content(self):
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
user_data = Path(d) / "bootstrap.sh"
|
||||
|
||||
Reference in New Issue
Block a user