-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create a keploy config file #982
feat: create a keploy config file #982
Conversation
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
@AkashKumar7902 Can you please resolve the conflicts ! |
@Sarthak160 Done ! |
Can you please provide instructions to replace values via the config file ? |
@Sarthak160 sure :) |
@AkashKumar7902 just add the instructions in the PR template, under "Describe the changes you have made" and please fix the merge conflicts. |
Signed-off-by: Akash Kumar <meakash7902@gmail.com>
@PranshuSrivastava Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please Resolve conflicts! Rest looks fine
Related Issue
Closes: #948
Describe the changes you've made
added a config file containing editable fields for different flags in record and test. flag passed through command line will always take precedence over the values provided in config file.
=========USING KEPLOY-CONFIG.YAML=========
keploy-config.yaml is a configuration file for record/test command to allow users to define their testing configuration. Instead of passing the same flags in each record/test command, you can now define them in a configuration file.
keploy-config.yaml must be created in the same directory from which you are running the keploy commands. The configuration file contains two separate divisions for your record and test configs.
=========CONTENTS==========
To know what each flag does, run record/test command with --help flag.
record:
path: (string)
command: (string)
containerName: (string)
networkName: (string)
delay: (integer)
passThroughPorts: (array of integers)
test:
path: (string)
command: (string)
containerName: (string)
networkName: (string)
testSets: (arrays of strings)
delay: (integer)
apiTimeout: (integer)
passThroughPorts: (array of integers)
Note: any config flags passed through command will always take precedence over what is defined in the configuration file.
Type of change
Please let us know if any test cases are added
Please describe the tests(if any). Provide instructions how its affecting the coverage.
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)NA
Checklist:
Screenshots (if any)