Skip to content

Commit

Permalink
Update provider_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jagan2221 authored Dec 2, 2024
1 parent 6059738 commit 98a4a4e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/configprovider/globprovider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ func ValidateProviderScheme(p confmap.Provider) error {

func TestRemotelyManagedMergeFlow(t *testing.T) {
fp := NewWithSettings(confmap.ProviderSettings{})
if globProvider, ok := fp.(*globprovider.Provider); ok {
globProvider.SetRemotelyManagedMergeFlow(true)
}
if globProvider, ok := fp.(*Provider); ok {
globProvider.SetRemotelyManagedMergeFlow(true)
}
ret, err := fp.Retrieve(context.Background(), schemePrefix+filepath.Join("testdata", "mergefunc", "*.yaml"), nil)
require.NoError(t, err)
retMap, err := ret.AsConf()
Expand All @@ -186,7 +186,6 @@ func TestRemotelyManagedMergeFlow(t *testing.T) {

func TestLocallyManagedMergeFlow(t *testing.T) {
fp := NewWithSettings(confmap.ProviderSettings{})

ret, err := fp.Retrieve(context.Background(), schemePrefix+filepath.Join("testdata", "mergefunc", "*.yaml"), nil)
require.NoError(t, err)
retMap, err := ret.AsConf()
Expand Down

0 comments on commit 98a4a4e

Please sign in to comment.