diff --git a/metakube/resource_node_deployment_structure_test.go b/metakube/resource_node_deployment_structure_test.go index 02814a9..a2475b4 100644 --- a/metakube/resource_node_deployment_structure_test.go +++ b/metakube/resource_node_deployment_structure_test.go @@ -327,8 +327,8 @@ func TestFlattenOpenstackNodeSpec(t *testing.T) { Flavor: strToPtr("big"), Image: strToPtr("Ubuntu"), UseFloatingIP: ptr.To(true), - InstanceReadyCheckPeriod: ptr.To("10s"), - InstanceReadyCheckTimeout: ptr.To("120s"), + InstanceReadyCheckPeriod: "10s", + InstanceReadyCheckTimeout: "120s", Tags: map[string]string{ "foo": "bar", }, diff --git a/metakube/resource_node_deployment_test.go b/metakube/resource_node_deployment_test.go index a267cc2..11a06d7 100644 --- a/metakube/resource_node_deployment_test.go +++ b/metakube/resource_node_deployment_test.go @@ -301,7 +301,7 @@ func testAccCheckMetaKubeNodeDeploymentFields(rec *models.NodeDeployment, flavor return fmt.Errorf("Image=%s doesn't match %s", *openstack.Image, image) } - if openstack.RootDiskSizeGB != int64(diskSize) { + if openstack.RootDiskSizeGB == nil || *openstack.RootDiskSizeGB != int64(diskSize) { return fmt.Errorf("RootDiskSizeGB=%d, want %d", openstack.RootDiskSizeGB, diskSize) }