chore: update tests for createInstaceMetadata
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
This commit is contained in:
parent
529dff0abb
commit
99a3e9cf0a
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue