OpenFeature: Use types from Go Feature Flag pkg (#108802)
* Use go feature flag types * Add go-feature-flag module * Update go.mod * Update test * Fix
This commit is contained in:
@@ -40,14 +40,9 @@ func TestIntegrationFeatures(t *testing.T) {
|
||||
|
||||
require.Equal(t, 200, rsp.Response.StatusCode)
|
||||
require.JSONEq(t, `{
|
||||
"Value": true,
|
||||
"FlagKey": "`+flag+`",
|
||||
"FlagType": 0,
|
||||
"Variant": "enabled",
|
||||
"Reason": "STATIC",
|
||||
"ErrorCode": "",
|
||||
"ErrorMessage": "",
|
||||
"FlagMetadata": {}
|
||||
}`, string(rsp.Body))
|
||||
"value": true,
|
||||
"key":"`+flag+`",
|
||||
"reason":"static provider evaluation result",
|
||||
"variant":"enabled"}`, string(rsp.Body))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user