Skip to content

Commit

Permalink
[BUMP] Lock file maintenance (dossier racine)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Mar 6, 2024
1 parent e32ecd4 commit 23dc615
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 64 deletions.
143 changes: 79 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/acceptance/build/github_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ describe('Acceptance | Build | Github', function () {
expect(scalingoDeployFront2.isDone()).to.be.true;
expect(scalingoDeployApi.isDone()).to.be.true;
});

describe('when scalingo returns an error during deployment', function () {
it('responds with 500', async function () {
// given
Expand Down
1 change: 1 addition & 0 deletions test/acceptance/build/scalingo_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('Acceptance | Build | Scalingo', function () {
});
});
});

describe('when the build has succeeded', function () {
it('should return OK (200) and log a message', async function () {
// given
Expand Down
1 change: 1 addition & 0 deletions test/acceptance/run/slack_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ describe('Acceptance | Run | Slack', function () {
expect(tagNock).to.have.been.requested;
});
});

it('returns the confirmation modal', async function () {
// given
const nocks = nockGithubWithNoConfigChanges();
Expand Down
1 change: 1 addition & 0 deletions test/acceptance/run/slashcommand_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('Acceptance | Run | SlashCommand', function () {
expect(res.result.text).to.equal('Commande de déploiement de Metabase en production bien reçue.');
});
});

describe('POST /slack/commands/deploy-privatebin', function () {
it('responds with 200', async function () {
const body = {};
Expand Down
1 change: 1 addition & 0 deletions test/integration/run/services/tasks/autoscale-web_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('#task-autoscale-web', function () {
message: 'pix-api-test has been austocaled with sucess to min: 2 and max: 4',
});
});

it('should throw an error on scalingo errors', async function () {
// given
const applicationName = 'pix-api-test';
Expand Down
1 change: 1 addition & 0 deletions test/unit/build/services/github_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ describe('Unit | Build | github-test', function () {
message: 'API rate limit exceeded for user ID 1. [rate reset in 8m48s]',
});
});

it('should throw an error', async function () {
// given
sinon.stub(logger, 'error');
Expand Down
1 change: 1 addition & 0 deletions test/unit/build/services/google-sheet_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('#getA11YTip', function () {
],
],
};

before(function () {
sinon.stub(axios, 'get').resolves({ data });
});
Expand Down
3 changes: 3 additions & 0 deletions test/unit/common/models/ScalingoAppName_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('Unit | Common | Models | ScalingoAppName', function () {
// then
expect(resultTooShortAppName, 'Too short app name').to.be.false;
});

it('should return false if appName is too long', function () {
// given
const tooLongAppName = 'pix-application-with-a-long-name-that-does-not-fit-production';
Expand All @@ -48,6 +49,7 @@ describe('Unit | Common | Models | ScalingoAppName', function () {
// then
expect(resultTooLongAppName, 'Too long app name').to.be.false;
});

it('should return false if appName end with incorrect suffix', function () {
// given
const incorrectSuffixAppName = 'pix-coucou-app-name-mauvaissuffix';
Expand All @@ -58,6 +60,7 @@ describe('Unit | Common | Models | ScalingoAppName', function () {
// then
expect(resultIncorrectSuffixAppName, 'Incorrect suffix app name').to.be.false;
});

it('should return true if parameter is a valid appName', function () {
// given
const validAppName = 'pix-super-application-recette';
Expand Down
1 change: 1 addition & 0 deletions test/unit/common/services/logger_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('logger', function () {
);
});
});

describe('when an object is passed', function () {
it(`should call injectedLogger ${level} with object in message`, function () {
// given
Expand Down
2 changes: 2 additions & 0 deletions test/unit/common/services/scalingo-client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ describe('Scalingo client', () => {
// then
expect(actual).to.equal(1);
});

it('should call create with application name', async () => {
// given
const createApplicationStub = sinon.stub();
Expand All @@ -519,6 +520,7 @@ describe('Scalingo client', () => {
// then
expect(createApplicationStub).to.have.been.calledOnceWithExactly({ name: 'pix-application-recette' });
});

it('should call update with valid options', async () => {
// given
const createApplicationStub = sinon.stub();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('Unit | Common | Services | Slack | Surfaces | Messages | Post-Message'
},
});
});

it('should log slack API errors', async function () {
//given
const messageToSend = 'test message';
Expand Down
1 change: 1 addition & 0 deletions test/unit/run/services/slack/commands_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ describe('Unit | Run | Services | Slack | Commands', () => {

describe('#createAndDeployPixBotRelease', () => {
let client;

beforeEach(async function () {
// given
client = { deployFromArchive: sinon.spy() };
Expand Down

0 comments on commit 23dc615

Please sign in to comment.