Skip to content

Commit

Permalink
chore: update failing tests (#732)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert authored Apr 1, 2024
1 parent b5dc2eb commit e1eaf4e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ void contextTransformTest() {
String country = "someCountry";
String customPropertyValue = "customProperty_value";
String customPropertyKey = "customProperty";
String targetingKeyKey = "targetingKey";

MutableContext evaluationContext = new MutableContext();
evaluationContext.setTargetingKey(userId);
Expand All @@ -227,7 +228,7 @@ void contextTransformTest() {

HashMap<String, Object > customMap = new HashMap<>();
customMap.put(customPropertyKey, customPropertyValue);
customMap.put("targetingKey", userId);
customMap.put(targetingKeyKey, userId);
User expectedUser = User.newBuilder().email(email).country(country).custom(customMap).build(userId);
User transformedUser = ContextTransformer.transform(evaluationContext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
*/
class StatsigProviderTest {

public static final String FLAG_NAME = "enabledFeature";
public static final String CONFIG_FLAG_NAME = "alias";
public static final String LAYER_FLAG_NAME = "alias";
public static final String CONFIG_FLAG_VALUE = "test";
public static final String INT_FLAG_NAME = "revision";
public static final String LAYER_INT_FLAG_NAME = "revision";
public static final Integer INT_FLAG_VALUE = 5;
public static final String DOUBLE_FLAG_NAME = "price";
public static final String LAYER_DOUBLE_FLAG_NAME = "price";
public static final Double DOUBLE_FLAG_VALUE = 3.14;
public static final String USERS_FLAG_NAME = "userIdMatching";
public static final String PROPERTIES_FLAG_NAME = "emailMatching";
public static final String TARGETING_KEY = "user1";
private static final String FLAG_NAME = "enabledFeature";
private static final String CONFIG_FLAG_NAME = "alias";
private static final String LAYER_FLAG_NAME = "alias";
private static final String CONFIG_FLAG_VALUE = "test";
private static final String INT_FLAG_NAME = "revision";
private static final String LAYER_INT_FLAG_NAME = "revision";
private static final Integer INT_FLAG_VALUE = 5;
private static final String DOUBLE_FLAG_NAME = "price";
private static final String LAYER_DOUBLE_FLAG_NAME = "price";
private static final Double DOUBLE_FLAG_VALUE = 3.14;
private static final String USERS_FLAG_NAME = "userIdMatching";
private static final String PROPERTIES_FLAG_NAME = "emailMatching";
private static final String TARGETING_KEY = "user1";
private static StatsigProvider statsigProvider;
private static Client client;

Expand Down

0 comments on commit e1eaf4e

Please sign in to comment.