Remove missed omnisint ci removal and version import fix

This commit is contained in:
L1ghtn1ng 2022-11-13 01:33:01 +00:00
parent 46760915c3
commit 3a2c180295
3 changed files with 1 additions and 39 deletions

View file

@ -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

View file

@ -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()

View file

@ -7,7 +7,7 @@
import random
import ssl
import certifi
from version import version
from .version import version
class Core: