Git Product home page Git Product logo

keycloak-tool's Introduction

keycloak-tool

Dev, DevOps and Monitoring tools for RedHat Keycloak

Setup

git clone [email protected]:cloudtrust/keycloak-tool.git
python3.6 -m venv keycloak-tool
de keycloak-tool
source bin/active
pip install -r requirements.txt

Infrastructure unit tests

Contains tests related to Keycloak services, container and business functionality

  • Service tests to test Keycloak and various component as standalone services
  • Container tests to test container build, architecture and plumbing
  • Functionnal tests to test end-to-end functionality

Run test

Test are run from the project root

Run a test file

pytest tests/test_service_keycloak.py
======================================================== test session starts ========================================================
platform darwin -- Python 3.6.4, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /Users/XX/Documents/dev/keycloak-tool, inifile:
collected 2 items

tests/test_service_keycloak.py ..                                                                                             [100%]

===================================================== 2 passed in 0.19 seconds ===================================================

Run a test file and show debug line

====================================================== test session starts =======================================================
platform darwin -- Python 3.6.4, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
rootdir: /Users/XX/Documents/dev/keycloak-tool, inifile:
collected 1 item

tests/test_service_keycloak.py 01/25/2018 10:21:15 AM keycloak-tool.tests.service_keycloak DEBUG /Users/spa/Documents/dev/keycloak-tool/tests_config/dev.json
01/25/2018 10:21:15 AM keycloak-tool.tests.service_keycloak DEBUG {
    "keycloak": {
        "hostname": "keycloak.ext.icrc.org",
        "http_scheme": "https",
        "ip": "192.168.16.42"
    },
    "keycloak-bridge": {
        "hostname": "keycloak-bridge.ext.icrc.org",
        "http_scheme": "https",
        "ip": "192.168.16.42"
    }
}
01/25/2018 10:21:15 AM keycloak-tool.tests.service_keycloak DEBUG Disabling https warning
01/25/2018 10:21:15 AM keycloak-tool.tests.service_keycloak DEBUG {
    "headers": {
        "Accept": "text/html; charset = UTF-8",
        "Host": "keycloak.ext.icrc.org"
    },
    "url": "https://192.168.16.42/auth/"
}
01/25/2018 10:21:15 AM urllib3.connectionpool DEBUG Starting new HTTPS connection (1): 192.168.16.42

keycloak-tool's People

Contributors

braoru avatar

Watchers

James Cloos avatar

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.