(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestAttachment_IndexOutOfRange(t *testing.T) { |
| 150 | srv := attTestServer(t) |
| 151 | code, body := getJSONAtt(t, srv.URL+"/v1/agents/support%40acme.com/messages/msg_att/attachments/9", "acct") |
| 152 | if code != 404 || errCode(body) != "attachment_not_found" { |
| 153 | t.Fatalf("want 404 attachment_not_found, got %d %v", code, body) |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | func TestAttachment_AgentScopeCannotReadOtherAgentsMessage(t *testing.T) { |
| 158 | srv := attTestServer(t) |
nothing calls this directly
no test coverage detected