固定 workflow job key 身份契约
This commit is contained in:
@@ -25,7 +25,11 @@ func TestRunDerivesIdentityBeforeDispatch(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
task := &runnerv1.Task{Id: 42, Context: taskContext}
|
||||
task := &runnerv1.Task{
|
||||
Id: 42,
|
||||
Context: taskContext,
|
||||
WorkflowPayload: []byte("jobs:\n test:\n runs-on: [self-hosted, pod]\n steps: []\n"),
|
||||
}
|
||||
dispatcher := &recordingDispatcher{}
|
||||
scheduler := Scheduler{TrustDomain: "ddupan.top", Dispatcher: dispatcher}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user