Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions info/lib/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ module.exports = {
Object.keys(configInput.custom.containers).length !== 0
) {
this.listContainers(namespace.id).then((containers) => {
var output = {};
let output = {};
containers.forEach((container) => {
output[container["name"]] = container;
});
console.log(yaml.dump({"Stack Outputs": {"containers": output}}));
});
} else {
this.listFunctions(namespace.id).then((functions) => {
var output = {};
let output = {};
functions.forEach((func) => {
output[func["name"]] = func;
});
Expand Down
2 changes: 0 additions & 2 deletions invoke/scalewayInvoke.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const BbPromise = require('bluebird');
const axios = require('axios');
const util = require('util');

const scalewayApi = require('../shared/api/endpoint');
const setUpDeployment = require('../shared/setUpDeployment');
Expand Down Expand Up @@ -45,7 +44,6 @@ class ScalewayInvoke {

function lookUpFunctionOrContainer(ns) {
// List containers/functions in the namespace
let found = null;
if(this.isContainer) {
return this.listContainers(ns.id);
} else {
Expand Down
2,869 changes: 1,597 additions & 1,272 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion tests/containers/containers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const path = require('path');
const fs = require('fs');
const axios = require('axios');
const { expect } = require('chai');

const { getTmpDirPath, replaceTextInFile } = require('../utils/fs');
Expand Down
4 changes: 1 addition & 3 deletions tests/provider/scalewayProvider.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const { expect } = require('chai');
const { expect: jestExpect } = require('@jest/globals');

const fs = require('fs');
const os = require('os');
const path = require('path');

const ScalewayProvider = require('../../provider/scalewayProvider');
Expand All @@ -22,7 +20,7 @@ class MockServerless {
setProvider(provName, prov) {
this.service.provider = prov;
};
};
}

describe('Scaleway credentials test', () => {
if (process.env.SCW_SECRET_KEY || process.env.SCW_DEFAULT_PROJECT_ID ||
Expand Down
1 change: 0 additions & 1 deletion tests/runtimes/runtimes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require('path');
const fs = require('fs');
const axios = require('axios');
const { expect } = require('chai');
const { execSync } = require('../../shared/child-process');
const { getTmpDirPath } = require('../utils/fs');
const { getServiceName, createTestService, sleep, serverlessDeploy, serverlessRemove} = require('../utils/misc');
const { FunctionApi, RegistryApi, ContainerApi } = require('../../shared/api');
Expand Down
1 change: 0 additions & 1 deletion tests/shared/child-process.tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { expect } = require('chai');
const { expect: jestExpect } = require('@jest/globals');

const { execSync, execCaptureOutput } = require('../../shared/child-process');

Expand Down
4 changes: 1 addition & 3 deletions tests/shared/validate.tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const { expect } = require('chai');
const { expect: jestExpect } = require('@jest/globals');

const validate = require('../../shared/validate');

Expand All @@ -22,7 +21,7 @@ class MockProvider {
addContainer(contName) {
this.serverless.service.custom.containers[contName] = {};
};
};
}

describe('Configuration validation test', () => {
// Add validation to this object
Expand Down Expand Up @@ -63,4 +62,3 @@ describe('Configuration validation test', () => {
expect(this.isDefinedFunction("qux")).to.equal(false);
});
});

2 changes: 1 addition & 1 deletion tests/triggers/triggers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe.each(runtimesToTest)(
});

it(`${runtime.name}: should create cronjob for function`, async () => {
let deployedApplication = {};
let deployedApplication;
if (runtime.isFunction) {
deployedApplication = namespace.functions[0];
} else {
Expand Down