Skip to content

Commit

Permalink
Included MaxReplicas to full-struct test
Browse files Browse the repository at this point in the history
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
  • Loading branch information
olljanat committed Feb 19, 2019
1 parent 85406d1 commit bbf6663
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/compose/loader/full-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ services:
window: 120s
placement:
constraints: [node=foo]
max_replicas_per_node: 5
preferences:
- spread: node.labels.az
endpoint_mode: dnsrr
Expand Down
3 changes: 3 additions & 0 deletions cli/compose/loader/full-struct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func services(workingDir, homeDir string) []types.ServiceConfig {
},
Placement: types.Placement{
Constraints: []string{"node=foo"},
MaxReplicas: uint64(5),
Preferences: []types.PlacementPreferences{
{
Spread: "node.labels.az",
Expand Down Expand Up @@ -586,6 +587,7 @@ services:
placement:
constraints:
- node=foo
max_replicas_per_node: 5
preferences:
- spread: node.labels.az
endpoint_mode: dnsrr
Expand Down Expand Up @@ -1079,6 +1081,7 @@ func fullExampleJSON(workingDir string) string {
"constraints": [
"node=foo"
],
"max_replicas_per_node": 5
"preferences": [
{
"spread": "node.labels.az"
Expand Down

0 comments on commit bbf6663

Please sign in to comment.