Skip to content

Commit

Permalink
fix: example generate in config file (#1863)
Browse files Browse the repository at this point in the history
* fix: example in config file

Signed-off-by: Animesh Pathak <kurosakiichigo.songoku@gmail.com>

* fix: example in config file

Signed-off-by: Animesh Pathak <kurosakiichigo.songoku@gmail.com>

* Update utils.go

* Update utils.go

* feat: consisten usage example form docs

---------

Signed-off-by: Animesh Pathak <kurosakiichigo.songoku@gmail.com>
  • Loading branch information
Sonichigo committed May 18, 2024
1 parent eb1e5c2 commit e08db68
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,51 +135,7 @@ var ErrGitHubAPIUnresponsive = errors.New("GitHub API is unresponsive")

var Emoji = "\U0001F430" + " Keploy:"
var ConfigGuide = `
# Example on using tests
#tests:
# filters:
# - path: "/user/app"
# urlMethods: ["GET"]
# headers: {
# "^asdf*": "^test"
# }
# host: "dc.services.visualstudio.com"
#Example on using stubs
#stubs:
# filters:
# - path: "/user/app"
# port: 8080
# - port: 8081
# - host: "dc.services.visualstudio.com"
# - port: 8081
# host: "dc.services.visualstudio.com"
# path: "/user/app"
#
#Example on using globalNoise
#globalNoise:
# global:
# body: {
# # to ignore some values for a field,
# # pass regex patterns to the corresponding array value
# "url": ["https?://\S+", "http://\S+"],
# }
# header: {
# # to ignore the entire field, pass an empty array
# "Date": [],
# }
# # to ignore fields or the corresponding values for a specific test-set,
# # pass the test-set-name as a key to the "test-sets" object and
# # populate the corresponding "body" and "header" objects
# test-sets:
# test-set-1:
# body: {
# # ignore all the values for the "url" field
# "url": []
# }
# header: {
# # we can also pass the exact value to ignore for a field
# "User-Agent": ["PostmanRuntime/7.34.0"]
# }
# Visit [https://keploy.io/docs/running-keploy/configuration-file/] to learn about using keploy through configration file.
`

// AskForConfirmation asks the user for confirmation. A user must type in "yes" or "no" and
Expand Down

0 comments on commit e08db68

Please sign in to comment.