diff --git a/cmd/common.go b/cmd/common.go index e17575e7c..0501d2b1b 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -521,7 +521,6 @@ func performDiff(ctx context.Context, currentState, targetState *state.KongState dry bool, parallelism int, delay int, client *kong.Client, isKonnect bool, enableJSONOutput bool, applyType ApplyType, ) (int, error) { - shouldSkipDeletes := applyType == ApplyTypePartial s, err := diff.NewSyncer(diff.SyncerOpts{ diff --git a/tests/integration/apply_test.go b/tests/integration/apply_test.go index e15aa55c0..b7945716c 100644 --- a/tests/integration/apply_test.go +++ b/tests/integration/apply_test.go @@ -86,7 +86,8 @@ func Test_Apply_3x(t *testing.T) { runWhen(t, "kong", ">=3.0.0") setup(t) - apply(context.Background(), "testdata/apply/007-update-existing-entity/service-01.yaml") + err := apply(context.Background(), "testdata/apply/007-update-existing-entity/service-01.yaml") + require.NoError(t, err, "failed to apply service-01") out, err := dump() require.NoError(t, err) @@ -95,7 +96,9 @@ func Test_Apply_3x(t *testing.T) { assert.Equal(t, expectedOriginal, out) - apply(context.Background(), "testdata/apply/007-update-existing-entity/service-02.yaml") + err = apply(context.Background(), "testdata/apply/007-update-existing-entity/service-02.yaml") + require.NoError(t, err, "failed to apply service-02") + expectedChanged, err := readFile("testdata/apply/007-update-existing-entity/expected-state-02.yaml") require.NoError(t, err, "failed to read expected state")