Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parametalol committed Nov 10, 2023
1 parent b881c29 commit c52b0e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fleetshard/pkg/central/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1069,11 +1069,15 @@ func TestTelemetryOptionsAreSetInCR(t *testing.T) {
require.NoError(t, err)

require.NotNil(t, central.Spec.Central.Telemetry.Enabled)
assert.Equal(t, tc.enabled, *central.Spec.Central.Telemetry.Enabled)
assert.True(t, *central.Spec.Central.Telemetry.Enabled)
require.NotNil(t, central.Spec.Central.Telemetry.Storage.Endpoint)
assert.Equal(t, tc.telemetry.StorageEndpoint, *central.Spec.Central.Telemetry.Storage.Endpoint)
require.NotNil(t, central.Spec.Central.Telemetry.Storage.Key)
assert.Equal(t, tc.telemetry.StorageKey, *central.Spec.Central.Telemetry.Storage.Key)
if tc.telemetry.StorageKey == "" {
assert.Equal(t, "DISABLED", *central.Spec.Central.Telemetry.Storage.Key)
} else {
assert.Equal(t, tc.telemetry.StorageKey, *central.Spec.Central.Telemetry.Storage.Key)
}
})
}
}
Expand Down

0 comments on commit c52b0e5

Please sign in to comment.