mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
20 lines
465 B
Go
20 lines
465 B
Go
// SPDX-FileCopyrightText: 2023 Steffen Vogel <post@steffenvogel.de>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package config_test
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
"github.com/stv0g/cunicu/pkg/config"
|
|
)
|
|
|
|
var _ = Context("default", func() {
|
|
It("has a default hostname", func() {
|
|
err := config.InitDefaults()
|
|
Expect(err).To(Succeed())
|
|
|
|
Expect(config.DefaultSettings.DefaultInterfaceSettings.HostName).NotTo(BeEmpty())
|
|
})
|
|
})
|