From 6ba8d09ade371470b562f2c515f51020032e81dc Mon Sep 17 00:00:00 2001
From: Achanandhi
Date: Wed, 2 Apr 2025 18:58:43 +0530
Subject: [PATCH 1/3] fixed:flask-mongo-quickstart
---
.../version-2.0.0/quickstart/python-flask-mongo.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md b/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md
index eef3eb3f9..fcce23765 100644
--- a/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md
+++ b/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md
@@ -69,25 +69,25 @@ To generate testcases we just need to **make some API calls.**
1. **Make a POST request:**
```bash
-curl -X POST -H "Content-Type: application/json" -d '{"title":"Task 1","description":"Important task"}' http://localhost:5000/api/tasks
+curl -X POST -H "Content-Type: application/json" -d '{"student_id": "12345", "name": "John Doe", "age": 20}' http://localhost:6000/students
```
2. **Make a GET request:**
```bash
-curl http://localhost:5000/api/tasks
+curl http://localhost:6000/students
```
3. **Make a PUT request:**
```bash
-curl -X PUT -H "Content-Type: application/json" -d '{"title":"Task 1","description":"Random task"}' http://localhost:5000/api/tasks/12345
+curl -X PUT -H "Content-Type: application/json" -d '{"name": "Jane Smith", "age": 21}' http://localhost:6000/students/12345
```
4. **Make a DELETE request:**
```bash
-curl -X DELETE http://localhost:5000/api/tasks/12345
+curl -X DELETE http://localhost:6000/students/12345
```
And once you are done, you can stop the recording and give yourself a pat on the back! With that simple spell, you've conjured up a test case with a mock! Explore the **keploy** directory and you'll discover your handiwork in `tests` directory and `mocks.yml`.
From d4b9354df80378479abdd5047e09f4c73190439a Mon Sep 17 00:00:00 2001
From: Achanandhi M <110651321+Achanandhi-M@users.noreply.github.com>
Date: Fri, 4 Apr 2025 13:31:59 +0530
Subject: [PATCH 2/3] chore: update flask mongo tests docs (#509)
* fixed:flask-mongo-quickstart
Signed-off-by: Achanandhi
* chore: update flask mongo test
Signed-off-by: Achanandhi
Signed-off-by: Achanandhi
---------
Signed-off-by: Achanandhi
Signed-off-by: Achanandhi
Co-authored-by: Achanandhi
Co-authored-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
---
.../quickstart/python-flask-mongo.md | 79 +++++++------------
1 file changed, 30 insertions(+), 49 deletions(-)
diff --git a/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md b/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md
index fcce23765..96bf0fda1 100644
--- a/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md
+++ b/versioned_docs/version-2.0.0/quickstart/python-flask-mongo.md
@@ -93,72 +93,53 @@ curl -X DELETE http://localhost:6000/students/12345
And once you are done, you can stop the recording and give yourself a pat on the back! With that simple spell, you've conjured up a test case with a mock! Explore the **keploy** directory and you'll discover your handiwork in `tests` directory and `mocks.yml`.
```yaml
+# Generated by Keploy (2.4.16)
version: api.keploy.io/v1beta1
kind: Http
name: test-1
spec:
metadata: {}
req:
- method: GET
+ method: POST
proto_major: 1
proto_minor: 1
- url: http://localhost:5000/api/tasks
+ url: http://localhost:6000/students
header:
Accept: "*/*"
- Accept-Encoding: gzip, deflate, br
- Cache-Control: no-cache
- Connection: keep-alive
- Content-Length: "59"
+ Content-Length: "54"
Content-Type: application/json
- Host: localhost:5000
- Postman-Token: 10512b5c-4da7-4ef3-b145-101cdd1357f1
- User-Agent: PostmanRuntime/7.32.1
- body: '{"title": "Task 6","description": "Description for Task 6"}'
- timestamp: 2024-04-22T16:38:39.232565209+05:30
+ Host: localhost:6000
+ User-Agent: curl/8.7.1
+ body: '{"student_id": "12345", "name": "John Doe", "age": 20}'
+ timestamp: 2025-04-02T13:12:05.255523333Z
resp:
status_code: 200
header:
- Access-Control-Allow-Origin: "*"
- Content-Length: "267"
+ Content-Length: "48"
Content-Type: application/json
- Date: Mon, 22 Apr 2024 11:08:39 GMT
- Server: Werkzeug/3.0.2 Python/3.10.12
+ Date: Wed, 02 Apr 2025 13:12:05 GMT
+ Server: Werkzeug/2.2.2 Python/3.9.21
body: |
{
- "tasks": [
- {
- "description": "should update",
- "id": "6626362fc7c5eddf174c88e4",
- "title": "Updated"
- },
- {
- "description": "Should work",
- "id": "66263667c7c5eddf174c88e5",
- "title": "Let's Check another time"
- }
- ]
+ "message": "Student created successfully"
}
status_message: OK
proto_major: 0
proto_minor: 0
- timestamp: 2024-04-22T16:38:41.245704918+05:30
+ timestamp: 2025-04-02T13:12:07.292707847Z
objects: []
assertions:
noise:
header.Date: []
- created: 1713784121
+ created: 1743599527
curl: |-
- curl --request GET \
- --url http://localhost:5000/api/tasks \
- --header 'Host: localhost:5000' \
- --header 'User-Agent: PostmanRuntime/7.32.1' \
+ curl --request POST \
+ --url http://localhost:6000/students \
+ --header 'Host: localhost:6000' \
+ --header 'User-Agent: curl/8.7.1' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
- --header 'Connection: keep-alive' \
- --header 'Cache-Control: no-cache' \
- --header 'Postman-Token: 10512b5c-4da7-4ef3-b145-101cdd1357f1' \
- --header 'Accept-Encoding: gzip, deflate, br' \
- --data '{"title": "Task 6","description": "Description for Task 6"}'
+ --data "{\"student_id\": \"12345\", \"name\": \"John Doe\", \"age\": 20}"
```
This is how the `mocks.yml` looks like:
@@ -169,12 +150,12 @@ kind: Mongo
name: mock-0
spec:
metadata:
- operation: '{ OpQuery flags: [], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"ismaster": {"$numberInt":"1"},"helloOk": true,"client": {"driver": {"name": "PyMongo","version": "4.6.3"},"os": {"type": "Linux","name": "Linux","architecture": "x86_64","version": "5.15.146.1-microsoft-standard-WSL2"},"platform": "CPython 3.10.12.final.0"}}, returnFieldsSelector: }'
+ operation: '{ OpQuery flags: [], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"ismaster": {"$numberInt":"1"},"helloOk": true,"client": {"driver": {"name": "PyMongo","version": "4.4.1"},"os": {"type": "Linux","name": "Linux","architecture": "aarch64","version": "6.1.0-32-cloud-arm64"},"platform": "CPython 3.9.21.final.0"}}, returnFieldsSelector: }'
type: config
requests:
- header:
- length: 283
- requestId: 1804289383
+ length: 269
+ requestId: 846930886
responseTo: 0
Opcode: 2004
message:
@@ -182,13 +163,13 @@ spec:
collection_name: admin.$cmd
number_to_skip: 0
number_to_return: -1
- query: '{"ismaster":{"$numberInt":"1"},"helloOk":true,"client":{"driver":{"name":"PyMongo","version":"4.6.3"},"os":{"type":"Linux","name":"Linux","architecture":"x86_64","version":"5.15.146.1-microsoft-standard-WSL2"},"platform":"CPython 3.10.12.final.0"}}'
+ query: '{"ismaster":{"$numberInt":"1"},"helloOk":true,"client":{"driver":{"name":"PyMongo","version":"4.4.1"},"os":{"type":"Linux","name":"Linux","architecture":"aarch64","version":"6.1.0-32-cloud-arm64"},"platform":"CPython 3.9.21.final.0"}}'
return_fields_selector: ""
responses:
- header:
length: 329
- requestId: 238
- responseTo: 1804289383
+ requestId: 3
+ responseTo: 846930886
Opcode: 1
message:
response_flags: 8
@@ -196,11 +177,11 @@ spec:
starting_from: 0
number_returned: 1
documents:
- - '{"helloOk":true,"ismaster":true,"topologyVersion":{"processId":{"$oid":"6626352423399d438e00b0cf"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1713784113763"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"18"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"21"},"readOnly":false,"ok":{"$numberDouble":"1.0"}}'
- read_delay: 1010011
- created: 1713784113
- reqTimestampMock: 2024-04-22T16:38:33.762559618+05:30
- resTimestampMock: 2024-04-22T16:38:33.763749062+05:30
+ - '{"helloOk":true,"ismaster":true,"topologyVersion":{"processId":{"$oid":"67ed3773a2f7dd8385defa99"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1743599485435"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"1"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"25"},"readOnly":false,"ok":{"$numberDouble":"1.0"}}'
+ read_delay: 990489
+ created: 1743599485
+ reqTimestampMock: 2025-04-02T13:11:25.434864042Z
+ resTimestampMock: 2025-04-02T13:11:25.436114528Z
```
Want to see if everything works as expected?
From 33ac89f816434958c0a49fc08af3fb593330b17a Mon Sep 17 00:00:00 2001
From: Achanandhi
Date: Mon, 14 Apr 2025 23:12:12 +0530
Subject: [PATCH 3/3] chore: update GitLab CI/CD integration and documentation
Signed-off-by: Achanandhi
---
README.md | 2 +-
src/components/Community.js | 2 +-
src/pages/concepts/reference/glossary.js | 2 +-
src/pages/privacy-policy.js | 2 +-
versioned_docs/version-2.0.0/ci-cd/gitlab.md | 132 ++++++++++++-------
5 files changed, 88 insertions(+), 52 deletions(-)
diff --git a/README.md b/README.md
index 8fef66569..ae4ad2169 100644
--- a/README.md
+++ b/README.md
@@ -160,7 +160,7 @@ npm start
4. To reformat:
```sh
-npm prettier --write '**/*.{js,md}'
+npx prettier --write '**/*.{js,md}'
```
5. Check the build status:
diff --git a/src/components/Community.js b/src/components/Community.js
index 0a73b92d6..07d719e20 100644
--- a/src/components/Community.js
+++ b/src/components/Community.js
@@ -10,7 +10,7 @@ export const Community = () => {
Are you curious, π€ or do you have questions burning in your mind? π₯
Look no further! Join our lively Community Forum where you can:
-
+
{/*- */}
{/*
-
Glossary
+ Glossary
{new Array(26).fill(0).map((x, i) => (