Skip to content

Commit

Permalink
update: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk committed Aug 20, 2024
1 parent 87054b9 commit 62e3cd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions create/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"testing"
"time"

infra "github.com/ninech/apis/infrastructure/v1alpha1"
meta "github.com/ninech/apis/meta/v1alpha1"
storage "github.com/ninech/apis/storage/v1alpha1"
"github.com/ninech/nctl/api"
Expand Down Expand Up @@ -43,8 +42,8 @@ func TestMySQL(t *testing.T) {
},
{
name: "machineType",
create: mySQLCmd{MachineType: infra.MachineType("nine-standard-1")},
want: storage.MySQLParameters{MachineType: infra.MachineType("nine-standard-1")},
create: mySQLCmd{MachineType: storage.MySQLMachineTypeDefault},
want: storage.MySQLParameters{MachineType: storage.MySQLMachineTypeDefault},
},
{
name: "sshKeys",
Expand Down
5 changes: 2 additions & 3 deletions create/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"testing"
"time"

infra "github.com/ninech/apis/infrastructure/v1alpha1"
meta "github.com/ninech/apis/meta/v1alpha1"
storage "github.com/ninech/apis/storage/v1alpha1"
"github.com/ninech/nctl/api"
Expand Down Expand Up @@ -43,8 +42,8 @@ func TestPostgres(t *testing.T) {
},
{
name: "machineType",
create: postgresCmd{MachineType: infra.MachineType("nine-standard-1")},
want: storage.PostgresParameters{MachineType: infra.MachineType("nine-standard-1")},
create: postgresCmd{MachineType: storage.PostgresMachineTypeDefault},
want: storage.PostgresParameters{MachineType: storage.PostgresMachineTypeDefault},
},
{
name: "sshKeys",
Expand Down

0 comments on commit 62e3cd0

Please sign in to comment.