02ab461dae
There are also a lot of small bug fixes found when testing lots of things end-to-end for the first time and some cleanup now it's integrated with real CA code.
16 lines
355 B
Go
16 lines
355 B
Go
package connect
|
|
|
|
import (
|
|
"github.com/mitchellh/go-testing-interface"
|
|
)
|
|
|
|
// TestSpiffeIDService returns a SPIFFE ID representing a service.
|
|
func TestSpiffeIDService(t testing.T, service string) *SpiffeIDService {
|
|
return &SpiffeIDService{
|
|
Host: testClusterID + ".consul",
|
|
Namespace: "default",
|
|
Datacenter: "dc1",
|
|
Service: service,
|
|
}
|
|
}
|