Skip to content

Commit

Permalink
Add QuotaEnforceCommand constructor for use in testing to manually bu…
Browse files Browse the repository at this point in the history
…ild command config per cluster (#56)

Co-authored-by: Daniel Fritsch <[email protected]>
  • Loading branch information
danielfritsch and Daniel Fritsch authored Dec 20, 2021
1 parent 9afa847 commit a57223b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public QuotaEnforceCommand(){
// DO NOT REMOVE, this is needed by jcommander
}

// for testing
public QuotaEnforceCommand(Map<String, Object> cmdConfig, String cluster) {
this.cmdConfig = cmdConfig;
this.cluster = cluster;
}

@Override
protected Enforcer<ConfiguredQuota> initEnforcer() {
Map<String, Object> zkConfig = zookeeperConfig();
Expand Down

0 comments on commit a57223b

Please sign in to comment.