Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-53 - aws doesnt allow multiple periods in file name #292

Merged
merged 1 commit into from
Dec 11, 2018
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
16 changes: 8 additions & 8 deletions efcms-service/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ resources:

functions:
getUploadPolicy:
handler: src/documents/getUploadPolicy.lambda.create
handler: src/documents/getUploadPolicyLambda.create
events:
- http:
path: v1/documents/uploadPolicy
Expand All @@ -310,7 +310,7 @@ functions:
'application/json': 'policyUrl'

getDownloadPolicyUrl:
handler: src/documents/downloadPolicyUrl.lambda.get
handler: src/documents/downloadPolicyUrlLambda.get
events:
- http:
path: v1/documents/{documentId}/downloadPolicyUrl
Expand All @@ -330,7 +330,7 @@ functions:
'application/json': 'policyUrl'

updateCase:
handler: src/cases/updateCase.lambda.put
handler: src/cases/updateCaseLambda.put
events:
- http:
path: v1/cases/{caseId}
Expand All @@ -354,7 +354,7 @@ functions:


createCase:
handler: src/cases/createCase.lambda.create
handler: src/cases/createCaseLambda.create
events:
- http:
path: v1/cases
Expand Down Expand Up @@ -383,7 +383,7 @@ functions:
'application/json': case

getCases:
handler: src/cases/getCases.lambda.get
handler: src/cases/getCasesLambda.get
events:
- http:
path: v1/cases
Expand All @@ -403,7 +403,7 @@ functions:
'application/json': case

getCase:
handler: src/cases/getCase.lambda.get
handler: src/cases/getCaseLambda.get
events:
- http:
path: v1/cases/{caseId}
Expand All @@ -427,7 +427,7 @@ functions:
'application/json': case

sendToIRS:
handler: src/cases/sendPetitionToIRS.lambda.post
handler: src/cases/sendPetitionToIRSLambda.post
events:
- http:
path: v1/cases/{caseId}/irsPetitionPackage
Expand All @@ -450,7 +450,7 @@ functions:
'application/json': 'unprocessableEntityError'

swagger:
handler: src/swagger/swagger.lambda.handler
handler: src/swagger/swaggerLambda.handler
events:
- http:
path: v1/swagger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const expect = require('chai').expect;
const lambdaTester = require('lambda-tester');
const client = require('ef-cms-shared/src/persistence/dynamodbClientService');
const sinon = require('sinon');
const createCase = require('./createCase.lambda');
const createCase = require('./createCaseLambda');
const chai = require('chai');
chai.use(require('chai-string'));
const { MOCK_DOCUMENTS } = require('ef-cms-shared/src/test/mockDocuments');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('chai').expect;
const lambdaTester = require('lambda-tester');
const getCase = require('./getCase.lambda');
const getCase = require('./getCaseLambda');
const client = require('ef-cms-shared/src/persistence/dynamodbClientService');
const sinon = require('sinon');
const chai = require('chai');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const expect = require('chai').expect;
const lambdaTester = require('lambda-tester');
const getCases = require('./getCases.lambda');
const getCases = require('./getCasesLambda');
const chai = require('chai');
const client = require('ef-cms-shared/src/persistence/dynamodbClientService');
const sinon = require('sinon');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const expect = require('chai').expect;
const lambdaTester = require('lambda-tester');
const client = require('ef-cms-shared/src/persistence/dynamodbClientService');
const sinon = require('sinon');
const sendPetitionToIRS = require('./sendPetitionToIRS.lambda');
const sendPetitionToIRS = require('./sendPetitionToIRSLambda');
const chai = require('chai');
chai.use(require('chai-string'));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const expect = require('chai').expect;
const lambdaTester = require('lambda-tester');
const client = require('ef-cms-shared/src/persistence/dynamodbClientService');
const sinon = require('sinon');
const updateCase = require('./updateCase.lambda');
const updateCase = require('./updateCaseLambda');
const chai = require('chai');
chai.use(require('chai-string'));
const { MOCK_DOCUMENTS } = require('ef-cms-shared/src/test/mockDocuments');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sinon = require('sinon');
const proxyquire = require('proxyquire');

const getDownloadPolicyUrlStub = sinon.stub();
const downloadPolicyUrl = proxyquire('./downloadPolicyUrl.lambda', {
const downloadPolicyUrl = proxyquire('./downloadPolicyUrlLambda', {
'../applicationContext': {
getPersistenceGateway: () => ({
getDownloadPolicyUrl: getDownloadPolicyUrlStub,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const MOCK_RESPONSE = {
};

const getUploadPolicyStub = sinon.stub();
const getUploadPolicy = proxyquire('./getUploadPolicy.lambda', {
const getUploadPolicy = proxyquire('./getUploadPolicyLambda', {
'../applicationContext': {
getPersistenceGateway: () => ({
getUploadPolicy: getUploadPolicyStub,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const expect = require('chai').expect;

chai.use(require('chai-string'));

const swagger = require('./swagger.lambda');
const swagger = require('./swaggerLambda');

describe('swagger GET', function() {
it('should GET and return a 200 status', function() {
Expand Down