Skip to content

Commit 6a86f0d

Browse files
fix: fix mock tests with inner fields that have underscores
1 parent e27a3a6 commit 6a86f0d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/cmd/ingress_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestIngressesCreate(t *testing.T) {
2828
"--name", "my-api-ingress",
2929
"--rule.match", "{hostname: '{instance}.example.com', port: 8080}",
3030
"--rule.target", "{instance: '{instance}', port: 8080}",
31-
"--rule.redirect_http=true",
31+
"--rule.redirect-http=true",
3232
"--rule.tls=true",
3333
)
3434
}

pkg/cmd/instance_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,18 @@ func TestInstancesCreate(t *testing.T) {
4646
"--gpu.profile", "L40S-1Q",
4747
"--hotplug-size", "2GB",
4848
"--hypervisor", "cloud-hypervisor",
49-
"--network.bandwidth_download", "1Gbps",
50-
"--network.bandwidth_upload", "1Gbps",
49+
"--network.bandwidth-download", "1Gbps",
50+
"--network.bandwidth-upload", "1Gbps",
5151
"--network.enabled=true",
5252
"--overlay-size", "20GB",
5353
"--size", "2GB",
5454
"--skip-guest-agent=false",
5555
"--skip-kernel-headers=true",
5656
"--vcpus", "2",
57-
"--volume.mount_path", "/mnt/data",
58-
"--volume.volume_id", "vol-abc123",
57+
"--volume.mount-path", "/mnt/data",
58+
"--volume.volume-id", "vol-abc123",
5959
"--volume.overlay=true",
60-
"--volume.overlay_size", "1GB",
60+
"--volume.overlay-size", "1GB",
6161
"--volume.readonly=true",
6262
)
6363
}

0 commit comments

Comments
 (0)