(t *testing.T)
| 1702 | } |
| 1703 | |
| 1704 | func TestIssueCreate_metadata(t *testing.T) { |
| 1705 | http := &httpmock.Registry{} |
| 1706 | defer http.Verify(t) |
| 1707 | |
| 1708 | http.StubIssueRepoInfoResponse("OWNER", "REPO") |
| 1709 | http.Register( |
| 1710 | httpmock.GraphQL(`query RepositoryLabelList\b`), |
| 1711 | httpmock.StringResponse(` |
| 1712 | { "data": { "repository": { "labels": { |
| 1713 | "nodes": [ |
| 1714 | { "name": "TODO", "id": "TODOID" }, |
| 1715 | { "name": "bug", "id": "BUGID" } |
| 1716 | ], |
| 1717 | "pageInfo": { "hasNextPage": false } |
| 1718 | } } } } |
| 1719 | `)) |
| 1720 | http.Register( |
| 1721 | httpmock.GraphQL(`query RepositoryMilestoneList\b`), |
| 1722 | httpmock.StringResponse(` |
| 1723 | { "data": { "repository": { "milestones": { |
| 1724 | "nodes": [ |
| 1725 | { "title": "GA", "id": "GAID" }, |
| 1726 | { "title": "Big One.oh", "id": "BIGONEID" } |
| 1727 | ], |
| 1728 | "pageInfo": { "hasNextPage": false } |
| 1729 | } } } } |
| 1730 | `)) |
| 1731 | http.Register( |
| 1732 | httpmock.GraphQL(`query RepositoryProjectList\b`), |
| 1733 | httpmock.StringResponse(` |
| 1734 | { "data": { "repository": { "projects": { |
| 1735 | "nodes": [ |
| 1736 | { "name": "Cleanup", "id": "CLEANUPID" }, |
| 1737 | { "name": "Roadmap", "id": "ROADMAPID" } |
| 1738 | ], |
| 1739 | "pageInfo": { "hasNextPage": false } |
| 1740 | } } } } |
| 1741 | `)) |
| 1742 | http.Register( |
| 1743 | httpmock.GraphQL(`query OrganizationProjectList\b`), |
| 1744 | httpmock.StringResponse(` |
| 1745 | { "data": { "organization": null }, |
| 1746 | "errors": [{ |
| 1747 | "type": "NOT_FOUND", |
| 1748 | "path": [ "organization" ], |
| 1749 | "message": "Could not resolve to an Organization with the login of 'OWNER'." |
| 1750 | }] |
| 1751 | } |
| 1752 | `)) |
| 1753 | http.Register( |
| 1754 | httpmock.GraphQL(`query RepositoryProjectV2List\b`), |
| 1755 | httpmock.StringResponse(` |
| 1756 | { "data": { "repository": { "projectsV2": { |
| 1757 | "nodes": [], |
| 1758 | "pageInfo": { "hasNextPage": false } |
| 1759 | } } } } |
| 1760 | `)) |
| 1761 | http.Register( |
nothing calls this directly
no test coverage detected