(t *testing.T)
| 1925 | } |
| 1926 | |
| 1927 | func TestIssueCreate_projectsV2(t *testing.T) { |
| 1928 | http := &httpmock.Registry{} |
| 1929 | defer http.Verify(t) |
| 1930 | |
| 1931 | http.StubIssueRepoInfoResponse("OWNER", "REPO") |
| 1932 | http.Register( |
| 1933 | httpmock.GraphQL(`query RepositoryProjectList\b`), |
| 1934 | httpmock.StringResponse(` |
| 1935 | { "data": { "repository": { "projects": { |
| 1936 | "nodes": [], |
| 1937 | "pageInfo": { "hasNextPage": false } |
| 1938 | } } } } |
| 1939 | `)) |
| 1940 | http.Register( |
| 1941 | httpmock.GraphQL(`query OrganizationProjectList\b`), |
| 1942 | httpmock.StringResponse(` |
| 1943 | { "data": { "organization": { "projects": { |
| 1944 | "nodes": [], |
| 1945 | "pageInfo": { "hasNextPage": false } |
| 1946 | } } } } |
| 1947 | `)) |
| 1948 | http.Register( |
| 1949 | httpmock.GraphQL(`query RepositoryProjectV2List\b`), |
| 1950 | httpmock.StringResponse(` |
| 1951 | { "data": { "repository": { "projectsV2": { |
| 1952 | "nodes": [ |
| 1953 | { "title": "CleanupV2", "id": "CLEANUPV2ID" }, |
| 1954 | { "title": "RoadmapV2", "id": "ROADMAPV2ID" } |
| 1955 | ], |
| 1956 | "pageInfo": { "hasNextPage": false } |
| 1957 | } } } } |
| 1958 | `)) |
| 1959 | http.Register( |
| 1960 | httpmock.GraphQL(`query OrganizationProjectV2List\b`), |
| 1961 | httpmock.StringResponse(` |
| 1962 | { "data": { "organization": { "projectsV2": { |
| 1963 | "nodes": [ |
| 1964 | { "title": "TriageV2", "id": "TRIAGEV2ID" } |
| 1965 | ], |
| 1966 | "pageInfo": { "hasNextPage": false } |
| 1967 | } } } } |
| 1968 | `)) |
| 1969 | http.Register( |
| 1970 | httpmock.GraphQL(`query UserProjectV2List\b`), |
| 1971 | httpmock.StringResponse(` |
| 1972 | { "data": { "viewer": { "projectsV2": { |
| 1973 | "nodes": [ |
| 1974 | { "title": "MonalisaV2", "id": "MONALISAV2ID" } |
| 1975 | ], |
| 1976 | "pageInfo": { "hasNextPage": false } |
| 1977 | } } } } |
| 1978 | `)) |
| 1979 | http.Register( |
| 1980 | httpmock.GraphQL(`mutation IssueCreate\b`), |
| 1981 | httpmock.GraphQLMutation(` |
| 1982 | { "data": { "createIssue": { "issue": { |
| 1983 | "id": "Issue#1", |
| 1984 | "URL": "https://github.com/OWNER/REPO/issues/12" |
nothing calls this directly
no test coverage detected