Updating end to end tests to reflect change in attribute for mesos agents.
This commit is contained in:
parent
ed774b6a0c
commit
310cd76934
1 changed files with 7 additions and 7 deletions
|
@ -309,9 +309,9 @@ func TestRealisClient_CreateJob_Thermos(t *testing.T) {
|
||||||
|
|
||||||
t.Run("Duplicate_constraints", func(t *testing.T) {
|
t.Run("Duplicate_constraints", func(t *testing.T) {
|
||||||
job.Name("thermos_duplicate_constraints").
|
job.Name("thermos_duplicate_constraints").
|
||||||
AddValueConstraint("hostname", false, "localhost").
|
AddValueConstraint("zone", false, "east", "west").
|
||||||
AddValueConstraint("hostname", false, "localhost1").
|
AddValueConstraint("zone", false, "east").
|
||||||
AddValueConstraint("hostname", true, "west")
|
AddValueConstraint("zone", true, "west")
|
||||||
|
|
||||||
_, err := r.CreateJob(job)
|
_, err := r.CreateJob(job)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
@ -326,14 +326,14 @@ func TestRealisClient_CreateJob_Thermos(t *testing.T) {
|
||||||
|
|
||||||
t.Run("Overwrite_constraints", func(t *testing.T) {
|
t.Run("Overwrite_constraints", func(t *testing.T) {
|
||||||
job.Name("thermos_overwrite_constraints").
|
job.Name("thermos_overwrite_constraints").
|
||||||
AddLimitConstraint("hostname", 1).
|
AddLimitConstraint("zone", 1).
|
||||||
AddValueConstraint("hostname", true, "west").
|
AddValueConstraint("zone", true, "west", "east").
|
||||||
AddLimitConstraint("hostname", 1)
|
AddLimitConstraint("zone", 1)
|
||||||
|
|
||||||
_, err := r.CreateJob(job)
|
_, err := r.CreateJob(job)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
success, err := monitor.Instances(job.JobKey(), 1, 1, 50)
|
success, err := monitor.Instances(job.JobKey(), 2, 1, 50)
|
||||||
assert.True(t, success)
|
assert.True(t, success)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue