@@ -22,7 +22,7 @@ func TestStepCreateServer(t *testing.T) {
2222 Step : & stepCreateServer {},
2323 SetupStateFunc : func (state multistep.StateBag ) {
2424 state .Put (StateSSHKeyID , int64 (1 ))
25- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
25+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
2626 },
2727 WantRequests : []mockutil.Request {
2828 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -43,7 +43,7 @@ func TestStepCreateServer(t *testing.T) {
4343 assert .Equal (t , "dummy-server" , payload .Name )
4444 assert .Equal (t , int64 (114690387 ), payload .Image .ID )
4545 assert .Equal (t , "nbg1" , payload .Location )
46- assert .Equal (t , "cpx11 " , payload .ServerType .Name )
46+ assert .Equal (t , "cpx22 " , payload .ServerType .Name )
4747 assert .True (t , payload .PublicNet .EnableIPv4 )
4848 assert .True (t , payload .PublicNet .EnableIPv6 )
4949 assert .Nil (t , payload .Networks )
@@ -94,7 +94,7 @@ func TestStepCreateServer(t *testing.T) {
9494 },
9595 SetupStateFunc : func (state multistep.StateBag ) {
9696 state .Put (StateSSHKeyID , int64 (1 ))
97- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
97+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
9898 },
9999 WantRequests : []mockutil.Request {
100100 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -121,7 +121,7 @@ func TestStepCreateServer(t *testing.T) {
121121 assert .Equal (t , "dummy-server" , payload .Name )
122122 assert .Equal (t , int64 (114690387 ), payload .Image .ID )
123123 assert .Equal (t , "nbg1" , payload .Location )
124- assert .Equal (t , "cpx11 " , payload .ServerType .Name )
124+ assert .Equal (t , "cpx22 " , payload .ServerType .Name )
125125 assert .Equal (t , int64 (986532 ), payload .Firewalls [0 ].Firewall )
126126 },
127127 Status : 201 ,
@@ -170,7 +170,7 @@ func TestStepCreateServer(t *testing.T) {
170170 },
171171 SetupStateFunc : func (state multistep.StateBag ) {
172172 state .Put (StateSSHKeyID , int64 (1 ))
173- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
173+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
174174 },
175175 WantRequests : []mockutil.Request {
176176 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -191,7 +191,7 @@ func TestStepCreateServer(t *testing.T) {
191191 assert .Equal (t , "dummy-server" , payload .Name )
192192 assert .Equal (t , int64 (114690387 ), payload .Image .ID )
193193 assert .Equal (t , "nbg1" , payload .Location )
194- assert .Equal (t , "cpx11 " , payload .ServerType .Name )
194+ assert .Equal (t , "cpx22 " , payload .ServerType .Name )
195195 assert .Equal (t , []int64 {12 }, payload .Networks )
196196 },
197197 Status : 201 ,
@@ -242,7 +242,7 @@ func TestStepCreateServer(t *testing.T) {
242242 },
243243 SetupStateFunc : func (state multistep.StateBag ) {
244244 state .Put (StateSSHKeyID , int64 (1 ))
245- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
245+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
246246 },
247247 WantRequests : []mockutil.Request {
248248 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -289,7 +289,7 @@ func TestStepCreateServer(t *testing.T) {
289289 assert .Equal (t , "dummy-server" , payload .Name )
290290 assert .Equal (t , int64 (114690387 ), payload .Image .ID )
291291 assert .Equal (t , "nbg1" , payload .Location )
292- assert .Equal (t , "cpx11 " , payload .ServerType .Name )
292+ assert .Equal (t , "cpx22 " , payload .ServerType .Name )
293293 assert .Nil (t , payload .Networks )
294294 assert .NotNil (t , payload .PublicNet )
295295 assert .Equal (t , int64 (1 ), payload .PublicNet .IPv4ID )
@@ -342,7 +342,7 @@ func TestStepCreateServer(t *testing.T) {
342342 },
343343 SetupStateFunc : func (state multistep.StateBag ) {
344344 state .Put (StateSSHKeyID , int64 (1 ))
345- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
345+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
346346 },
347347 WantRequests : []mockutil.Request {
348348 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -395,7 +395,7 @@ func TestStepCreateServer(t *testing.T) {
395395 assert .Equal (t , "dummy-server" , payload .Name )
396396 assert .Equal (t , int64 (114690387 ), payload .Image .ID )
397397 assert .Equal (t , "nbg1" , payload .Location )
398- assert .Equal (t , "cpx11 " , payload .ServerType .Name )
398+ assert .Equal (t , "cpx22 " , payload .ServerType .Name )
399399 assert .Nil (t , payload .Networks )
400400 assert .NotNil (t , payload .PublicNet )
401401 assert .Equal (t , int64 (1 ), payload .PublicNet .IPv4ID )
@@ -447,7 +447,7 @@ func TestStepCreateServer(t *testing.T) {
447447 },
448448 SetupStateFunc : func (state multistep.StateBag ) {
449449 state .Put (StateSSHKeyID , int64 (1 ))
450- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
450+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
451451 },
452452 WantRequests : []mockutil.Request {
453453 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -487,7 +487,7 @@ func TestStepCreateServer(t *testing.T) {
487487 },
488488 SetupStateFunc : func (state multistep.StateBag ) {
489489 state .Put (StateSSHKeyID , int64 (1 ))
490- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
490+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
491491 },
492492 WantRequests : []mockutil.Request {
493493 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -526,7 +526,7 @@ func TestStepCreateServer(t *testing.T) {
526526 },
527527 SetupStateFunc : func (state multistep.StateBag ) {
528528 state .Put (StateSSHKeyID , int64 (1 ))
529- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
529+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
530530 },
531531 WantRequests : []mockutil.Request {
532532 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -566,7 +566,7 @@ func TestStepCreateServer(t *testing.T) {
566566 },
567567 SetupStateFunc : func (state multistep.StateBag ) {
568568 state .Put (StateSSHKeyID , int64 (1 ))
569- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
569+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
570570 },
571571 WantRequests : []mockutil.Request {
572572 {Method : "GET" , Path : "/ssh_keys/1" ,
@@ -603,7 +603,7 @@ func TestStepCreateServer(t *testing.T) {
603603 SetupConfigFunc : func (c * Config ) {},
604604 SetupStateFunc : func (state multistep.StateBag ) {
605605 state .Put (StateSSHKeyID , int64 (1 ))
606- state .Put (StateServerType , & hcloud.ServerType {ID : 9 , Name : "cpx11 " , Architecture : "x86" })
606+ state .Put (StateServerType , & hcloud.ServerType {ID : 109 , Name : "cpx22 " , Architecture : "x86" })
607607 },
608608 WantRequests : []mockutil.Request {
609609 {Method : "GET" , Path : "/ssh_keys/1" ,
0 commit comments