Skip to content

Commit

Permalink
Merge pull request #292 from flexion/task/53_CA_lambda_rename
Browse files Browse the repository at this point in the history
CA-53 - aws doesnt allow multiple periods in file name
  • Loading branch information
codyseibert authored Dec 11, 2018
2 parents c5065c1 + 2825489 commit 551acf2
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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

0 comments on commit 551acf2

Please sign in to comment.