This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"constants" : { | |
}, | |
"rule" : null, | |
"salt" : "bgcolortst", | |
"buckets" : [ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"constants" : { | |
}, | |
"rule" : null, | |
"salt" : "bgcolortst", | |
"buckets" : [ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"constants" : { | |
}, | |
"rule" : null, | |
"salt" : "bgcolortst", | |
"buckets" : [ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"constants" : { | |
}, | |
"rule" : null, | |
"salt" : "bgcolortst", | |
"buckets" : [ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"constants" : { | |
}, | |
"rule" : null, | |
"salt" : "bgcolortst", | |
"buckets" : [ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"constants" : { | |
}, | |
"rule" : null, | |
"salt" : "bgcolortst", | |
"buckets" : [ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<!-- add this plugin definition --> | |
<plugin> | |
<groupId>com.indeed</groupId> | |
<artifactId>proctor-maven-plugin</artifactId> | |
<version>1.0</version> | |
<executions> | |
<execution> | |
<id>proctor-generate</id> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tests" : { | |
"bgcolortst" : { | |
"version" : 1, | |
"description" : "background color test", | |
"salt" : "bgcolortst", | |
"buckets" : [ { | |
"name" : "inactive", | |
"value" : -1, | |
"description" : "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.indeed.proctor.common.*; | |
import com.indeed.proctor.common.model.*; | |
import javax.el.FunctionMapper; | |
... | |
public Proctor loadProctor(final String definitionFile) throws MissingTestMatrixException, IOException { | |
final String specPath = "/org/example/proctor/ExampleGroups.json"; | |
final ProctorSpecification spec = ProctorUtils.readSpecification(getClass().getResourceAsStream(specPath)); | |
final FunctionMapper functionMapper = RuleEvaluator.defaultFunctionMapperBuilder().build(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Suppliers; | |
import org.example.proctor.ExampleGroups; | |
import org.example.proctor.ExampleGroupsManager; | |
import com.indeed.proctor.common.*; | |
import com.indeed.proctor.common.model.*; | |
... | |
public ExampleGroups getTestGroups(final Proctor proctor, final String userId, | |
final HttpServletRequest request, final HttpServletResponse response) { |
OlderNewer