Skip to content

Commit

Permalink
tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliyskysql committed Jul 16, 2024
1 parent e45b9c7 commit b61ce47
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ func TestServiceResourceDeletionProtection(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/service_resource_privatlink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ func TestServiceResourcePrivateLink(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down Expand Up @@ -393,10 +395,12 @@ func TestServiceResourcePrivateConnectWhenAllowedAccountsEmpty(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down
6 changes: 6 additions & 0 deletions internal/provider/service_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ resource "skysql_service" default {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down Expand Up @@ -375,10 +377,12 @@ resource "skysql_service" default {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: false,
Expand Down Expand Up @@ -522,10 +526,12 @@ resource "skysql_service" default {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/service_resource_update_allowlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ func TestServiceResourceAllowlistUpdate(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down
8 changes: 8 additions & 0 deletions internal/provider/service_resource_volume_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ func TestServiceResourceGCPVolumeType(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down Expand Up @@ -227,10 +229,12 @@ func TestServiceResourceAWSGP2VolumeType(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down Expand Up @@ -373,10 +377,12 @@ func TestServiceResourceAWSIO1VolumeType(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down Expand Up @@ -519,10 +525,12 @@ func TestServiceResourceAzureVolumeType(t *testing.T) {
Size int `json:"size"`
VolumeType string `json:"volume_type"`
IOPS int `json:"iops"`
Throughput int `json:"throughput"`
}{
Size: int(payload.Storage),
VolumeType: payload.VolumeType,
IOPS: int(payload.VolumeIOPS),
Throughput: int(payload.VolumeThroughput),
},
OutboundIps: nil,
IsActive: true,
Expand Down

0 comments on commit b61ce47

Please sign in to comment.