Code Monkey home page Code Monkey logo

bz-checker's Introduction

BzChecker is a small utility that helps us to communicate with Bugzilla. It uses Google Guice injection.

Requirements

  • java 8

How to run tests with clojure boot

  • install boot.sh http://boot-clj.com/

  • run tests with beep as additional service

      boot.sh watch javac speak test
    

How to run tests with clojure lein

If you want to see how injection is initialized

  • for java see main() method in module XMLRPCModule or RESTModule

    • see src/com/redhat/qe/auto/bugzilla/XMLRPCModule.java
    • or src/com/redhat/qe/auto/bugzilla/RESTModule.java
  • for clojure see use-fixtures method in any clojure test file

    • test/com/redhat/qe/auto/bugzilla/bz_checker_using_xmlrpc_tests.clj
    • test/com/redhat/qe/auto/bugzilla/bz_checker_using_rest_tests.clj
    • test/com/redhat/qe/auto/bugzilla/rest_api_implementation_tests.clj

It might be necessary to import a trusted certificate when using REST implemenation

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 

Using of REST API

There are a few steps to do if you want to use REST API

generate key in a web page for bugzilla access

You can authorize your access by a generated key. The key is generated on the web page your account in bugzilla.

paste the generated key into a property bugzilla.apikey

  • you can still use password and login as usually instead of a generated key.

update the property bugzilla.url to a new url

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.

ToDo

  • REST_API.java methods:
    • getBugs
    • update_bug_status
    • update_bug
    • add_bug_comment

bz-checker's People

Contributors

bcrochet avatar filipb avatar jsefler avatar jstavel avatar lorquas avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jstavel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.