Skip to content

Commit 3502ea6

Browse files
committed
fix(docs):restore removed content and add Keploy test images
Signed-off-by: Akella Srinivas <[email protected]>
1 parent 9486b41 commit 3502ea6

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed
97.7 KB
Loading

β€Žversioned_docs/version-4.0.0/quickstart/go-fasthttp-postgres.mdβ€Ž

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ If you're seeing logs that resemble the ones below, you're on the right track:
6363
Make API calls using **cURL**, **Postman**, or **Hoppscotch**.
6464
Keploy captures these requests to automatically generate test suites with test cases and data mocks.
6565

66-
6766
#### Generate a Test Case
6867

6968
##### Post Requests
@@ -85,7 +84,6 @@ You can continue by making additional API calls to generate more test cases.
8584
curl --request GET --url http://localhost:8080/books
8685
```
8786

88-
8987
### πŸƒβ€β™€οΈ Run the Tests
9088

9189
Time to run the testcases which were generated from the previous API calls..
@@ -100,6 +98,8 @@ When all is said and done, your test results should look a little something like
10098

10199
<img src="https://keploy-devrel.s3.us-west-2.amazonaws.com/keploy_replay_test_fastapi_golang.png" alt="Sample Keploy Replay" width="100%" style={{ borderRadius: '5px' }} />
102100

101+
<img src="/docs/img/fasthttp-postgres-test.png" alt="Sample Keploy Replay" width="100%" style={{ borderRadius: '5px' }} />
102+
103103
Final thoughts? Dive deeper! Try different API calls, tweak the DB response in the `mocks.yml`, or fiddle with the request or response in `test-x.yml`. Run the tests again and see the magic unfold!
104104

105105
### Wrapping it up πŸŽ‰
@@ -127,9 +127,9 @@ git clone https://github.com/keploy/samples-go.git && cd samples-go/fasthttp-pos
127127
go mod download
128128
```
129129

130-
We'll be running our sample application right on Linux, but just to make things a bit more thrilling, We'll have our database (Postgres) running on Docker.
130+
We'll be running our sample application right on Linux, but just to make things a bit more thrilling, We'll have our database (Postgres) running on Docker.
131131

132-
> Note: This application requires the following database environment variables
132+
> Note: This application requires the following database environment variables
133133
> to be set in order to run correctly.
134134
>
135135
> Create a .env file in this directory with the following values:
@@ -150,6 +150,7 @@ Let's start your Postgres container:
150150
docker compose up -d postgres
151151
152152
```
153+
153154
> The `-d` flag runs the PostgreSQL container in detached mode (in the background).
154155
155156
This would start your postgres container which will be running on docker.
@@ -197,8 +198,7 @@ You can continue by making additional API calls to generate more test cases.
197198
curl --request GET --url http://localhost:8080/books
198199
```
199200

200-
201-
### πŸƒβ€β™€οΈ Run the Tests
201+
### πŸƒβ€β™€οΈ Run the Tests
202202

203203
You are now ready to run the generated test cases.
204204

@@ -210,11 +210,13 @@ When all is said and done, your test results should look a little something like
210210

211211
<img src="https://keploy-devrel.s3.us-west-2.amazonaws.com/keploy_replay_test_fastapi_golang.png" alt="Sample Keploy Replay" width="100%" style={{ borderRadius: '5px' }} />
212212

213+
<img src="/docs/img/fasthttp-postgres-test.png" alt="Sample Keploy Replay" width="100%" style={{ borderRadius: '5px' }} />
214+
213215
Final thoughts? Dive deeper! Try different API calls, tweak the DB response in the `mocks.yml`, or fiddle with the request or response in `test-x.yml`. Run the tests again and see the magic unfold!
214216

215217
### Wrapping it up πŸŽ‰
216218

217-
Congrats on the journey so far! You've seen Keploy's power, flexed your coding muscles, and had a bit of fun too! Now, go out there and keep exploring, innovating, and creating! Remember, with the right tools and a sprinkle of fun, anything's possible.
219+
Congrats on the journey so far! You've seen Keploy's power, flexed your coding muscles, and had a bit of fun too! Now, go out there and keep exploring, innovating, and creating! Remember, with the right tools and a sprinkle of fun, anything's possible.
218220

219221
Happy coding! βœ¨πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»βœ¨
220222

0 commit comments

Comments
Β (0)