feat(integrations): align linear parity

This commit is contained in:
2026-06-06 17:09:15 +08:00
parent 7b28f9227d
commit a6f97c8bbc
9 changed files with 739 additions and 112 deletions
@@ -181,6 +181,20 @@ func TestLinearIntegration_SearchIssue_BadAccountID(t *testing.T) {
assert.Contains(t, errBody["message"], "invalid account_id")
}
func TestLinearIntegration_SearchIssue_BlankQuery(t *testing.T) {
r := setupLinearIntegrationRouter()
w := httptest.NewRecorder()
req, _ := http.NewRequest("GET", "/api/v1/accounts/1/integrations/linear/search_issue", nil)
r.ServeHTTP(w, req)
assert.Equal(t, http.StatusUnprocessableEntity, w.Code)
var resp map[string]interface{}
json.Unmarshal(w.Body.Bytes(), &resp)
assert.Equal(t, "Specify search string with parameter q", resp["error"])
}
func TestLinearIntegration_GetLinkedIssues_BadAccountID(t *testing.T) {
r := setupLinearIntegrationRouter()