Skip to content

Commit

Permalink
Merge pull request #769 from tmmi/3515_max_per
Browse files Browse the repository at this point in the history
Support MAX_PER constraint
  • Loading branch information
aldipower committed Jul 25, 2016
2 parents a954d83 + c95439c commit d41aa6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/constants/ValidConstraints.js
@@ -1,3 +1,3 @@
const ValidConstraints = ["unique", "like", "unlike", "cluster", "group_by"];
const ValidConstraints = ["unique", "like", "unlike", "cluster", "group_by", "max_per"];

export default Object.freeze(ValidConstraints);
2 changes: 1 addition & 1 deletion src/test/units/AppFormValidators.test.js
Expand Up @@ -135,7 +135,7 @@ describe("App Form Validators", function () {

it("list of valid constraints", function () {
let constraints =
"hostname:UNIQUE, atomic:LIKE:man, rackid:CLUSTER:rack-1";
"hostname:UNIQUE, atomic:LIKE:man, rackid:CLUSTER:rack-1, dc:max_per:2";
expect(this.validatior.constraints(constraints)).to.be.true;
constraints =
"rackid:GROUP_BY, atomic:UNLIKE:man";
Expand Down

0 comments on commit d41aa6c

Please sign in to comment.