-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
[feature]: Added the time taken by test-set #1829
Conversation
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* removed repitive function definitions Signed-off-by: EraKin575 <tejaskumar574@gmail.com> * removed unnecessary func definition Signed-off-by: EraKin575 <tejaskumar574@gmail.com> --------- Signed-off-by: EraKin575 <tejaskumar574@gmail.com>
…ff-color-for-each-level feat: logger with different color for each level
* feat: create a keploy config file Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: add keploy-config.yaml Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: add testset entry in keploy-config.yaml Signed-off-by: Akash Kumar <meakash7902@gmail.com> --------- Signed-off-by: Akash Kumar <meakash7902@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* MySQLparser-v2 Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * node changes Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * node app changes Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * WIP Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * ok packet changes Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * Bug fix Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * Bug fix Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> * Removed log Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> --------- Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com> Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* fix: removed unnecessary log Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * fix: testing version problem change Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * fix: updated path of keploy logs and added function to delete them Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * fix: testing sentry Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * fix: checking Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * fix: made changes according to the comments Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> --------- Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* fix: https mock not generating in docker Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * docs: update README.md --------- Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
* add:one click install example Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in> * refactor:without one click update Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in> * refactor:flag name --------- Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in>
the decode function is not able to distinguish the closing braces of the string json and sectionSingle, so used the prefix and suffix in place of regex to extract the document correctly Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
…le to decode (keploy#1047) * feat: create a keploy config file Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: add keploy-config.yaml Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: add testset entry in keploy-config.yaml Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: added code for fetching noise config Signed-off-by: Akash Kumar <meakash7902@gmail.com> * fix: build Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: add regex code Signed-off-by: Akash Kumar <meakash7902@gmail.com> * fix: keploy commands failing when no config file Signed-off-by: Akash Kumar <meakash7902@gmail.com> * fix: update keploy-config Signed-off-by: Akash Kumar <meakash7902@gmail.com> * feat: added the removed function Signed-off-by: Akash Kumar <meakash7902@gmail.com> * refactor: condition to match non readable payload Signed-off-by: Sarthak160 <rocksarthak45@gmail.com> * refactor: condition to match non readable payload Signed-off-by: Sarthak160 <rocksarthak45@gmail.com> * refactor: save encoded string in case of large buffer data Signed-off-by: Sarthak160 <rocksarthak45@gmail.com> * refactor: remove buffered string from pg response Signed-off-by: Sarthak160 <rocksarthak45@gmail.com> * feat: make unreadable data base64 in datarow packet Signed-off-by: Sarthak160 <rocksarthak45@gmail.com> --------- Signed-off-by: Akash Kumar <meakash7902@gmail.com> Signed-off-by: Sarthak160 <rocksarthak45@gmail.com> Co-authored-by: Akash Kumar <meakash7902@gmail.com> Co-authored-by: Akash Kumar <91385321+AkashKumar7902@users.noreply.github.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Aditya Tomar <adi02032002@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
* fix: api request time for mock filtering Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * refactor: update amd c files Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> --------- Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
…lity (keploy#1072) Signed-off-by: Sarthak160 <rocksarthak45@gmail.com>
* update:serve with app command * refactor:serve cmd * refactor:remove fetch hook command * fix:path for serve Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com> --------- Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
* added flag for req timestamp Signed-off-by: 404fixer <govindtomar94@gmail.com> * renamed flag Signed-off-by: 404fixer <govindtomar94@gmail.com> * fixed formatting Signed-off-by: 404fixer <govindtomar94@gmail.com> --------- Signed-off-by: 404fixer <govindtomar94@gmail.com>
…olve conflct in matching (keploy#1075) * fix: updates the decode function for OpMsg section the decode function is not able to distinguish the closing braces of the string json and sectionSingle, so used the prefix and suffix in place of regex to extract the document correctly Signed-off-by: re-Tick <jain.ritik.1001@gmail.com> * fix: adds the ismaster query in mongo config for node Signed-off-by: re-Tick <jain.ritik.1001@gmail.com> --------- Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
* update:serve with app command * refactor:remove fetch hook command * refactor:keploy example flag Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com> * refactor:removing unused flag * removing keploy.sh file after install --------- Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
…y#1089) * feat: add support for authentication of mongo adds scram support to authenticate into mongoDb during test. DocumentDB is supported since it uses SCRAM-SHA-1 for authentication Signed-off-by: re-Tick <jain.ritik.1001@gmail.com> --------- Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
* fix: added schema match for JSON body and debug logs in case the other matches fail Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: removed incorrect log Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: added deleted filtered mock to the logic Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: added more debug logs Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: fix lint Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: added log when not deleting mocks Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * chore: added log for fuzzy match Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> * fix: schema match in http parser Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> --------- Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com> Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> Co-authored-by: Gourav kumar <44055698+gouravkrosx@users.noreply.github.com> Co-authored-by: gouravkrosx <gouravgreatkr@gmail.com>
Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
Signed-off-by: Sarthak160 <rocksarthak45@gmail.com>
Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
@Sarthak160 Please review the PR. |
* feat: add support for async http matching Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: remove print statements Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: addressed PR comments Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> --------- Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
…des (keploy#1526) * Feat: Added --enableColor Flag to CLI to enable/disable ASNI Color Codes Signed-off-by: Akash <akashsingh2210670@gmail.com> * Replaced flag to --disableANSI Signed-off-by: Akash Singh <akashsingh2210670@gmail.com> --------- Signed-off-by: Akash <akashsingh2210670@gmail.com> Signed-off-by: Akash Singh <akashsingh2210670@gmail.com> Co-authored-by: Pranshu Srivastava <37413698+PranshuSrivastava@users.noreply.github.com> Co-authored-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
…sion is lower than 5.15 (keploy#1828) * Added Validate function to check if the linux kernel version is lower than 5.15 Signed-off-by: Akash Singh <akashsingh2210670@gmail.com> * Integrated github.com/moby/moby/pkg/parsers/kernel for kernel level check Signed-off-by: Akash Singh <akashsingh2210670@gmail.com> * Refactored var name Signed-off-by: Akash Singh <akashsingh2210670@gmail.com> --------- Signed-off-by: Akash Singh <akashsingh2210670@gmail.com>
* chore: add keploy-test-id header to noisy field in abs match Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> * chore: remove name comparison in absmatch Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com> --------- Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
…#1850) * fix: fixes dns problem to redirect them to proxy in test mode Signed-off-by: re-Tick <jain.ritik.1001@gmail.com> * fix: fixes linting issues in core.go Signed-off-by: re-Tick <jain.ritik.1001@gmail.com> --------- Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
@Yaxhveer Why not we used the same blue color to log time instead of magenta color ?? |
@Sarthak160 Currently here ,magenta color is defined for float types. Due you want it to be changed for every float or just for this case? |
Yes, for this case only I want them to be in uniform color. |
Hi @Yaxhveer, This is still logging time taken in magenta. |
Hey @Sarthak160, currently my majors are ongoing would correct it by thursday. |
Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
Signed-off-by: Yaxhveer <yaxhcod@gmail.com>
Hey @Sarthak160, I changed the time to blue by updating the color for float. Though we could also use ansi colors codes but they does not work with preety printer so we would need fmt.Printf() for that. |
@Yaxhveer can you please make a fresh PR for this issue? and close this one. |
Related Issue
Closes: #1826
Describe the changes you've made
Added time taken by each test-set in testReportVerdict struct. Currently magenta is being used for float64 in pp color scheme.
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)A clear and concise description of it.
Checklist:
Screenshots (if any)