Skip to content

Commit 9119d34

Browse files
authored
Merge pull request #34 from fabidick22/develop
deploy to prod environment
2 parents 58dbaff + f9749c4 commit 9119d34

File tree

3 files changed

+61
-3
lines changed

3 files changed

+61
-3
lines changed

CHANGELOG.md

+50
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
# [1.2.0-beta.6](https://github.com/fabidick22/aws-serverless-devops/compare/v1.2.0-beta.5...v1.2.0-beta.6) (2020-10-14)
2+
3+
### Features
4+
5+
- update response (get-data) ([15ab522](https://github.com/fabidick22/aws-serverless-devops/commit/15ab52205cea0c2d79c31ffc8cb0f940fa3b92ed))
6+
- update response (get-data) ([f90956f](https://github.com/fabidick22/aws-serverless-devops/commit/f90956fbb201735dd30ac9a0243c426c0fdfde2a))
7+
8+
# [1.2.0-beta.5](https://github.com/fabidick22/aws-serverless-devops/compare/v1.2.0-beta.4...v1.2.0-beta.5) (2020-10-14)
9+
10+
### Bug Fixes
11+
12+
- Update get-data response (stage variable) ([272f6eb](https://github.com/fabidick22/aws-serverless-devops/commit/272f6eb76f72e070d365ceb12de030eace86be4e))
13+
- Update get-data response (stage variable) ([6dde69a](https://github.com/fabidick22/aws-serverless-devops/commit/6dde69a803b238e35c0761dae86e204eb4f01c2d))
14+
15+
# [1.2.0-beta.4](https://github.com/fabidick22/aws-serverless-devops/compare/v1.2.0-beta.3...v1.2.0-beta.4) (2020-10-14)
16+
17+
### Features
18+
19+
- update response (get-data) ([c877d9f](https://github.com/fabidick22/aws-serverless-devops/commit/c877d9ffae9de46e1489ffbe8d9cd4fb8fb2b002))
20+
- update response (get-data) ([2888a42](https://github.com/fabidick22/aws-serverless-devops/commit/2888a421341fc509bf5268cd93402fa489180179))
21+
22+
# [1.2.0-beta.3](https://github.com/fabidick22/aws-serverless-devops/compare/v1.2.0-beta.2...v1.2.0-beta.3) (2020-10-14)
23+
24+
### Features
25+
26+
- Update get-data response ([4ae0b82](https://github.com/fabidick22/aws-serverless-devops/commit/4ae0b82c33756f3d126f5ab1d0bcfec0cf37910b))
27+
- Update get-data response ([dc40356](https://github.com/fabidick22/aws-serverless-devops/commit/dc40356b9416e500eafeda89d7a1ae6e36a2251c))
28+
29+
# [1.2.0-beta.2](https://github.com/fabidick22/aws-serverless-devops/compare/v1.2.0-beta.1...v1.2.0-beta.2) (2020-10-14)
30+
31+
### Bug Fixes
32+
33+
- Update logs ([d55388f](https://github.com/fabidick22/aws-serverless-devops/commit/d55388fb1f7ad6815d84677757adbdc45a98c26c))
34+
- Update logs ([ae40727](https://github.com/fabidick22/aws-serverless-devops/commit/ae4072775b31fb4068e6e17c01dc0ad1d17b6cf4))
35+
36+
# [1.2.0-beta.1](https://github.com/fabidick22/aws-serverless-devops/compare/v1.1.0...v1.2.0-beta.1) (2020-10-14)
37+
38+
### Bug Fixes
39+
40+
- remove body parse ([249f9b0](https://github.com/fabidick22/aws-serverless-devops/commit/249f9b00305969619b3d59d0c60d765ba5bd7453))
41+
42+
### Features
43+
44+
- Add logs ([9ba9ca2](https://github.com/fabidick22/aws-serverless-devops/commit/9ba9ca24e66b539b8e69d531789726931f7e2ab6))
45+
- Add logs ([97eafc4](https://github.com/fabidick22/aws-serverless-devops/commit/97eafc44f9fbf92b8d4d0d21581291f1b77c8132))
46+
47+
### Other
48+
49+
- master to develop ([899697f](https://github.com/fabidick22/aws-serverless-devops/commit/899697fc61b955699cea8bec225981b01a7be5a2))
50+
151
# [1.1.0](https://github.com/fabidick22/aws-serverless-devops/compare/v1.0.0...v1.1.0) (2020-10-14)
252

353
### Bug Fixes

src/handlers/get-data/app.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
let response;
33

44
exports.lambdaHandler = async (event, context) => {
5+
const requestContext = event.requestContext
6+
console.info(requestContext)
57
try {
68
response = {
79
'statusCode': 200,
810
'body': JSON.stringify({
911
message: 'get data',
10-
// location: ret.data.trim()
12+
location: requestContext.stage
1113
})
1214
}
1315
} catch (err) {

src/handlers/get-data/tests/unit/test-handler.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
const app = require('../../app.js');
44
const chai = require('chai');
55
const expect = chai.expect;
6-
var event, context;
6+
var context;
7+
var event = {
8+
requestContext: {
9+
state: 'stage'
10+
}
11+
}
712

813
describe('Tests index', function () {
914
it('verifies successful response', async () => {
15+
1016
const result = await app.lambdaHandler(event, context)
1117

1218
expect(result).to.be.an('object');
@@ -16,7 +22,7 @@ describe('Tests index', function () {
1622
let response = JSON.parse(result.body);
1723

1824
expect(response).to.be.an('object');
19-
expect(response.message).to.be.equal("get data");
25+
// expect(response.message).to.be.equal("get data");
2026
// expect(response.location).to.be.an("string");
2127
});
2228
});

0 commit comments

Comments
 (0)