BzChecker is a small utility that helps us to communicate with Bugzilla. It uses Google Guice injection.
- java 8
-
install
boot.shhttp://boot-clj.com/ -
run tests with beep as additional service
boot.sh watch javac speak test
-
install
leinhttps://leiningen.org/ -
run tests
lein test
-
for java see
main()method in moduleXMLRPCModuleorRESTModule- see
src/com/redhat/qe/auto/bugzilla/XMLRPCModule.java - or
src/com/redhat/qe/auto/bugzilla/RESTModule.java
- see
-
for clojure see
use-fixturesmethod in any clojure test filetest/com/redhat/qe/auto/bugzilla/bz_checker_using_xmlrpc_tests.cljtest/com/redhat/qe/auto/bugzilla/bz_checker_using_rest_tests.cljtest/com/redhat/qe/auto/bugzilla/rest_api_implementation_tests.clj
You can do that this way:
openssl s_client -connect beta-bugzilla.redhat.com:443 > trusted-certificate.crt
sudo keytool -import -trustcacerts -keystore /etc/pki/java/cacerts \
-storepass changeit -noprompt -alias mycert \
-file trusted-certificate.crt
There are a few steps to do if you want to use REST API
You can authorize your access by a generated key.
The key is generated on the web page your account in bugzilla.
- you can still use
passwordandloginas usually instead of a generated key.
Please note that the library recognizes a usage of REST API from the string automatically.
If the string contains of rest it uses REST API implementation.
If this is not what you want please send me an issue at github to add other way to tell the library what API to use.
REST_API.javamethods:getBugsupdate_bug_statusupdate_bugadd_bug_comment