mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-10 09:02:37 +08:00
Remove missed omnisint ci removal and version import fix
This commit is contained in:
parent
46760915c3
commit
3a2c180295
3 changed files with 1 additions and 39 deletions
4
.github/workflows/theHarvester.yml
vendored
4
.github/workflows/theHarvester.yml
vendored
|
@ -83,10 +83,6 @@ jobs:
|
|||
run: |
|
||||
python theHarvester.py -d yale.edu -b intelx
|
||||
|
||||
- name: Run theHarvester module Omnisint
|
||||
run: |
|
||||
python theHarvester.py -d yale.edu -b omnisint
|
||||
|
||||
- name: Run theHarvester module Otx
|
||||
run: |
|
||||
python theHarvester.py -d yale.edu -b otx
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
# coding=utf-8
|
||||
from theHarvester.lib.core import *
|
||||
from theHarvester.discovery import omnisint
|
||||
import os
|
||||
import requests
|
||||
import pytest
|
||||
from _pytest.mark.structures import MarkDecorator
|
||||
from typing import Optional
|
||||
|
||||
pytestmark: MarkDecorator = pytest.mark.asyncio
|
||||
github_ci: Optional[str] = os.getenv('GITHUB_ACTIONS') # Github set this to be the following: true instead of True
|
||||
|
||||
|
||||
class TestOmnisint(object):
|
||||
@staticmethod
|
||||
def domain() -> str:
|
||||
return 'uber.com'
|
||||
|
||||
@pytest.mark.skipif(github_ci == 'true', reason='Skipping on Github CI due to unstable status code from site')
|
||||
async def test_api(self) -> None:
|
||||
base_url = f'https://sonar.omnisint.io/all/{TestOmnisint.domain()}'
|
||||
headers = {'User-Agent': Core.get_user_agent()}
|
||||
request = requests.get(base_url, headers=headers)
|
||||
assert request.status_code == 200
|
||||
|
||||
async def test_search(self) -> None:
|
||||
search = omnisint.SearchOmnisint(TestOmnisint.domain())
|
||||
await search.process()
|
||||
assert isinstance(await search.get_hostnames(), list)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
pytest.main()
|
|
@ -7,7 +7,7 @@
|
|||
import random
|
||||
import ssl
|
||||
import certifi
|
||||
from version import version
|
||||
from .version import version
|
||||
|
||||
|
||||
class Core:
|
||||
|
|
Loading…
Reference in a new issue