APISonar


com.intuit.wasabi.tests.data.SegmentationDataProvider.time

> com > intuit > wasabi > tests > data > SegmentationDataProvider > time
com APIs intuit APIs wasabi APIs tests APIs data APIs SegmentationDataProvider APIs time APIs

Example 1
public void t_mutualExclusionNoProfileMatch() {
        String url = "/assignments/applications/segmutex_" + SegmentationDataProvider.time + "/experiments/" +
                validExperimentsLists.get(1).label + "/users";
        String data = "{\"profile\": {\"salary\": 1000, \"state\": \"CA\", \"vet\": true}}";
        response = apiServerConnector.doPost(url + "/Billy", data);
        LOGGER.debug(response.asString());
        assertReturnCode(response, HttpStatus.SC_OK);
        Assert.assertEquals(response.asString().contains("NO_PROFILE_MATCH"), true);
    }
Example 2
public void t_updateBadRuleToNoRuleExperiment() {
        Experiment experiment = validExperimentsMaps.get("seg_no_rule_" + SegmentationDataProvider.time);
        String rule = "{\"rule\": \"salary === 5\"}";
        response = apiServerConnector.doPut("/experiments/" + experiment.id, rule);
        assertReturnCode(response, HttpStatus.SC_BAD_REQUEST);
        response = apiServerConnector.doGet("/experiments/" + experiment.id);
        assertReturnCode(response, HttpStatus.SC_OK);
    }