tests(azure): fix ssh config options
@@ -84,13 +84,13 @@ class AZURE:
self.az.create_storage_account(self.config["storage_account_name"])
self.storage_account_created = True
- self.import_key(self.config)
+ self.import_key(self.ssh_config)
img = self.az.get_image(self.config["image_name"])
if img == None:
self.upload_image()
self.image_uploaded = True
- instance = self.create_vm(self.config)
+ instance = self.create_vm(self.config, self.ssh_config)
def upload_image(self):
@@ -124,7 +124,7 @@ class AZURE:
if self.az.get_ssh_key(config["ssh_key_name"]) == None:
self.az.upload_ssh_key(config["ssh_key_filepath"], config["ssh_key_name"])
- def create_vm(self, config):
+ def create_vm(self, config, ssh_config):
if self.az.get_nsg(config["nsg_name"]) == None:
self.az.create_nsg(config["nsg_name"])
self.instance = self.az.create_vm(
@@ -132,7 +132,7 @@ class AZURE:
"integration-test",
self.ssh_config["user"],
config["nsg_name"],
- config["ssh_key_name"],
+ ssh_config["ssh_key_name"],
size="Standard_B2s",
os_disk_size="7"
)
