{"id":18524476,"url":"https://github.com/stelligent/mu-workshop-lab2","last_synced_at":"2026-01-25T03:01:46.164Z","repository":{"id":145835605,"uuid":"93798730","full_name":"stelligent/mu-workshop-lab2","owner":"stelligent","description":"Lab for learning mu","archived":false,"fork":false,"pushed_at":"2020-01-07T15:42:04.000Z","size":1018,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-14T19:16:56.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stelligent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-08T23:04:26.000Z","updated_at":"2020-01-07T15:42:06.000Z","dependencies_parsed_at":"2023-05-05T19:36:21.078Z","dependency_job_id":null,"html_url":"https://github.com/stelligent/mu-workshop-lab2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stelligent/mu-workshop-lab2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fmu-workshop-lab2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fmu-workshop-lab2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fmu-workshop-lab2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fmu-workshop-lab2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stelligent","download_url":"https://codeload.github.com/stelligent/mu-workshop-lab2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stelligent%2Fmu-workshop-lab2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28742973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T02:46:29.005Z","status":"ssl_error","status_checked_at":"2026-01-25T02:44:29.968Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:41:59.437Z","updated_at":"2026-01-25T03:01:46.147Z","avatar_url":"https://github.com/stelligent.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\nThis repository contains a lab for the [mu](https://github.com/stelligent/mu) workshop.  The goal of this lab is to add test automation to the lab from the [first lab](https://github.com/stelligent/mu-workshop-lab1).  The repo from the first lab includes an end to end test collection created with [Postman](https://www.getpostman.com/).  Postman is an interactive tool with a GUI, but you can use [Newman](https://github.com/postmanlabs/newman) to run the tests in an automated fashion.\n\n![Architecture Diagram](architecture.png)\n\n\n# Continue from lab 1\nThis lab assumes that you have a pipeline successfully deployed in the first lab.  You can see a completed version of the first lab on the [solution](https://github.com/stelligent/mu-workshop-lab1/tree/solution) branch.\n\n# Configure pipeline\nSince **Newman** requires Node.js, use the [Pipelines](https://github.com/stelligent/mu/wiki/Pipelines#configuration) section of the wiki to configure the following for your service pipeline:\n\n* Acceptance image: Update the [image](http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html#build-env-ref-available) that CodeBuild uses to `aws/codebuild/eb-nodejs-4.4.6-amazonlinux-64:2.1.3`\n\n# Configure CodeBuild for testing\nCreate a [buildspec-test.yml](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-syntax) to test the service.  The buildspec should have the following configurations:\n\n* Run the command `npm install newman --global` in the **install** phase\n* Run the command `newman run src/test/postman/collection.json -e env.json -r html,cli` in the **build** phase\n* Use the path `newman/*` for **files** in the **artifacts** section\n\n#  Pipeline\nNow that our service is ready to test, let's update the pipeline for the service:\n\n```\nmu pipeline up\n```\n\nFinally, push the changes to trigger a pipeline invocation:\n\n```\ngit add --all\ngit commit -m \"mu testing\"\ngit push\n```\n\n\n# Explore and wait...\nWhile we wait for the pipeline to run, let's explore what mu created:\n\n* **CodePipeline console** - Open the AWS console and navigate to CodePipeline.  Check out the different stages and actions in the pipeline.\n    * Which CodeBuild project is creating the `env.json` file that is used by Newman to determine the hostname of the ELB?\n    * How does it generate the `env.json` file?\n    * Generate the `env.json` file locally via `mu` and try running newman locally.\n    * How does CodeBuild know to use the `buildspec-test.yml` file?\n    * How did it work in Lab 1, before the file existed?\n\n* **ECS console** - Open the AWS console and navigate to ECS.  Check out the cluster that was created.\n    * How many tasks are running for the service?\n    * What % of the memory reservation is the service using?  Is that ok?\n    * What does the memory and cpu reservation look like for the ECS instances?\n\n* **mu cli** - Monitor the progress of the pipeline with `mu`\n    * How can you see the results of the end to end tests from Newman?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fmu-workshop-lab2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstelligent%2Fmu-workshop-lab2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstelligent%2Fmu-workshop-lab2/lists"}