Skip to content

Commit

Permalink
fix: tests using DiskSpaceMb
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Oct 30, 2024
1 parent a4226e2 commit beff9d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/cassandra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestCassandra(t *testing.T) {
assert.Equal(t, csAvn.Plan, cs.Spec.Plan)
assert.Equal(t, csAvn.CloudName, cs.Spec.CloudName)
assert.Equal(t, "450GiB", cs.Spec.DiskSpace)
assert.Equal(t, float64(460800), *csAvn.DiskSpaceMb)
assert.Equal(t, int(460800), *csAvn.DiskSpaceMb)
assert.Equal(t, map[string]string{"env": "test", "instance": "foo"}, cs.Spec.Tags)
csResp, err := avnClient.ServiceTags.Get(ctx, cfg.Project, name)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion tests/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestKafka(t *testing.T) {
assert.Equal(t, ksAvn.Plan, ks.Spec.Plan)
assert.Equal(t, ksAvn.CloudName, ks.Spec.CloudName)
assert.Equal(t, "600GiB", ks.Spec.DiskSpace)
assert.Equal(t, float64(614400), *ksAvn.DiskSpaceMb)
assert.Equal(t, int(614400), *ksAvn.DiskSpaceMb)
assert.Equal(t, map[string]string{"env": "test", "instance": "foo"}, ks.Spec.Tags)
ksResp, err := avnClient.ServiceTags.Get(ctx, cfg.Project, name)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion tests/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func TestMySQL(t *testing.T) {
assert.Equal(t, msAvn.Plan, ms.Spec.Plan)
assert.Equal(t, msAvn.CloudName, ms.Spec.CloudName)
assert.Equal(t, "100GiB", ms.Spec.DiskSpace)
assert.Equal(t, float64(102400), *msAvn.DiskSpaceMb)
assert.Equal(t, int(102400), *msAvn.DiskSpaceMb)
assert.Equal(t, map[string]string{"env": "test", "instance": "foo"}, ms.Spec.Tags)
msResp, err := avnClient.ServiceTags.Get(ctx, cfg.Project, name)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion tests/opensearch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestOpenSearch(t *testing.T) {
assert.Equal(t, osAvn.Plan, os.Spec.Plan)
assert.Equal(t, osAvn.CloudName, os.Spec.CloudName)
assert.Equal(t, "240GiB", os.Spec.DiskSpace)
assert.Equal(t, float64(245760), *osAvn.DiskSpaceMb)
assert.Equal(t, int(245760), *osAvn.DiskSpaceMb)
assert.Equal(t, map[string]string{"env": "test", "instance": "foo"}, os.Spec.Tags)
osResp, err := avnClient.ServiceTags.Get(ctx, cfg.Project, name)
require.NoError(t, err)
Expand Down

0 comments on commit beff9d7

Please sign in to comment.