chore: update tests for createInstaceMetadata

Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
This commit is contained in:
Pratyush singhal 2019-06-11 16:47:16 +05:30
parent 529dff0abb
commit 99a3e9cf0a
1 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ func TestCreateInstanceMetadata(t *testing.T) {
key := "abcdefgh12345678"
// create our metadata
metadata, err := c.createInstanceMetadata(image, key)
metadata, err := c.createInstanceMetadata(image, key, state)
assert.True(t, err == nil, "Metadata creation should have succeeded.")
@ -318,7 +318,7 @@ func TestCreateInstanceMetadata_noPublicKey(t *testing.T) {
sshKeys := c.Metadata["sshKeys"]
// create our metadata
metadata, err := c.createInstanceMetadata(image, "")
metadata, err := c.createInstanceMetadata(image, "", state)
assert.True(t, err == nil, "Metadata creation should have succeeded.")