Andrey Smirnov 27235b9ae1 chore: add simple health check for etcd service
Fixes #1419

This is required to avoid later startup failures while trying to connect
to etcd if it hasn't actually bootstrapped.

This health check does just connectivity check, no quorum/leader checks,
as they should depend on cluster state in general.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-11-06 05:50:40 -08:00

19 lines
553 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package services_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/talos-systems/talos/internal/app/machined/pkg/system"
"github.com/talos-systems/talos/internal/app/machined/pkg/system/services"
)
func TestEtcdInterfaces(t *testing.T) {
assert.Implements(t, (*system.HealthcheckedService)(nil), new(services.Etcd))
}