Commit Graph

10 Commits

Author SHA1 Message Date
justinbastress
e0bf14f645
add ssh integration tests (#26)
* add SSH integration tests

* README updates; better sshd container based on a docs.docker.com example
2017-12-19 10:09:43 -05:00
Justin Bastress
81a14b3654 typo fix 2017-12-18 11:44:05 -05:00
Andrew Sardone
f38d85b71c
Add script to generate new-protocol tests [minor]
Just a minor little utility script for generating shell scripts around
the setup/test/cleanup rhythm of the zgrab integration tests.
2017-12-18 00:56:57 -05:00
Andrew Sardone
f45ab312bb
Move all test scripts into integration_tests/ directory
This is just a very minor directory organization change, but it has the
advantage of keeping a bunch of files out of the root directory and
packaging them together since they are related to each other.

Now, our `integration_tests/` directory has a nice pattern of
setup/cleanup/test.sh scripts at the top global level and at each module
level:

```
❯ tree --dirsfirst integration_tests
integration_tests
├── mysql
│   ├── util
│   │   ├── launch_mysql_container.sh
│   │   └── wait_for_mysqld.sh
│   ├── cleanup.sh
│   ├── setup.sh
│   ├── single_run.sh
│   └── test.sh
├── ssh
│   ├── cleanup.sh
│   ├── setup.sh
│   └── test.sh
├── cleanup.sh
├── setup.sh
└── test.sh

3 directories, 12 files
```

The scripts are runnable via:

```
./integration_tests/setup.sh && ./integration_tests/test.sh && ./integration_tests/cleanup.sh
```
2017-12-18 00:44:06 -05:00
Justin Bastress
fcf62fb278 use set +e instead of bash +e 2017-12-15 17:02:42 -05:00
Justin Bastress
b33a5ec60e remove double 'docker stop' 2017-12-15 13:34:41 -05:00
Justin Bastress
a0904d6b30 note non-SSL mysql 2017-12-15 09:57:56 -05:00
Justin Bastress
c5f0a94e70 get unquoted string from jp to simplify comparison 2017-12-15 09:56:15 -05:00
Justin Bastress
e8609a3bfc fix logging for wait_for_mysqld 2017-12-15 09:39:18 -05:00
justinbastress
a244ec15e6 TLS scan prototype + Travis integration (#25)
* Fix typo

* Actually call init per sender for each goroutine

* split out TLS handling

* Rename tls_handshake; update docs

* fix comments

* format fixes

* merge updates

* fix path

* refactor heartbleed logging (now the same as original zgrab)

* add ScanStatus, update modules to return it

* fix threaded for loop; fix styling of dict literal

* fix compile errors, note un-bubbled handshake error

* initial schema commit

* fix comment

* schema cleanup

* comments

* fix TODOs

* first attempt at docker integration in travis; also add schema validation

* add integration_tests.sh

* need sudo?

* try pip install --user

* revert regression

* add docker service again

* chmod +x integration_tests.sh

* fix path of binary

* Dump output file to stdout

* travis work

* use jp's build-self-contained script

* use go get/go build to get jp

* fix jp path

* switch from bogus regex to wildcard

* do all mysql versions; fix version comparison

* re-enable notifications; fix successful version check log message; comment TryGetScanStatus

* move to conf.d layout for integration tests

* update README

* add missing scripts

* add ./ to path
2017-12-15 09:25:17 -05:00