Compare commits

...

4 Commits

Author SHA1 Message Date
Thomas Carmet 47ff06f79f PIPDEP-575 support npm installs 2018-08-02 11:08:55 +02:00
Rahul Padigela 6c7d7ac807 [squash] retry once 2018-08-01 18:26:37 -07:00
Rahul Padigela b6ebb1dfa4 improvement: adjust test to nodejs 8
Mem data backend uses delete method to remove from it's list which nodejs
no longer represents as null. The test has been updated to assert the same
behavior by checking if each element is a falsey value.
2018-08-01 17:27:38 -07:00
Rahul Padigela 43ce9e969d improvement: ZENKO-432 update to nodejs 8 lts 2018-08-01 17:27:29 -07:00
5 changed files with 988 additions and 1096 deletions

View File

@ -1,4 +1,4 @@
FROM node:6-slim FROM node:8-slim
MAINTAINER Giorgio Regni <gr@scality.com> MAINTAINER Giorgio Regni <gr@scality.com>
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -11,7 +11,6 @@ RUN apt-get update \
&& npm install --production \ && npm install --production \
&& apt-get autoremove --purge -y python git build-essential \ && apt-get autoremove --purge -y python git build-essential \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& npm cache clear \
&& rm -rf ~/.node-gyp \ && rm -rf ~/.node-gyp \
&& rm -rf /tmp/npm-* && rm -rf /tmp/npm-*

View File

@ -11,7 +11,8 @@ RUN curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& cat /tmp/*packages.list | xargs apt-get install -y \ && cat /tmp/*packages.list | xargs apt-get install -y \
&& git clone https://github.com/tj/n.git \ && git clone https://github.com/tj/n.git \
&& make -C ./n \ && make -C ./n \
&& n 6 latest \ && n 8 latest \
&& npm i npm@latest -g \
&& pip install pip==9.0.1 \ && pip install pip==9.0.1 \
&& rm -rf ./n \ && rm -rf ./n \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \

2079
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -87,7 +87,7 @@ describe('getObjMetadataAndDelete function for multiObjectDelete', () => {
// that data deleted // that data deleted
setTimeout(() => { setTimeout(() => {
// eslint-disable-next-line // eslint-disable-next-line
assert.deepStrictEqual(ds, [ , , ]); assert(ds.every(i => !i));
done(); done();
}, 20); }, 20);
}); });

View File

@ -1385,7 +1385,8 @@ describe('Multipart Upload API', () => {
}); });
it('should not leave orphans in data when overwriting an object with a MPU', it('should not leave orphans in data when overwriting an object with a MPU',
done => { function test(done) {
this.retries(1);
const fullSizedPart = crypto.randomBytes(5 * 1024 * 1024); const fullSizedPart = crypto.randomBytes(5 * 1024 * 1024);
const partBody = Buffer.from('I am a part\n', 'utf8'); const partBody = Buffer.from('I am a part\n', 'utf8');
async.waterfall([ async.waterfall([