Push on COR-2974-wasm-config-body-type #2177
GitHub Actions / Test Report
succeeded
Aug 8, 2024 in 1s
268 passed, 0 failed and 32 skipped
β Β jest-junit.xml
300 tests were completed in 153s with 268 passed, 0 failed and 32 skipped.
β Β harness/features/allFeatures.cloud.test.ts
allFeatures Tests - Cloud βΊ OF-NodeJS
β
should return all features without edgeDB
β
should return all features with edgeDB
βͺ should throw if features request fails on invalid sdk key
β Β harness/features/allFeatures.cloud.test.ts
allFeatures Tests - Cloud βΊ NodeJS
β
should return all features without edgeDB
β
should return all features with edgeDB
βͺ should throw if features request fails on invalid sdk key
β Β harness/features/allFeatures.local.test.ts
allFeatures Tests - Local βΊ uninitialized client
β
should return empty object if client is uninitialized
allFeatures Tests - Local βΊ initialized client
β
should return all features for user without custom data
β
should return all features for user with custom data
β Β harness/features/allFeatures.local.test.ts
allFeatures Tests - Local βΊ uninitialized client
β
should return empty object if client is uninitialized
allFeatures Tests - Local βΊ initialized client
β
should return all features for user without custom data
β
should return all features for user with custom data
β Β harness/features/allVariables.cloud.test.ts
allVariables Tests - Cloud βΊ OF-NodeJS
β
should return an empty object if variables request fails
β
should throw if variables request fails on user error
β
should return a variable map
β
should make a request to the variables endpoint with edgeDB param to false
β
should make a request to the variables endpoint with edgeDB param to true
β Β harness/features/allVariables.cloud.test.ts
allVariables Tests - Cloud βΊ NodeJS
β
should return an empty object if variables request fails
β
should throw if variables request fails on user error
β
should return a variable map
β
should make a request to the variables endpoint with edgeDB param to false
β
should make a request to the variables endpoint with edgeDB param to true
β Β harness/features/allVariables.local.test.ts
allVariables Tests - Local
β
should return an empty object if client is not initialized
β
should return a variable map for a bucketed user
β Β harness/features/allVariables.local.test.ts
allVariables Tests - Local
β
should return an empty object if client is not initialized
β
should return a variable map for a bucketed user
β Β harness/features/bootstrapping.test.ts
Bootstrapping Tests βΊ OF-NodeJS βΊ not enabled client
βͺ throws an error when trying to get bootstrap config if not enabled
Bootstrapping Tests βΊ OF-NodeJS βΊ initialized client
βͺ should return a client bootstrapped config
β Β harness/features/bootstrapping.test.ts
Bootstrapping Tests βΊ NodeJS βΊ not enabled client
β
throws an error when trying to get bootstrap config if not enabled
Bootstrapping Tests βΊ NodeJS βΊ initialized client
β
should return a client bootstrapped config
β Β harness/features/clientCustomData.test.ts
Client Custom Data Tests βΊ OF-NodeJS
βͺ should set client custom data and use it for segmentation
βͺ should do nothing when client has not initialized
β Β harness/features/clientCustomData.test.ts
Client Custom Data Tests βΊ NodeJS
βͺ should set client custom data and use it for segmentation
βͺ should do nothing when client has not initialized
β Β harness/features/initialize.cloud.test.ts
Client Initialize Tests - Cloud βΊ OF-NodeJS
β
should throw an exception and return no location if invalid SDK token is sent
β
should throw an exception and return no location if no SDK token is sent
β
should return client object location if SDK token is correct
β Β harness/features/initialize.cloud.test.ts
Client Initialize Tests - Cloud βΊ NodeJS
β
should throw an exception and return no location if invalid SDK token is sent
β
should throw an exception and return no location if no SDK token is sent
β
should return client object location if SDK token is correct
β Β harness/features/initialize.local.test.ts
Initialize Tests - Local
β
should error when SDK key is missing
β
should error when SDK key is invalid
β
initializes correctly on valid data
β
calls initialize promise/callback when config is successfully retrieved
β
calls initialize promise/callback when config fails to be retrieved
β
defaults variable when config fails to be retrieved, and then recovers
βͺ stops the polling interval when the sdk key is invalid and cdn responds 403, throws error
β
fetches config again after 3 seconds when config polling interval is overriden
β
uses the same config if the etag matches
β
uses the same config if the refetch fails, after retrying once
β
uses the same config if the response is invalid JSON
β
uses the same config if the response is valid JSON but invalid data
β
uses the new config when etag changes, and flushes existing events
β Β harness/features/initialize.local.test.ts
Initialize Tests - Local
β
should error when SDK key is missing
β
should error when SDK key is invalid
β
initializes correctly on valid data
β
calls initialize promise/callback when config is successfully retrieved
β
calls initialize promise/callback when config fails to be retrieved
β
defaults variable when config fails to be retrieved, and then recovers
βͺ stops the polling interval when the sdk key is invalid and cdn responds 403, throws error
β
fetches config again after 3 seconds when config polling interval is overriden
β
uses the same config if the etag matches
β
uses the same config if the refetch fails, after retrying once
β
uses the same config if the response is invalid JSON
β
uses the same config if the response is valid JSON but invalid data
β
uses the new config when etag changes, and flushes existing events
β Β harness/features/multithreading.local.test.ts
Multithreading Tests βΊ OF-NodeJS βΊ initialized client
βͺ should return variable if SDK returns object matching default type
βͺ should aggregate events across threads
βͺ should retry events across threads
Multithreading Tests βΊ OF-NodeJS βΊ initialized client βΊ OF-NodeJS
βͺ should set client custom data and use it for segmentation
Multithreading Tests βΊ OF-NodeJS βΊ uninitialized client
βͺ should return default value if client is uninitialized, log event
β Β harness/features/multithreading.local.test.ts
Multithreading Tests βΊ NodeJS βΊ initialized client
βͺ should return variable if SDK returns object matching default type
βͺ should aggregate events across threads
βͺ should retry events across threads
Multithreading Tests βΊ NodeJS βΊ initialized client βΊ NodeJS
βͺ should set client custom data and use it for segmentation
Multithreading Tests βΊ NodeJS βΊ uninitialized client
βͺ should return default value if client is uninitialized, log event
β Β harness/features/track.cloud.test.ts
Track Tests - Cloud βΊ OF-NodeJS
β
should complain if event type not set
β
should call events API to track event
β
should retry events API on failed request
β
should throw if track request fails on invalid sdk key
β Β harness/features/track.cloud.test.ts
Track Tests - Cloud βΊ NodeJS
β
should complain if event type not set
β
should call events API to track event
β
should retry events API on failed request
β
should throw if track request fails on invalid sdk key
β Β harness/features/track.local.test.ts
Track Tests - Local βΊ Expect no events sent
β
should not send an event if the event type not set
Track Tests - Local βΊ Expect events sent
β
should call events API to track event
β
should call events API to track 2 events
β
should retry events API call to track 2 events and check interval of events is in specified window
β Β harness/features/track.local.test.ts
Track Tests - Local βΊ Expect no events sent
β
should not send an event if the event type not set
Track Tests - Local βΊ Expect events sent
β
should call events API to track event
β
should call events API to track 2 events
β
should retry events API call to track 2 events and check interval of events is in specified window
β Β harness/features/variable.cloud.test.ts
Variable Tests - Cloud βΊ OF-NodeJS
β
will throw error variable called with invalid key
βͺ will throw error if variable called with invalid sdk key
βͺ will throw error if variableValue called with invalid sdk key
β
will throw error variable called with invalid default value
β
should call variable API without edgeDB option
β
should call variableValue API without edgeDB option
β
should call variable API with edgeDB option
β
should call variableValue API with edgeDB option
β
should return default if mock server returns variable mismatching default value type
β
should return default if mock server returns variableValue mismatching default value type
Variable Tests - Cloud βΊ OF-NodeJS βΊ Variable string tests
β
should return default string variable if mock server returns undefined
β
should return default string variableValue if mock server returns undefined
β
should return string variable if mock server returns proper variable matching default value type
β
should return string variableValue if mock server returns proper variable matching default value type
β
should return defaulted string variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted string variableValue if mock server returns an internal error, after retrying 5 times
Variable Tests - Cloud βΊ OF-NodeJS βΊ Variable number tests
β
should return default number variable if mock server returns undefined
β
should return default number variableValue if mock server returns undefined
β
should return number variable if mock server returns proper variable matching default value type
β
should return number variableValue if mock server returns proper variable matching default value type
β
should return defaulted number variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted number variableValue if mock server returns an internal error, after retrying 5 times
Variable Tests - Cloud βΊ OF-NodeJS βΊ Variable boolean tests
β
should return default boolean variable if mock server returns undefined
β
should return default boolean variableValue if mock server returns undefined
β
should return boolean variable if mock server returns proper variable matching default value type
β
should return boolean variableValue if mock server returns proper variable matching default value type
β
should return defaulted boolean variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted boolean variableValue if mock server returns an internal error, after retrying 5 times
Variable Tests - Cloud βΊ OF-NodeJS βΊ Variable JSON tests
β
should return default JSON variable if mock server returns undefined
β
should return default JSON variableValue if mock server returns undefined
β
should return JSON variable if mock server returns proper variable matching default value type
β
should return JSON variableValue if mock server returns proper variable matching default value type
β
should return defaulted JSON variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted JSON variableValue if mock server returns an internal error, after retrying 5 times
β Β harness/features/variable.cloud.test.ts
Variable Tests - Cloud βΊ NodeJS
β
will throw error variable called with invalid key
β
will throw error variableValue called with invalid key
βͺ will throw error if variable called with invalid sdk key
βͺ will throw error if variableValue called with invalid sdk key
β
will throw error variable called with invalid default value
β
will throw error variableValue called with invalid default value
β
should call variable API without edgeDB option
β
should call variableValue API without edgeDB option
β
should call variable API with edgeDB option
β
should call variableValue API with edgeDB option
β
should return default if mock server returns variable mismatching default value type
β
should return default if mock server returns variableValue mismatching default value type
Variable Tests - Cloud βΊ NodeJS βΊ Variable string tests
β
should return default string variable if mock server returns undefined
β
should return default string variableValue if mock server returns undefined
β
should return string variable if mock server returns proper variable matching default value type
β
should return string variableValue if mock server returns proper variable matching default value type
β
should return defaulted string variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted string variableValue if mock server returns an internal error, after retrying 5 times
Variable Tests - Cloud βΊ NodeJS βΊ Variable number tests
β
should return default number variable if mock server returns undefined
β
should return default number variableValue if mock server returns undefined
β
should return number variable if mock server returns proper variable matching default value type
β
should return number variableValue if mock server returns proper variable matching default value type
β
should return defaulted number variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted number variableValue if mock server returns an internal error, after retrying 5 times
Variable Tests - Cloud βΊ NodeJS βΊ Variable boolean tests
β
should return default boolean variable if mock server returns undefined
β
should return default boolean variableValue if mock server returns undefined
β
should return boolean variable if mock server returns proper variable matching default value type
β
should return boolean variableValue if mock server returns proper variable matching default value type
β
should return defaulted boolean variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted boolean variableValue if mock server returns an internal error, after retrying 5 times
Variable Tests - Cloud βΊ NodeJS βΊ Variable JSON tests
β
should return default JSON variable if mock server returns undefined
β
should return default JSON variableValue if mock server returns undefined
β
should return JSON variable if mock server returns proper variable matching default value type
β
should return JSON variableValue if mock server returns proper variable matching default value type
β
should return defaulted JSON variable if mock server returns an internal error, after retrying 5 times
β
should return defaulted JSON variableValue if mock server returns an internal error, after retrying 5 times
β Β harness/features/variable.local.test.ts
Variable Tests - Local βΊ initialized client βΊ Variable string tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
βͺ should return default value if default type doesn't match variable type
βͺ should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client βΊ Variable number tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
βͺ should return default value if default type doesn't match variable type
βͺ should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client βΊ Variable boolean tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
βͺ should return default value if default type doesn't match variable type
βͺ should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client βΊ Variable JSON tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
βͺ should return default value if default type doesn't match variable type
βͺ should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client
β
should return a valid unicode string for variable
β
should return a valid unicode string for variableValue
Variable Tests - Local βΊ uninitialized client βΊ Variable string tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
Variable Tests - Local βΊ uninitialized client βΊ Variable number tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
Variable Tests - Local βΊ uninitialized client βΊ Variable boolean tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
Variable Tests - Local βΊ uninitialized client βΊ Variable JSON tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
β Β harness/features/variable.local.test.ts
Variable Tests - Local βΊ initialized client βΊ Variable string tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
β
should return default value if default type doesn't match variable type
β
should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client βΊ Variable number tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
β
should return default value if default type doesn't match variable type
β
should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client βΊ Variable boolean tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
β
should return default value if default type doesn't match variable type
β
should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client βΊ Variable JSON tests
β
should return variable if mock server returns object matching default type
β
should return variableValue if mock server returns object matching default type
β
should return default value if default type doesn't match variable type
β
should return default value if default type doesn't match variableValue type
β
should return default value if user is not bucketed into variable
β
should return default value if user is not bucketed into variableValue
β
should return default value if variable doesn't exist
β
should return default value if variableValue doesn't exist
β
should aggregate aggVariableDefaulted events for variable
β
should aggregate aggVariableDefaulted events for variableValue
β
should aggregate aggVariableEvaluated events for variable
β
should aggregate aggVariableEvaluated events for variableValue
Variable Tests - Local βΊ initialized client
β
should return a valid unicode string for variable
β
should return a valid unicode string for variableValue
Variable Tests - Local βΊ uninitialized client βΊ Variable string tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
Variable Tests - Local βΊ uninitialized client βΊ Variable number tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
Variable Tests - Local βΊ uninitialized client βΊ Variable boolean tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
Variable Tests - Local βΊ uninitialized client βΊ Variable JSON tests
β
should return variable default value if client is uninitialized, log event
β
should return variableValue default value if client is uninitialized, log event
β
should return default value for variable if client config failed, log event
β
should return default value for variableValue if client config failed, log event
β Β harness/types/capabilities.test.ts
SDKCapabilities Unit Tests
β
should load capabilities from env variables
β
should load capabilities from env variables as JSON
β
should use default capabilities if env variables are not set
β Β harness/types/capabilities.test.ts
SDKCapabilities Unit Tests
β
should load capabilities from env variables
β
should load capabilities from env variables as JSON
β
should use default capabilities if env variables are not set
Loading