issuePending creates a pending_approval outbound message on the agent.
(t *testing.T, store *identity.Store, agentID string)
| 75 | |
| 76 | // issuePending creates a pending_approval outbound message on the agent. |
| 77 | func issuePending(t *testing.T, store *identity.Store, agentID string) *identity.Message { |
| 78 | t.Helper() |
| 79 | msg, err := store.CreatePendingOutboundMessage(context.Background(), agentID, |
| 80 | []string{"alice@example.com"}, nil, nil, |
| 81 | "Held", "plain body", "<p>html</p>", nil, |
| 82 | "send", "", "", 3600) |
| 83 | if err != nil { |
| 84 | t.Fatal(err) |
| 85 | } |
| 86 | return msg |
| 87 | } |
| 88 | |
| 89 | func readBody(t *testing.T, resp *http.Response) string { |
| 90 | t.Helper() |
no test coverage detected