Documentation
¶
Index ¶
- func GenerateTestPrivateActionRunnerConfig(t *testing.T) string
- func GenerateTestRunnerIdentity(t *testing.T) (urn string, privateKeyB64 string)
- func PushFakeRunnerKeysConfig(t *testing.T, client *fakeintakeclient.Client)
- func SetupPARTaskSigning(t *testing.T, client *fakeintakeclient.Client, orgID int64, runnerID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTestPrivateActionRunnerConfig ¶
GenerateTestPrivateActionRunnerConfig returns datadog.yaml snippet with PAR enabled and a valid test identity so the runner can start without self-enrollment.
func GenerateTestRunnerIdentity ¶
GenerateTestRunnerIdentity generates a fresh ECDSA key pair and returns the runner URN and base64-encoded private JWK for agent config or Helm values.
func PushFakeRunnerKeysConfig ¶ added in v0.84.0
func PushFakeRunnerKeysConfig(t *testing.T, client *fakeintakeclient.Client)
PushFakeRunnerKeysConfig lets a PAR under test complete KeysManager startup without a real backend.
func SetupPARTaskSigning ¶ added in v0.84.0
func SetupPARTaskSigning(t *testing.T, client *fakeintakeclient.Client, orgID int64, runnerID string)
SetupPARTaskSigning additionally registers the private key with fakeintake's PAR server so dequeued tasks pass real signature verification.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.