test(user agent): fix broken user-agent test
The tests run on the latest VS Code. The version can't be hardcoded in the tests. Now the build on main
branch is broken.
Example of failing test
https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/jobs/1010586130
1) User-Agent header
is sent with requests from GitLabService:
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'vs-code-gitlab-workflow/3.11.2 VSCode/1.53.0 Node.js/12.18.3 (linux; x64)'
- 'vs-code-gitlab-workflow/3.11.2 VSCode/1.52.1 Node.js/12.18.3 (linux; x64)'
+ expected - actual
-vs-code-gitlab-workflow/3.11.2 VSCode/1.53.0 Node.js/12.18.3 (linux; x64)
+vs-code-gitlab-workflow/3.11.2 VSCode/1.52.1 Node.js/12.18.3 (linux; x64)
Edited by Tomas Vik