You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `sanitize` command helps remove sensitive data from recorded test cases. It scans test files for potential secrets (like API keys, tokens, etc.), replaces them with template placeholders, and stores the original values in a separate `secret.yaml` file. This allows for sharing test cases without exposing sensitive information.
367
+
368
+
<b> Usage: </b>
369
+
370
+
```bash
371
+
keploy sanitize [flags]
372
+
```
373
+
374
+
<b> Available flags: </b>
375
+
376
+
-`-t, --test-sets strings` - Testsets to sanitize, e.g., `-t "test-set-1, test-set-2"`. If not specified, all test sets will be sanitized.
377
+
378
+
```bash
379
+
keploy sanitize -t "test-set-1"
380
+
```
381
+
382
+
-`-p, --path string` - Path to the local directory where generated testcases/mocks are stored. Default is ".".
383
+
384
+
```bash
385
+
keploy sanitize -p "./keploy-tests"
386
+
```
387
+
363
388
## [templatize](#templatize)
364
389
365
390
The `templatize` cmd allows the user to templatize important fields in the testcases who's values are used in the request of testcases and that may change in the future.
0 commit comments