Skip to content

Commit

Permalink
cleanup and add as github action
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-stephens committed May 28, 2024
1 parent dec7f03 commit f48992e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 69 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,21 @@ jobs:
sudo rm /etc/resolv.conf
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
python --version
./integration_tests.py
./testing/integration_tests.py
build-and-test-top-1k:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Build
run: |
go version
make
- name: Large-Scale Integration Test
run: |
python --version
cat largescaleintegration/top-1k.csv | ./zdns A --iterative
./testing/large_scale_integration_test.py
65 changes: 0 additions & 65 deletions largescaleintegration/large_scan_validator.py

This file was deleted.

2 changes: 1 addition & 1 deletion integration_tests.py → testing/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def dictSort(d):
class Tests(unittest.TestCase):

maxDiff = None
ZDNS_EXECUTABLE = "./zdns"
ZDNS_EXECUTABLE = "../zdns"

def run_zdns_check_failure(self, flags, name, expected_err, executable=ZDNS_EXECUTABLE):
flags = flags + " --threads=10"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import unittest
import json

ZDNS_EXECUTABLE = "./zdns"
ZDNS_EXECUTABLE = "../zdns"

def can_request_successfully(domain: str, ip: str) -> bool:
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15"
Expand Down

0 comments on commit f48992e

Please sign in to comment.