Skip to content

Latest commit

 

History

History

openfeature-white-list-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

White List Testing Example

This is an White List example for line /flagship4j.
this example utilize variant attachment to achieve it

Step toggle

Add flag key for feature A and turn on it.

  1. Open http://localhost:18000/ in browser.
  2. Create white-list-flagr in the add-flag field.
  3. Modify the flag key Create Flag

Create a variant

  1. Create variant key = config
  2. Then we could set variant attachment and config whiteList array for white list
    - you can configure config and whiteList to any name you like Variants

Distribute variant

  1. Distribute config and make sure rollout t0 100% for going to launch. Config is On

Enable toggle

  1. Back to the top and enable the toggle Enable toggle

Run the example and check the outputs.

# cd to project root
./gradlew -q --console plain :examples:openfeature-white-list-example:run

Output