INNER CODE UNIT · Go
Test_GetLicenseKey_FromLiteral
inlets/inlets-operator · config_test.go:9
func Test_GetLicenseKey_FromLiteral(t *testing.T) {
want := "static.key.text"
c := TunnelConfig{
License: want,
}
key, err := c.GetLicenseKey()
if err != nil {
t.Fatalf("no error wanted for a valid key")
}
if want != key {
t.Fatalf("want %s but got %s", want, key)
}
}