From 5366393f9ffa7655643dff55fc1a8388bffc4c29 Mon Sep 17 00:00:00 2001 From: "Billie H. Cleek" Date: Mon, 9 Mar 2015 22:25:45 -0700 Subject: [PATCH] fix tests --- provisioner/ansible/provisioner_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/provisioner/ansible/provisioner_test.go b/provisioner/ansible/provisioner_test.go index 0b52e47c2..80074ebde 100644 --- a/provisioner/ansible/provisioner_test.go +++ b/provisioner/ansible/provisioner_test.go @@ -51,7 +51,7 @@ func TestProvisionerPrepare_Defaults(t *testing.T) { } defer os.Remove(playbook_file.Name()) - config["ssh_private_host_key_file"] = hostkey_file.Name() + config["ssh_host_key_file"] = hostkey_file.Name() config["ssh_authorized_key_file"] = publickey_file.Name() config["playbook_file"] = playbook_file.Name() err = p.Prepare(config) @@ -76,7 +76,7 @@ func TestProvisionerPrepare_PlaybookFile(t *testing.T) { } defer os.Remove(publickey_file.Name()) - config["ssh_private_host_key_file"] = hostkey_file.Name() + config["ssh_host_key_file"] = hostkey_file.Name() config["ssh_authorized_key_file"] = publickey_file.Name() err = p.Prepare(config) @@ -119,13 +119,13 @@ func TestProvisionerPrepare_HostKeyFile(t *testing.T) { t.Fatal("could not create random file name") } - config["ssh_private_host_key_file"] = fmt.Sprintf("%x", filename) + config["ssh_host_key_file"] = fmt.Sprintf("%x", filename) config["ssh_authorized_key_file"] = publickey_file.Name() config["playbook_file"] = playbook_file.Name() err = p.Prepare(config) if err == nil { - t.Fatal("should error if ssh_private_host_key_file does not exist") + t.Fatal("should error if ssh_host_key_file does not exist") } hostkey_file, err := ioutil.TempFile("", "hostkey") @@ -134,7 +134,7 @@ func TestProvisionerPrepare_HostKeyFile(t *testing.T) { } defer os.Remove(hostkey_file.Name()) - config["ssh_private_host_key_file"] = hostkey_file.Name() + config["ssh_host_key_file"] = hostkey_file.Name() err = p.Prepare(config) if err != nil { t.Fatalf("err: %s", err) @@ -157,7 +157,7 @@ func TestProvisionerPrepare_AuthorizedKeyFile(t *testing.T) { } defer os.Remove(playbook_file.Name()) - config["ssh_private_host_key_file"] = hostkey_file.Name() + config["ssh_host_key_file"] = hostkey_file.Name() config["playbook_file"] = playbook_file.Name() err = p.Prepare(config) @@ -200,7 +200,7 @@ func TestProvisionerPrepare_LocalPort(t *testing.T) { } defer os.Remove(playbook_file.Name()) - config["ssh_private_host_key_file"] = hostkey_file.Name() + config["ssh_host_key_file"] = hostkey_file.Name() config["ssh_authorized_key_file"] = publickey_file.Name() config["playbook_file"] = playbook_file.Name()