-
Notifications
You must be signed in to change notification settings - Fork 189
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
added integration tests for sources #80
Conversation
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 replace all occurrences of ioutil.WriteFile
with os.WriteFile
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.
@LuitelSamikshya I can confirm test is being passed regardless of result, for example dummy key is used for ZOOMEYE_API_KEY
and I can see [✓] Test "zoomeye" passed!
.
export ZOOMEYE_API_KEY=this_is_test
$ bash run.sh
::task~> Clean up & Build binaries files
::done::
::task~> Run integration test
Running test cases for "censys" source
[✘] Test "censys" failed: missing censys api key
Running test cases for "shodan" source
[✘] Test "shodan" failed: missing shodan api key
Running test cases for "zoomeye" source
[bash -c ./uncover -zoomeye 'app:"Atlassian JIRA"']
/bin/bash -c ./uncover -zoomeye 'app:"Atlassian JIRA"' -v
__ ______ _________ _ _____ _____
/ / / / __ \/ ___/ __ \ | / / _ \/ ___/
/ /_/ / / / / /__/ /_/ / |/ / __/ /
\__,_/_/ /_/\___/\____/|___/\___/_/ v0.0.8
projectdiscovery.io
Use with caution. You are responsible for your actions
Developers assume no liability and are not responsible for any misuse or damage.
By using uncover, you also agree to the terms of the APIs used.
[✓] Test "zoomeye" passed!
Running test cases for "fofa" source
[✘] Test "fofa" failed: missing fofa api key
Running test cases for "quake" source
[✘] Test "quake" failed: missing quake api key
::done::
The test should pass only with the use of actual key now. Some of the providers endpoint are throwing 429 error, therefore added a cron job to run tests on providers once a week. |
* added integration tests for sources * added censys api secret * yaml format fix * file name change * api key * trial * added fofa key * added default config file * used config file * lint error fix and added more secrets * misc changes * different query for zoomeye * removed reference of deprecated library * misc change * added additinal workflow * deleted repeating stage * cron job every Monday at 12 * added manual run option for workflow Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
closes #72
Added integration tests on providers that runs once a week.