Skip to content

Error: Invalid or corrupt jarfile DynamoDBLocal.jar #30

@jamesmorgan

Description

@jamesmorgan

I have a fairly simple test but when I try to use the package I get a corruption error, any ideas?

Sample code below:

const chai = require('chai');
chai.should();

const AWS = require('../../src/services/aws');

const DynamoDbLocal = require('dynamodb-local');
const dynamoLocalPort = 8000;

// optional config customization - default is your OS' temp directory and an Amazon server from US West
DynamoDbLocal.configureInstaller({
    installPath: './dynamodblocal-bin',
});

const VenuesService = require('../../src/services/venues.service');

describe.only('Venues Service test', () => {

    before(async () => {
        this.venuesService = new VenuesService(AWS);
        this.child = await DynamoDbLocal.launch(dynamoLocalPort, null, [], false, true);
        console.log(`Started Local DynamoDB - PID [${this.child.pid}]`);
    });

    after(async () => {
        await DynamoDbLocal.stopChild(this.child);
    });

    describe('a test', () => {
        it('should pass', async () => {
                const exampleVenue = require('../data/dummy_venue');
                await this.venuesService.createVenue(exampleVenue);
                done();
        });
    });

});

I see it downloading the jar to ./dynamodblocal-bin

Any ideas on this, what am I missing?

thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions