Skip to content

Commit 4c3849c

Browse files
committed
Fixed unit tests
1 parent b7020b1 commit 4c3849c

File tree

1 file changed

+40
-37
lines changed

1 file changed

+40
-37
lines changed

README.md

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,70 +20,71 @@ Ensure the following tools are installed:
2020
## Lab #1
2121

2222
1. Start by cloning this repository:
23-
24-
```bash
25-
git clone git@github.com:56kcloud/serverless-workshop.git
26-
cd serverless-workshop
27-
```
23+
24+
```bash
25+
git clone git@github.com:56kcloud/serverless-workshop.git
26+
cd serverless-workshop
27+
```
2828

2929
2. Create a new branch with your UNIQUE team name:
3030

31-
```bash
32-
git checkout -b <your-unique-team-name>
33-
```
31+
```bash
32+
git checkout -b <your-unique-team-name>
33+
```
3434

3535
3. Define an environment variable with your team name:
3636

37-
```bash
38-
export TEAM=$(git rev-parse --abbrev-ref HEAD)
39-
```
37+
```bash
38+
export TEAM=$(git rev-parse --abbrev-ref HEAD)
39+
```
4040

4141
4. Create a virtual Python environment and install dependencies:
4242

43-
```bash
44-
python3.9 -m venv .venv
45-
source .venv/bin/activate
46-
pip install -r requirements-dev.txt
47-
```
43+
```bash
44+
python3.9 -m venv .venv
45+
source .venv/bin/activate
46+
pip install -r requirements-dev.txt
47+
```
4848

4949
5. Run application unit tests:
5050

51-
```bash
52-
python -m unittest tests/test_handler.py
53-
```
51+
```bash
52+
python -m unittest tests/test_handler.py
53+
```
5454

55-
Fix the failing tests if any.
55+
Fix the failing tests if any.
5656

5757
6. Commit
5858

59-
```bash
60-
git commit -a -m "Fixed unit tests"
59+
```bash
60+
git commit -a -m "Fixed unit tests"
61+
62+
```
6163

6264
7. Push
6365

64-
```bash
65-
git push -u origin <your-unique-team-name>
66-
```
66+
```bash
67+
git push -u origin <your-unique-team-name>
68+
```
6769

6870
8. Deploy
6971

70-
Open a browser and navigate to GitHub Actions to see the deployment progress.
72+
Open a browser and navigate to GitHub Actions to see the deployment progress.
7173

72-
https://github.com/56kcloud/serverless-workshop/actions
74+
https://github.com/56kcloud/serverless-workshop/actions
7375

76+
When the deployment completes, find the URL of the API you just deployed (look for the "Deploying" step in the workflow output logs), there should be block similar to:
7477

75-
When the deployment completes, find the URL of the API you just deployed (look for the "Deploying" step in the workflow output logs), there should be block similar to:
78+
```
79+
Outputs:
80+
ProtectedApiStack.LambdaEndpoint = https://t95f7quxma.execute-api.eu-central-2.amazonaws.com/dev/
81+
```
7682

77-
```
78-
Outputs:
79-
ProtectedApiStack.LambdaEndpoint = https://t95f7quxma.execute-api.eu-central-2.amazonaws.com/dev/
80-
```
83+
and copy/paste the url in a new browser window. You should see the following message:
8184

82-
and copy/paste the url in a new browser window. You should see the following message:
83-
84-
```
85-
{"message": "Welcome to the API <your-unique-team-name>!"}
86-
```
85+
```
86+
{"message": "Welcome to the API <your-unique-team-name>!"}
87+
```
8788

8889
🎉 Congratulations! You have deployed a Python API to the cloud using infrastructure-as-code and automation.
8990

@@ -94,3 +95,5 @@ We welcome contributions to this project! Please fork the repository and submit
9495
## License
9596

9697
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
98+
99+
Test

0 commit comments

Comments
 (0)