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

task3.unit-tests: cover functions with basic tests #16

Merged
merged 2 commits into from
Oct 17, 2022
Merged

Conversation

Guria
Copy link
Owner

@Guria Guria commented Oct 17, 2022

@github-actions
Copy link

github-actions bot commented Oct 17, 2022

Build output

Deploying to stage task3-unit-tests
api-gw › waiting
products-api › waiting
shop-frontend-app › waiting
api-gw › deploying
api-gw › Running "serverless deploy --stage task3-unit-tests"
api-gw › Deploying aws-js-practitioner-api to stage task3-unit-tests (us-east-1)
api-gw › Change set did not include any changes to be deployed. (1s)
api-gw › Update available. Run "npm install serverless@^3.23.0" to update
api-gw › Running "serverless info --verbose --stage task3-unit-tests"
api-gw › service: aws-js-practitioner-api
api-gw › stage: task3-unit-tests
api-gw › region: us-east-1
api-gw › stack: aws-js-practitioner-api-task3-unit-tests
api-gw ›
api-gw › Stack Outputs:
api-gw › apiGatewayRestApiId: vhq8xnjnu1
api-gw › apiGatewayRestApiRootResourceId: kioewxazf6
api-gw › ServerlessDeploymentBucketName: aws-js-practitioner-api-serverlessdeploymentbuck-h2vugv8lp8cs
api-gw › deployed
products-api › deploying
products-api › Running "serverless deploy --stage task3-unit-tests --param apiGatewayRestApiId=vhq8xnjnu1 --param apiGatewayRestApiRootResourceId=kioewxazf6"
products-api › Deploying products-api to stage task3-unit-tests (us-east-1)
products-api › No changes to deploy. Deployment skipped. (1s)
products-api › Running "serverless info --verbose --stage task3-unit-tests --param apiGatewayRestApiId=vhq8xnjnu1 --param apiGatewayRestApiRootResourceId=kioewxazf6"
products-api › service: products-api
products-api › stage: task3-unit-tests
products-api › region: us-east-1
products-api › stack: products-api-task3-unit-tests
products-api › endpoints:
products-api › GET - https://vhq8xnjnu1.execute-api.us-east-1.amazonaws.com/task3-unit-tests/products
products-api › GET - https://vhq8xnjnu1.execute-api.us-east-1.amazonaws.com/task3-unit-tests/products/{productId}
products-api › functions:
products-api › getProductsList: products-api-task3-unit-tests-getProductsList
products-api › getProductById: products-api-task3-unit-tests-getProductById
products-api › Stack Outputs:
products-api › GetProductByIdLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:products-api-task3-unit-tests-getProductById:2
products-api › GetProductsListLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:609136581632:function:products-api-task3-unit-tests-getProductsList:2
products-api › ServiceEndpoint: https://vhq8xnjnu1.execute-api.us-east-1.amazonaws.com/task3-unit-tests
products-api › ServerlessDeploymentBucketName: products-api-task3-unit-serverlessdeploymentbuck-tvb1gvveu0ec
products-api › no changes
shop-frontend-app › deploying
shop-frontend-app › Running "serverless deploy --stage task3-unit-tests --param apiGatewayRestApiId=vhq8xnjnu1 --param productsApiServiceEndpoint=https://vhq8xnjnu1.execute-api.us-east-1.amazonaws.com/task3-unit-tests"
shop-frontend-app › Deploying aws-js-practitioner-shop-frontend to stage task3-unit-tests (us-east-1)
shop-frontend-app › Running command: aws apigateway get-export --parameters extensions='apigateway' --rest-api-id vhq8xnjnu1 --stage-name task3-unit-tests --export-type swagger public/swagger.json
shop-frontend-app › echo "CONFIG = {BASE_URL: "https://vhq8xnjnu1.execute-api.us-east-1.amazonaws.com/task3-unit-tests\"}" > public/config.js
shop-frontend-app › npm run build
shop-frontend-app › {
shop-frontend-app › "contentType": "application/octet-stream",
shop-frontend-app › "contentDisposition": "attachment; filename="swagger_2022-10-17T23:00:57Z.json""
shop-frontend-app › }
shop-frontend-app › > @guria.dev/[email protected] build
shop-frontend-app › > tsc && vite build
shop-frontend-app › vite v3.1.8 building for production...
shop-frontend-app › transforming...
shop-frontend-app › ✓ 3423 modules transformed.
shop-frontend-app › warnings when minifying css:
shop-frontend-app › ▲ [WARNING] Expected identifier but found "*" [css-syntax-error]
shop-frontend-app ›
shop-frontend-app › :1:30219:
shop-frontend-app › 1 │ ...fter{clear:both}.swagger-ui .cf{*zoom:1}.swagger-ui .cl{clear:le...
shop-frontend-app › ╵ ^
shop-frontend-app ›
shop-frontend-app ›
shop-frontend-app › rendering chunks...
shop-frontend-app › dist/index.html 0.64 KiB
shop-frontend-app › dist/assets/dehydrated.eb01c8e5.js 0.58 KiB / gzip: 0.33 KiB
shop-frontend-app › dist/assets/SwaggerStyles.b21286a4.js 0.05 KiB / gzip: 0.06 KiB
shop-frontend-app › dist/assets/SwaggerStyles.e392df80.css 140.02 KiB / gzip: 22.23 KiB
shop-frontend-app › dist/assets/react.988ba9ed.js 198.68 KiB / gzip: 60.68 KiB
shop-frontend-app › dist/assets/libs.f5f78b2b.js 115.30 KiB / gzip: 38.24 KiB
shop-frontend-app › dist/assets/index.6b686a0f.js 216.23 KiB / gzip: 65.57 KiB
shop-frontend-app › dist/assets/swagger.c4dd6200.js 898.55 KiB / gzip: 281.32 KiB
shop-frontend-app › DistributionIdKey: WebAppDistributionIdOutput
shop-frontend-app › CloudfrontInvalidate: Invalidation started
shop-frontend-app › Web App deployed to Cloudfront and available at following addresses:
shop-frontend-app › * https://d27bnsy2ckf7gl.cloudfront.net
shop-frontend-app › * https://aws-js-practitioner-shop-frontend-task3-unit-tests.guria.dev
shop-frontend-app › Swagger Schema available at:
shop-frontend-app › * https://aws-js-practitioner-shop-frontend-task3-unit-tests.guria.dev/swagger.json
shop-frontend-app › Swagger UI available at:
shop-frontend-app › * https://aws-js-practitioner-shop-frontend-task3-unit-tests.guria.dev/swagger
shop-frontend-app › Change set did not include any changes to be deployed. (51s)
shop-frontend-app › Running "serverless info --verbose --stage task3-unit-tests --param apiGatewayRestApiId=vhq8xnjnu1 --param productsApiServiceEndpoint=https://vhq8xnjnu1.execute-api.us-east-1.amazonaws.com/task3-unit-tests"
shop-frontend-app › service: aws-js-practitioner-shop-frontend
shop-frontend-app › stage: task3-unit-tests
shop-frontend-app › region: us-east-1
shop-frontend-app › stack: aws-js-practitioner-shop-frontend-task3-unit-tests
shop-frontend-app › Stack Outputs:
shop-frontend-app › WebAppDistributionIdOutput: E3MEHM624LMPKF
shop-frontend-app › WebAppDistributionOutput: d27bnsy2ckf7gl.cloudfront.net
shop-frontend-app › ServerlessDeploymentBucketName: aws-js-practitioner-shop-serverlessdeploymentbuck-22uw84t0r389
shop-frontend-app › WebAppCustomDomainOutput: aws-js-practitioner-shop-frontend-task3-unit-tests.guria.dev
shop-frontend-app › deployed

@Guria Guria merged commit e4dc236 into main Oct 17, 2022
@github-actions
Copy link

Deployment removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task 3. First API with AWS API Gateway and AWS Lambda
1 participant