Remove main function from the certmonger library

This was useful during initial development and as a simple
in-tree unit test but it isn't needed anymore.

Related: https://pagure.io/freeipa/issue/3757
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Rob Crittenden 2017-11-30 15:48:10 -05:00 committed by Stanislav Laznicka
parent 805aea2443
commit a0407f75f9
No known key found for this signature in database
GPG Key ID: C98C414936B1A7F3

View File

@ -670,11 +670,3 @@ def wait_for_request(request_id, timeout=120):
raise RuntimeError("request timed out")
return state
if __name__ == '__main__':
request_id = request_cert(paths.HTTPD_ALIAS_DIR,
"cn=tiger.example.com,O=IPA",
"HTTP/tiger.example.com@EXAMPLE.COM", "Test")
csr = get_request_value(request_id, 'csr')
print(csr)
stop_tracking(request_id)