You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: "Valid instance type with min requirements and invalid zones specified",
774
778
zones: []string{"a", "b", "d", "x", "y"},
775
779
instanceType: "n1-standard-4",
780
+
diskType: "pd-ssd",
776
781
expectedError: true,
777
782
expectedErrMsg: `\[instance.type: Invalid value: "n1\-standard\-4": instance type not available in zones: \[x y\]\]$`,
778
783
},
779
784
{
780
785
name: "Valid instance fails min requirements and no zones specified",
781
786
zones: []string{},
782
787
instanceType: "n1-standard-2",
788
+
diskType: "pd-ssd",
783
789
expectedError: true,
784
790
expectedErrMsg: `^\[instance.type: Invalid value: "n1\-standard\-2": instance type does not meet minimum resource requirements of 4 vCPUs instance.type: Invalid value: "n1\-standard\-2": instance type does not meet minimum resource requirements of 15360 MB Memory\]$`,
785
791
},
786
792
{
787
793
name: "Valid instance fails min requirements and valid zones specified",
788
794
zones: []string{"a", "b"},
789
795
instanceType: "n1-standard-1",
796
+
diskType: "pd-ssd",
790
797
expectedError: true,
791
798
expectedErrMsg: ``,
792
799
},
793
800
{
794
801
name: "Valid instance fails min requirements and invalid zones specified",
expectedErrMsg: `^\[instance.type: Invalid value: "t2a\-standard\-4": instance type architecture arm64 does not match specified architecture amd64\]$`,
827
839
},
840
+
{
841
+
name: "Valid special instance type with min requirements",
842
+
zones: []string{"a"},
843
+
instanceType: "n4-standard-4",
844
+
diskType: "hyperdisk-balanced",
845
+
expectedError: false,
846
+
expectedErrMsg: "",
847
+
},
848
+
{
849
+
name: "Invalid special instance type with min requirements",
0 commit comments