summaryrefslogtreecommitdiffstats
path: root/tools/pharos-validator/src/validation_tool/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pharos-validator/src/validation_tool/tests')
-rw-r--r--tools/pharos-validator/src/validation_tool/tests/test_node.py0
-rw-r--r--tools/pharos-validator/src/validation_tool/tests/test_probe.py0
-rw-r--r--tools/pharos-validator/src/validation_tool/tests/test_server.py9
-rw-r--r--tools/pharos-validator/src/validation_tool/tests/test_util.py12
4 files changed, 21 insertions, 0 deletions
diff --git a/tools/pharos-validator/src/validation_tool/tests/test_node.py b/tools/pharos-validator/src/validation_tool/tests/test_node.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tools/pharos-validator/src/validation_tool/tests/test_node.py
diff --git a/tools/pharos-validator/src/validation_tool/tests/test_probe.py b/tools/pharos-validator/src/validation_tool/tests/test_probe.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tools/pharos-validator/src/validation_tool/tests/test_probe.py
diff --git a/tools/pharos-validator/src/validation_tool/tests/test_server.py b/tools/pharos-validator/src/validation_tool/tests/test_server.py
new file mode 100644
index 00000000..35388b6d
--- /dev/null
+++ b/tools/pharos-validator/src/validation_tool/tests/test_server.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+
+def test_ssh_thread():
+ """Test to see if ssh connections are attempted the proper amount of times"""
+ from pharosvalidator.server import ssh_thread
+ ssh_thread("127.0.0.1", "0.0.0.0", "1", 10)
+
+
+
diff --git a/tools/pharos-validator/src/validation_tool/tests/test_util.py b/tools/pharos-validator/src/validation_tool/tests/test_util.py
new file mode 100644
index 00000000..9ce939bd
--- /dev/null
+++ b/tools/pharos-validator/src/validation_tool/tests/test_util.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+import random
+
+def test_approxsize():
+ from pharosvalidator.util import approxsize
+ assert approxsize(100, 95, 5) == True
+ assert approxsize(100, 105, 5) == True
+
+ assert approxsize(100, 94, 5) == False
+ assert approxsize(100, 106, 5) == False
+