diff --git a/acme-copy-certs/tests/test.py b/acme-copy-certs/tests/test.py new file mode 100755 index 0000000000000000000000000000000000000000..15c60932153e62ccdc3da4477dd7515956616495 --- /dev/null +++ b/acme-copy-certs/tests/test.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +import time +import cert_updater +import file_watcher + +if __name__ == "__main__": + u = cert_updater.CertUpdater('./acme.json', '.') + + f = file_watcher.FileWatcher('./acme.json', u.update) + + u.add('pica01-test.picasoft.net') + + f.start() + + try: + while True: + time.sleep(1) + except KeyboardInterrupt: + f.stop() +