Closed
Description
The testEmptyProject
of the GitLab context parser fails:
gitpod/components/server/src/gitlab/gitlab-context-parser.spec.ts
Lines 531 to 548 in bc6c9f7
1) TestGitlabContextParser
testEmptyProject:
AssertionError: expected { Object (isFile, path, ...) } to have deep property 'ref'
at TestGitlabContextParser.<anonymous> (src/gitlab/gitlab-context-parser.spec.ts:549:36)
at Generator.next (<anonymous>)
at fulfilled (src/gitlab/gitlab-context-parser.spec.ts:19:58)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
The actual result is:
{
"isFile": false,
"path": "",
"title": "gp-test-group/gp-test-empty-project - main",
"revision": "",
"repository": {
"host": "gitlab.com",
"name": "gp-test-empty-project",
"owner": "gp-test-group",
"cloneUrl": "https://gitlab.com/gp-test-group/gp-test-empty-project.git",
"defaultBranch": "main",
"private": false
}
}
Opening the empty workspace actually works, though. It's just the test that fails and needs to be fixed.