Skip to content

Commit

Permalink
new version go database reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineJac committed Jan 15, 2024
1 parent 52791be commit d674e68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4730,21 +4730,21 @@ func Test_Sync_LookupConsumerTags(t *testing.T) {
setup(t)

// test that reference to non-existing consumer fails.
pluginsNoLookupStateFile := "testdata/sync/028-lookup-tags/plugins_no_lookup.yaml"
pluginsNoLookupStateFile := "testdata/sync/029-lookup-tags/plugins_no_lookup.yaml"
err := sync(pluginsNoLookupStateFile)
require.Error(t, err)
require.EqualError(t, err, "building state: consumer foo for plugin rate-limiting-advanced: entity not found")

// test that reference to existing local consumer succeeds.
pluginsAndConsumersStateFile := "testdata/sync/028-lookup-tags/plugins_and_consumers.yaml"
pluginsAndConsumersStateFile := "testdata/sync/029-lookup-tags/plugins_and_consumers.yaml"
require.NoError(t, sync(pluginsAndConsumersStateFile))
reset(t)

// test that reference to existing global consumer succeeds via lookup tags.
globalConsumersStateFile := "testdata/sync/028-lookup-tags/global_consumers.yaml"
globalConsumersStateFile := "testdata/sync/029-lookup-tags/global_consumers.yaml"
require.NoError(t, sync(globalConsumersStateFile))
// sync plugins with lookup reference to global consumers.
pluginsLookupStateFile := "testdata/sync/028-lookup-tags/plugins_lookup.yaml"
pluginsLookupStateFile := "testdata/sync/029-lookup-tags/plugins_lookup.yaml"
require.NoError(t, sync(pluginsLookupStateFile))
reset(t)

Expand Down

0 comments on commit d674e68

Please sign in to comment.