test: add v prefix back

This commit is contained in:
Pierre Cavin 2025-01-17 17:04:14 +01:00
parent 8c28075519
commit bbef636df6
No known key found for this signature in database
GPG key ID: AF113E5C031DC39E
2 changed files with 24 additions and 18 deletions

View file

@ -21,7 +21,7 @@ exports[`modules/manager/mix/artifacts authenticates to private repositories in
},
},
{
"cmd": "docker run --rm --name=renovate_sidecar --label=renovate_child -v "/tmp/github/some/repo":"/tmp/github/some/repo" -v "/tmp/cache":"/tmp/cache" -e CONTAINERBASE_CACHE_DIR -w "/tmp/github/some/repo" ghcr.io/containerbase/sidecar bash -l -c "install-tool erlang 25.0.0.0 && install-tool elixir 1.13.4 && mix hex.organization auth renovate_test --key valid_test_token && mix deps.update private_package other_package"",
"cmd": "docker run --rm --name=renovate_sidecar --label=renovate_child -v "/tmp/github/some/repo":"/tmp/github/some/repo" -v "/tmp/cache":"/tmp/cache" -e CONTAINERBASE_CACHE_DIR -w "/tmp/github/some/repo" ghcr.io/containerbase/sidecar bash -l -c "install-tool erlang 25.0.0.0 && install-tool elixir v1.13.4 && mix hex.organization auth renovate_test --key valid_test_token && mix deps.update private_package other_package"",
"options": {
"cwd": "/tmp/github/some/repo",
"encoding": "utf-8",
@ -80,7 +80,7 @@ exports[`modules/manager/mix/artifacts returns updated mix.lock 1`] = `
},
},
{
"cmd": "docker run --rm --name=renovate_sidecar --label=renovate_child -v "/tmp/github/some/repo":"/tmp/github/some/repo" -v "/tmp/cache":"/tmp/cache" -e CONTAINERBASE_CACHE_DIR -w "/tmp/github/some/repo" ghcr.io/containerbase/sidecar bash -l -c "install-tool erlang 25.0.0.0 && install-tool elixir 1.13.4 && mix deps.update plug"",
"cmd": "docker run --rm --name=renovate_sidecar --label=renovate_child -v "/tmp/github/some/repo":"/tmp/github/some/repo" -v "/tmp/cache":"/tmp/cache" -e CONTAINERBASE_CACHE_DIR -w "/tmp/github/some/repo" ghcr.io/containerbase/sidecar bash -l -c "install-tool erlang 25.0.0.0 && install-tool elixir v1.13.4 && mix deps.update plug"",
"options": {
"cwd": "/tmp/github/some/repo",
"encoding": "utf-8",

View file

@ -139,9 +139,9 @@ describe('modules/manager/mix/artifacts', () => {
// elixir
getPkgReleases.mockResolvedValueOnce({
releases: [
{ version: '1.8.2' },
{ version: '1.13.3' },
{ version: '1.13.4' },
{ version: 'v1.8.2' },
{ version: 'v1.13.3' },
{ version: 'v1.13.4' },
],
});
@ -215,9 +215,9 @@ describe('modules/manager/mix/artifacts', () => {
// elixir
getPkgReleases.mockResolvedValueOnce({
releases: [
{ version: '1.8.2' },
{ version: '1.13.3' },
{ version: '1.13.4' },
{ version: 'v1.8.2' },
{ version: 'v1.13.3' },
{ version: 'v1.13.4' },
],
});
@ -285,9 +285,9 @@ describe('modules/manager/mix/artifacts', () => {
// elixir
getPkgReleases.mockResolvedValueOnce({
releases: [
{ version: '1.8.2' },
{ version: '1.13.3' },
{ version: '1.13.4' },
{ version: 'v1.8.2' },
{ version: 'v1.13.3' },
{ version: 'v1.13.4' },
],
});
@ -305,7 +305,7 @@ describe('modules/manager/mix/artifacts', () => {
]);
expect(execSnapshots).toMatchObject([
{ cmd: 'install-tool erlang 25.0.0.0' },
{ cmd: 'install-tool elixir 1.13.4' },
{ cmd: 'install-tool elixir v1.13.4' },
{
cmd: 'mix hex.organization auth an_organization --key an_organization_token',
},
@ -327,7 +327,9 @@ describe('modules/manager/mix/artifacts', () => {
releases: [{ version: '25.0.0.0' }],
});
// elixir
getPkgReleases.mockResolvedValueOnce({ releases: [{ version: '1.13.4' }] });
getPkgReleases.mockResolvedValueOnce({
releases: [{ version: 'v1.13.4' }],
});
const execSnapshots = mockExecAll();
expect(
@ -349,7 +351,7 @@ describe('modules/manager/mix/artifacts', () => {
expect(execSnapshots).toMatchObject([
{ cmd: 'install-tool erlang 25.0.0.0' },
{ cmd: 'install-tool elixir 1.13.4' },
{ cmd: 'install-tool elixir v1.13.4' },
{
cmd: 'mix deps.update plug',
options: { cwd: '/tmp/github/some/repo/subdir' },
@ -370,7 +372,9 @@ describe('modules/manager/mix/artifacts', () => {
releases: [{ version: '25.0.0.0' }],
});
// elixir
getPkgReleases.mockResolvedValueOnce({ releases: [{ version: '1.13.4' }] });
getPkgReleases.mockResolvedValueOnce({
releases: [{ version: 'v1.13.4' }],
});
const execSnapshots = mockExecAll();
expect(
@ -392,7 +396,7 @@ describe('modules/manager/mix/artifacts', () => {
expect(execSnapshots).toMatchObject([
{ cmd: 'install-tool erlang 25.0.0.0' },
{ cmd: 'install-tool elixir 1.13.4' },
{ cmd: 'install-tool elixir v1.13.4' },
{
cmd: 'mix deps.update plug',
options: { cwd: '/tmp/github/some/repo/apps/foo' },
@ -411,7 +415,9 @@ describe('modules/manager/mix/artifacts', () => {
releases: [{ version: '25.0.0.0' }],
});
// elixir
getPkgReleases.mockResolvedValueOnce({ releases: [{ version: '1.13.4' }] });
getPkgReleases.mockResolvedValueOnce({
releases: [{ version: 'v1.13.4' }],
});
const execSnapshots = mockExecAll();
expect(
@ -433,7 +439,7 @@ describe('modules/manager/mix/artifacts', () => {
expect(execSnapshots).toMatchObject([
{ cmd: 'install-tool erlang 25.0.0.0' },
{ cmd: 'install-tool elixir 1.13.4' },
{ cmd: 'install-tool elixir v1.13.4' },
{
cmd: 'mix deps.get',
options: { cwd: '/tmp/github/some/repo' },