Skip to content

Commit 53be8ac

Browse files
Merge branch 'main' into docs/smart-set-agent-skill
2 parents e313d4f + 380f2f9 commit 53be8ac

7 files changed

Lines changed: 179 additions & 3 deletions

File tree

src/theme/DocItem/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ export default function DocItem(props) {
237237
{JSON.stringify(articleSchema)}
238238
</script>
239239
)}
240+
{Array.isArray(frontMatter.head) &&
241+
frontMatter.head.map((headTag, i) => {
242+
if (!headTag?.tag) return null;
243+
const {tag: tagName, attrs = {}} = headTag;
244+
return React.createElement(tagName, {key: i, ...attrs});
245+
})}
240246
</Head>
241247
<div className="row">
242248
<div

versioned_docs/version-4.0.0/ci-cd/github.md

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ Keploy can be integrated with GitHub by two methods:-
2323
1. [Using Shell Scripts](#shell-scripts)
2424
2. [Using GitHub Actions](#github-actions)
2525

26+
You can also [run cloud replay from your CI pipeline](#running-cloud-replay-in-ci).
27+
2628
## Shell Scripts
2729

28-
GitHub scripts are the easiest way to integrate Keploy with GitHub. We will be using [express-mongoose](https://github.com/keploy/samples-typescript/tree/main/express-mongoose) sample-application for the example. You can either add the following script to yout `github workflow` or create a new worflow `.github/workflows/keploy-test.yml`:-
30+
GitHub scripts are the easiest way to integrate Keploy with GitHub. We will be using [express-mongoose](https://github.com/keploy/samples-typescript/tree/main/express-mongoose) sample-application for the example. You can either add the following script to your `github workflow` or create a new workflow `.github/workflows/keploy-test.yml`:-
2931

3032
```yaml
3133
- name: Checkout Commit
@@ -215,4 +217,60 @@ sudo -E keploy test -c node src/app.js --delay 10 --path ./
215217

216218
_And... voila! You have successfully integrated keploy in GitHub CI pipeline 🌟_
217219

220+
---
221+
222+
## Running cloud replay in CI
223+
224+
Keploy cloud replay re-runs test sets that were recorded from a Kubernetes deployment. It works with both **Keploy Cloud** and a **self-hosted Keploy** setup, and on any CI control plane — GitHub Actions, GitLab CI, Jenkins, and others.
225+
226+
### How authentication works
227+
228+
The CLI reads the `KEPLOY_API_KEY` environment variable automatically — no browser login needed.
229+
230+
- **Locally:** `export KEPLOY_API_KEY="<your-api-key>"` before running the command.
231+
- **In CI:** store the key as a secret in your CI system so it gets injected as an environment variable at runtime. Never hard-code it in your pipeline file.
232+
233+
> Cloud replay requires the Enterprise binary. Install it with `curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh` — not the open-source `keploy.io/install.sh`.
234+
235+
### Steps
236+
237+
1. **Store the API key** — add `KEPLOY_API_KEY` as a secret in your CI system.
238+
- GitHub Actions: go to **Settings → Secrets and variables → Actions → New repository secret**, name it `KEPLOY_API_KEY`.
239+
- GitLab CI: go to **Settings → CI/CD → Variables**, add it as a masked variable.
240+
- Jenkins: add a **Secret text** credential via **Manage Jenkins → Credentials**.
241+
2. **Install** the Enterprise Keploy binary on the runner.
242+
3. **Run** `keploy cloud replay` with your application and cluster details.
243+
244+
### Example: GitHub Actions
245+
246+
```yaml
247+
name: Keploy Cloud Replay
248+
249+
on:
250+
push:
251+
branches: [main]
252+
253+
jobs:
254+
keploy-cloud-replay:
255+
runs-on: ubuntu-latest
256+
env:
257+
KEPLOY_API_KEY: ${{ secrets.KEPLOY_API_KEY }}
258+
steps:
259+
- name: Install Keploy Enterprise
260+
run: |
261+
curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh
262+
263+
- name: Cloud replay
264+
run: |
265+
keploy cloud replay \
266+
--app "<NAMESPACE>.<DEPLOYMENT>" \
267+
--cluster "<CLUSTER>" \
268+
--namespace "<NAMESPACE>" \
269+
--delay <DELAY>
270+
```
271+
272+
Replace `<NAMESPACE>`, `<DEPLOYMENT>`, `<CLUSTER>`, and `<DELAY>` with your own values. Set `<DELAY>` (in seconds) to comfortably cover your application's startup time.
273+
274+
> `KEPLOY_API_KEY: ${{ secrets.KEPLOY_API_KEY }}` pulls the value from GitHub's secret store and makes it available as an environment variable in all subsequent steps.
275+
218276
Hope this helps you out, if you still have any questions, reach out to us .

versioned_docs/version-4.0.0/ci-cd/gitlab.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,48 @@ Integrating Keploy with GitLab CI automates the testing process, ensuring that t
146146
If you’re thinking, “This pipeline looks cool, but I need the _whole thing_ to integrate with your application!” — well, you're in luck! Check it out [here](https://github.com/keploy/samples-python) and get ready to copy-paste your way to success! ✨🚀
147147

148148
Hope this helps you out, if you still have any questions, reach out to us .
149+
150+
---
151+
152+
## Running cloud replay in CI
153+
154+
Keploy cloud replay re-runs test sets that were recorded from a Kubernetes deployment. It works with both **Keploy Cloud** and a **self-hosted Keploy** setup — the command is the same either way.
155+
156+
### How authentication works
157+
158+
The CLI reads the `KEPLOY_API_KEY` environment variable automatically. You do not need to pass it as a flag or log in through a browser.
159+
160+
- Locally: `export KEPLOY_API_KEY="<your-api-key>"` before running the command.
161+
- In CI: add the key as a masked CI/CD variable so the system injects it as an environment variable at runtime. Never hard-code it in your pipeline file.
162+
163+
In GitLab CI, go to **Settings → CI/CD → Variables**, add `KEPLOY_API_KEY` as a masked variable, and it is automatically available in all pipeline jobs as `$KEPLOY_API_KEY`.
164+
165+
### Steps
166+
167+
1. Add `KEPLOY_API_KEY` as a masked CI/CD variable (**Settings → CI/CD → Variables**).
168+
2. Install the Enterprise Keploy binary on the runner.
169+
3. Run `keploy cloud replay` with your application and cluster details.
170+
171+
> Cloud replay requires the Enterprise binary. Install it with `curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh` — not the open-source `keploy.io/install.sh`.
172+
173+
### Example: GitLab CI
174+
175+
```yaml
176+
keploy-cloud-replay:
177+
stage: test
178+
image: ubuntu:22.04
179+
# KEPLOY_API_KEY is injected automatically from the masked CI/CD variable
180+
script:
181+
- apt-get update -qq && apt-get install -y -qq curl sudo
182+
- curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh
183+
- |
184+
keploy cloud replay \
185+
--app "<NAMESPACE>.<DEPLOYMENT>" \
186+
--cluster "<CLUSTER>" \
187+
--namespace "<NAMESPACE>" \
188+
--delay <DELAY>
189+
```
190+
191+
Replace `<NAMESPACE>`, `<DEPLOYMENT>`, `<CLUSTER>`, and `<DELAY>` with your own values. Set `<DELAY>` to cover your application's startup time (in seconds).
192+
193+
> Because `KEPLOY_API_KEY` is defined as a masked variable in GitLab, it is already present in the job's environment — no `export` step is needed.

versioned_docs/version-4.0.0/ci-cd/jenkins.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,60 @@ Testrun passed for testcase with id: "test-2"
171171
_And... voila! You have successfully integrated keploy in Jenkins CI/CD pipeline 🌟_
172172
173173
Hope this helps you out, if you still have any questions, reach out to us .
174+
175+
---
176+
177+
## Running cloud replay in CI
178+
179+
Keploy cloud replay re-runs test sets that were recorded from a Kubernetes deployment. It works with both **Keploy Cloud** and a **self-hosted Keploy** setup — the command is the same either way.
180+
181+
### How authentication works
182+
183+
The CLI reads the `KEPLOY_API_KEY` environment variable automatically. You do not need to pass it as a flag or log in through a browser.
184+
185+
- Locally: `export KEPLOY_API_KEY="<your-api-key>"` before running the command.
186+
- In CI: add the key to Jenkins' credentials store so the system injects it as an environment variable at runtime. Never hard-code it in your Jenkins pipeline file.
187+
188+
In Jenkins, go to **Manage Jenkins → Credentials**, add a **Secret text** credential with ID `keploy-api-key`, and use `withCredentials` in your pipeline to bind it to `KEPLOY_API_KEY`.
189+
190+
### Steps
191+
192+
1. Add `KEPLOY_API_KEY` as a **Secret text** credential in Jenkins (**Manage Jenkins → Credentials**).
193+
2. Install the Enterprise Keploy binary on the agent.
194+
3. Run `keploy cloud replay` with your application and cluster details.
195+
196+
> Cloud replay requires the Enterprise binary. Install it with `curl --silent -O -L https://keploy.io/ent/install.sh && source install.sh` — not the open-source `keploy.io/install.sh`.
197+
198+
### Example: Jenkins Declarative Pipeline
199+
200+
```groovy
201+
pipeline {
202+
agent any
203+
stages {
204+
stage('Install Keploy Enterprise') {
205+
steps {
206+
sh '''
207+
curl --silent -O -L https://keploy.io/ent/install.sh && . install.sh
208+
'''
209+
}
210+
}
211+
stage('Cloud replay') {
212+
steps {
213+
withCredentials([string(credentialsId: 'keploy-api-key', variable: 'KEPLOY_API_KEY')]) {
214+
sh '''
215+
keploy cloud replay \
216+
--app "<NAMESPACE>.<DEPLOYMENT>" \
217+
--cluster "<CLUSTER>" \
218+
--namespace "<NAMESPACE>" \
219+
--delay <DELAY>
220+
'''
221+
}
222+
}
223+
}
224+
}
225+
}
226+
```
227+
228+
Replace `<NAMESPACE>`, `<DEPLOYMENT>`, `<CLUSTER>`, and `<DELAY>` with your own values. Set `<DELAY>` to cover your application's startup time (in seconds).
229+
230+
> `withCredentials` binds the Jenkins secret to `KEPLOY_API_KEY` only for the duration of that stage — the CLI picks it up automatically.

versioned_docs/version-4.0.0/concepts/reference/glossary/black-box-testing.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ keywords:
1818
- what is black box testing
1919
- keploy
2020
- regression testing
21+
head:
22+
- tag: link
23+
attrs:
24+
rel: canonical
25+
href: https://keploy.io/blog/community/black-box-testing-and-white-box-testing-a-complete-guide
2126
---
2227

2328
Black-box testing is a software testing method where the tester evaluates the functionality of an application without having access to its internal code structure, algorithms, or implementation details. Instead, the tester interacts with the software through its user interface or exposed APIs, treating it as a "black box" whose internal workings are not visible or known.
@@ -30,7 +35,7 @@ The focus lies solely on examining the software's external behavior, inputs, out
3035

3136
This testing approach is essential for several reasons:
3237

33-
- **Independence from Internal Implementation:** Black-box testing allows testers to assess the software's functionality without needing knowledge of its internal workings. This independence ensures that the evaluation remains unbiased and realistic, as it mimics the perspective of end-users who are unaware of the software's internal structure.
38+
- **Independence from Internal Implementation:** [Black-box testing](https://keploy.io/blog/community/black-box-testing-and-white-box-testing-a-complete-guide) allows testers to assess the software's functionality without needing knowledge of its internal workings. This independence ensures that the evaluation remains unbiased and realistic, as it mimics the perspective of end-users who are unaware of the software's internal structure.
3439

3540
- **User-Centric Perspective**: By concentrating on the software's external behavior, black-box testing aligns closely with the user's experience. It helps identify issues that impact user interactions, such as usability flaws, incorrect outputs, or unexpected behaviors, leading to a more user-centric approach to quality assurance.
3641

versioned_docs/version-4.0.0/concepts/reference/glossary/regression-testing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ tags:
88
- Glossary
99
keywords:
1010
- API
11+
head:
12+
- tag: link
13+
attrs:
14+
rel: canonical
15+
href: https://keploy.io/blog/community/regression-testing-an-introductory-guide
1116
---
1217

1318
## What is regression testing?

versioned_docs/version-4.0.0/running-keploy/best-practices-api-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ keywords:
2121

2222
## 🛠️ Best Practices in API Testing
2323

24-
API testing ensures the reliability, security, and performance of your application's backend services. To build robust, scalable test suites, here are the best practices you should follow:
24+
[API testing](https://keploy.io/blog/community/what-is-api-testing) ensures the reliability, security, and performance of your application's backend services. To build robust, scalable test suites, here are the best practices you should follow:
2525

2626
### ✅ 1. Define Clear Test Objectives
2727

0 commit comments

Comments
 (0)