@@ -18,7 +18,7 @@ import (
1818// using the actual OpenFeature SDK client.
1919func TestEndToEnd_BooleanFlag (t * testing.T ) {
2020 // Create provider and configuration
21- provider := newDatadogProvider (nil )
21+ provider := newDatadogProvider (ProviderConfig {} )
2222 config := createE2EBooleanConfig ()
2323 provider .updateConfiguration (& config )
2424
@@ -88,7 +88,7 @@ func TestEndToEnd_BooleanFlag(t *testing.T) {
8888
8989// TestEndToEnd_StringFlag tests string flag evaluation with the OpenFeature SDK.
9090func TestEndToEnd_StringFlag (t * testing.T ) {
91- provider := newDatadogProvider (nil )
91+ provider := newDatadogProvider (ProviderConfig {} )
9292 config := createE2EStringConfig ()
9393 provider .updateConfiguration (config )
9494
@@ -133,7 +133,7 @@ func TestEndToEnd_StringFlag(t *testing.T) {
133133
134134// TestEndToEnd_IntegerFlag tests integer flag evaluation.
135135func TestEndToEnd_IntegerFlag (t * testing.T ) {
136- provider := newDatadogProvider (nil )
136+ provider := newDatadogProvider (ProviderConfig {} )
137137 config := createE2EIntegerConfig ()
138138 provider .updateConfiguration (config )
139139
@@ -178,7 +178,7 @@ func TestEndToEnd_IntegerFlag(t *testing.T) {
178178
179179// TestEndToEnd_FloatFlag tests float flag evaluation.
180180func TestEndToEnd_FloatFlag (t * testing.T ) {
181- provider := newDatadogProvider (nil )
181+ provider := newDatadogProvider (ProviderConfig {} )
182182 config := createE2EFloatConfig ()
183183 provider .updateConfiguration (config )
184184
@@ -206,7 +206,7 @@ func TestEndToEnd_FloatFlag(t *testing.T) {
206206
207207// TestEndToEnd_ObjectFlag tests JSON/object flag evaluation.
208208func TestEndToEnd_ObjectFlag (t * testing.T ) {
209- provider := newDatadogProvider (nil )
209+ provider := newDatadogProvider (ProviderConfig {} )
210210 config := createE2EObjectConfig ()
211211 provider .updateConfiguration (config )
212212
@@ -252,7 +252,7 @@ func TestEndToEnd_ObjectFlag(t *testing.T) {
252252
253253// TestEndToEnd_DisabledFlag tests that disabled flags return defaults.
254254func TestEndToEnd_DisabledFlag (t * testing.T ) {
255- provider := newDatadogProvider (nil )
255+ provider := newDatadogProvider (ProviderConfig {} )
256256 config := & universalFlagsConfiguration {
257257 Format : "SERVER" ,
258258 Environment : environment {
@@ -297,7 +297,7 @@ func TestEndToEnd_DisabledFlag(t *testing.T) {
297297
298298// TestEndToEnd_MissingFlag tests error handling for non-existent flags.
299299func TestEndToEnd_MissingFlag (t * testing.T ) {
300- provider := newDatadogProvider (nil )
300+ provider := newDatadogProvider (ProviderConfig {} )
301301 config := & universalFlagsConfiguration {
302302 Format : "SERVER" ,
303303 Environment : environment {
@@ -334,7 +334,7 @@ func TestEndToEnd_MissingFlag(t *testing.T) {
334334
335335// TestEndToEnd_ConfigurationUpdate tests that configuration updates are reflected in evaluations.
336336func TestEndToEnd_ConfigurationUpdate (t * testing.T ) {
337- provider := newDatadogProvider (nil )
337+ provider := newDatadogProvider (ProviderConfig {} )
338338 provider .updateConfiguration (& universalFlagsConfiguration {})
339339 err := of .SetProviderAndWait (provider )
340340 if err != nil {
@@ -368,7 +368,7 @@ func TestEndToEnd_ConfigurationUpdate(t *testing.T) {
368368
369369// TestEndToEnd_TrafficSharding tests that traffic distribution works correctly.
370370func TestEndToEnd_TrafficSharding (t * testing.T ) {
371- provider := newDatadogProvider (nil )
371+ provider := newDatadogProvider (ProviderConfig {} )
372372 config := createE2EShardingConfig ()
373373 provider .updateConfiguration (config )
374374
@@ -826,7 +826,7 @@ func TestEndToEnd_JSONSerialization(t *testing.T) {
826826 }
827827
828828 // Use the parsed config
829- provider := newDatadogProvider (nil )
829+ provider := newDatadogProvider (ProviderConfig {} )
830830 provider .updateConfiguration (& parsedConfig )
831831
832832 err = of .SetProviderAndWait (provider )
@@ -853,7 +853,7 @@ func TestEndToEnd_JSONSerialization(t *testing.T) {
853853// TestEndToEnd_EmptyRulesAllocation tests that an allocation with no rules matches all users.
854854// This covers the fix where empty rules should match everyone (no targeting restrictions).
855855func TestEndToEnd_EmptyRulesAllocation (t * testing.T ) {
856- provider := newDatadogProvider (nil )
856+ provider := newDatadogProvider (ProviderConfig {} )
857857 config := & universalFlagsConfiguration {
858858 Format : "SERVER" ,
859859 Environment : environment {
@@ -925,7 +925,7 @@ func TestEndToEnd_EmptyRulesAllocation(t *testing.T) {
925925// TestEndToEnd_ShardCalculationWithDash tests that the shard calculation uses
926926// salt + "-" + targetingKey (with dash separator) to match Eppo SDK implementation.
927927func TestEndToEnd_ShardCalculationWithDash (t * testing.T ) {
928- provider := newDatadogProvider (nil )
928+ provider := newDatadogProvider (ProviderConfig {} )
929929 config := & universalFlagsConfiguration {
930930 Format : "SERVER" ,
931931 Environment : environment {
@@ -1035,7 +1035,7 @@ func TestEndToEnd_ShardCalculationWithDash(t *testing.T) {
10351035// TestEndToEnd_IdAttributeFallback tests that when an attribute named "id" is not
10361036// explicitly provided, the targeting key is used as the "id" value.
10371037func TestEndToEnd_IdAttributeFallback (t * testing.T ) {
1038- provider := newDatadogProvider (nil )
1038+ provider := newDatadogProvider (ProviderConfig {} )
10391039 config := & universalFlagsConfiguration {
10401040 Format : "SERVER" ,
10411041 Environment : environment {
@@ -1151,7 +1151,7 @@ func TestEndToEnd_IdAttributeFallback(t *testing.T) {
11511151
11521152// TestEndToEnd_AllThreeFixes tests a complex scenario that exercises all three fixes together.
11531153func TestEndToEnd_AllThreeFixes (t * testing.T ) {
1154- provider := newDatadogProvider (nil )
1154+ provider := newDatadogProvider (ProviderConfig {} )
11551155 config := & universalFlagsConfiguration {
11561156 Format : "SERVER" ,
11571157 Environment : environment {
0 commit comments