Skip to content
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

test: add fuzz test in chaoshub/handler #4857

Merged
merged 8 commits into from
Sep 6, 2024

Conversation

sypark9646
Copy link
Contributor

@sypark9646 sypark9646 commented Sep 1, 2024

Proposed changes

add fuzz test in chaoscenter/graphql/server/pkg/chaoshub/handler

Types of changes

What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices applies)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have signed the commit for DCO to be passed.
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Dependency

  • Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

  • Removed the ./types.go example in unit test handler_test.go/TestReadExperimentFile because it returns a file does not exist error, not the file is not a yaml error that the test is intended to return.

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
* Removed the ./types.go example in unit test handler_test.go/TestReadExperimentFile because it returns a file does not exist error, not the file is not a yaml error that the test is intended to return.

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
…est.go file

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: Soyeon Park <sypark9646@gmail.com>
…tion in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: Soyeon Park <sypark9646@gmail.com>
@Saranya-jena Saranya-jena merged commit 4873194 into litmuschaos:master Sep 6, 2024
19 checks passed
@namkyu1999 namkyu1999 mentioned this pull request Sep 6, 2024
3 tasks
andoriyaprashant pushed a commit to andoriyaprashant/litmus that referenced this pull request Sep 7, 2024
* test: add fuzz test to GetChartsPath function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzReadExperimentFile function in handler

* Removed the ./types.go example in unit test handler_test.go/TestReadExperimentFile because it returns a file does not exist error, not the file is not a yaml error that the test is intended to return.

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* * test: Add the FuzzReadExperimentYAMLFile test in the handler_fuzz_test.go file

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzIsFileExisting function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzGetExperimentData, FuzzUnzipRemoteHub function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* refactor: remove unused imported library

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* fix: check yaml: control characters are not allowed

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* refactor: save goimport order

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

---------

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
andoriyaprashant pushed a commit to andoriyaprashant/litmus that referenced this pull request Sep 7, 2024
* test: add fuzz test to GetChartsPath function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzReadExperimentFile function in handler

* Removed the ./types.go example in unit test handler_test.go/TestReadExperimentFile because it returns a file does not exist error, not the file is not a yaml error that the test is intended to return.

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* * test: Add the FuzzReadExperimentYAMLFile test in the handler_fuzz_test.go file

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzIsFileExisting function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzGetExperimentData, FuzzUnzipRemoteHub function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* refactor: remove unused imported library

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* fix: check yaml: control characters are not allowed

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* refactor: save goimport order

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

---------

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
sagnik3788 pushed a commit to sagnik3788/litmus that referenced this pull request Oct 5, 2024
* test: add fuzz test to GetChartsPath function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzReadExperimentFile function in handler

* Removed the ./types.go example in unit test handler_test.go/TestReadExperimentFile because it returns a file does not exist error, not the file is not a yaml error that the test is intended to return.

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* * test: Add the FuzzReadExperimentYAMLFile test in the handler_fuzz_test.go file

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzIsFileExisting function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* test: add fuzz test to FuzzGetExperimentData, FuzzUnzipRemoteHub function in handler

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* refactor: remove unused imported library

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* fix: check yaml: control characters are not allowed

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

* refactor: save goimport order

Signed-off-by: Soyeon Park <sypark9646@gmail.com>

---------

Signed-off-by: Soyeon Park <sypark9646@gmail.com>
Signed-off-by: sagnik3788 <116512372+sagnik3788@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants