Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1229)

Unified Diff: worker/provisioner/provisioner_test.go

Issue 6564063: state: add machine with workers
Patch Set: state: add machine with workers Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « worker/machiner/machiner_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: worker/provisioner/provisioner_test.go
=== modified file 'worker/provisioner/provisioner_test.go'
--- worker/provisioner/provisioner_test.go 2012-09-24 17:16:47 +0000
+++ worker/provisioner/provisioner_test.go 2012-09-28 07:21:43 +0000
@@ -167,7 +167,7 @@
defer s.stopProvisioner(c, p)
// place a new machine into the state
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
s.checkStartInstance(c, m, "pork")
@@ -187,7 +187,7 @@
defer s.stopProvisioner(c, p)
// try to create a machine
- _, err = s.State.AddMachine()
+ _, err = s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
// the PA should not create it
@@ -202,7 +202,7 @@
defer s.stopProvisioner(c, p)
// try to create a machine
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
// the PA should not create it
@@ -219,7 +219,7 @@
defer s.stopProvisioner(c, p)
// place a new machine into the state
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
s.checkStartInstance(c, m, "pork")
@@ -228,7 +228,7 @@
c.Assert(err, IsNil)
// create a second machine
- m, err = s.State.AddMachine()
+ m, err = s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
// the PA should create it using the old environment
@@ -241,7 +241,7 @@
// the PA is restarted in this test. tf. Methods like Fatalf and Assert should not be used.
// create a machine
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Check(err, IsNil)
s.checkStartInstance(c, m, "pork")
@@ -269,13 +269,13 @@
// the PA is restarted in this test. Methods like Fatalf and Assert should not be used.
// create a machine
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Check(err, IsNil)
s.checkStartInstance(c, m, "pork")
// create a second machine
- m, err = s.State.AddMachine()
+ m, err = s.State.AddMachine(state.MachinerWorker)
c.Check(err, IsNil)
s.checkStartInstance(c, m, "pork")
@@ -303,7 +303,7 @@
// the PA is restarted in this test. Methods like Fatalf and Assert should not be used.
// create a machine
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Check(err, IsNil)
s.checkStartInstance(c, m, "pork")
@@ -327,7 +327,7 @@
defer s.stopProvisioner(c, p)
// place a new machine into the state
- m, err := s.State.AddMachine()
+ m, err := s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
s.checkStartInstance(c, m, "pork")
@@ -336,7 +336,7 @@
c.Assert(err, IsNil)
// create a second machine
- m, err = s.State.AddMachine()
+ m, err = s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
// the PA should create it using the old environment
@@ -354,7 +354,7 @@
err = s.State.SetEnvironConfig(cfg)
// create a third machine
- m, err = s.State.AddMachine()
+ m, err = s.State.AddMachine(state.MachinerWorker)
c.Assert(err, IsNil)
// the PA should create it using the new environment
« no previous file with comments | « worker/machiner/machiner_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b