View testrealm.json
{
"realm": "tobedeleted",
"enabled": true,
"loginTheme": "fabric8",
"privateKey": "MIICXAIBAAKBgQCyM+ODEAdKbhj+IJUjqONXXYLtmpLODrbtLB4zPXf174OsenO68aGJPUBWgZ3mRN9nU19A8m75ZfnKKkRxfrrawQgoT7Ww5cDhaHuAEYF2+tlfet0Fvc6Q8j/LUPsWoG59Dx5N6yX2lu9p/JcFyZdPNb3FJGHWaXScVDPgufS0ZQIDAQABAoGAfKIl4Sh4sOnHuRT4ufQI7LWOOLf/LPbFoaNVi+jV2cAmi58pCfqtS9r3AImu8boBtbZtzHLCgtN7nJVrQSWtcNvH6HhutSxV3dzyH1G4fRsyL8BVUnqqaLGpR+J1Tq3s3QmP8iZoNrfg3YK1j6fEoasHW994AzN7PEN9+NM5HAECQQD3bC+aT6dLvO3KaUfLqj2s6kc0NGleHAT3n5mi2xjC82qSRipJxe/7/oa/aF1kc9xWAI6tlU8AETQKGjduLnYlAkEAuGFkraxg+xFpIp4XolqXt5vK/G/7+A4I6COdXOkYOzOnxptxDKnVJI+WQYWBKF7jigNHXCtwW+z7UcuUVXtRQQJALF8Jdmn8fZenKVqSFpM0NlNZa6JOlyL9PQ8xNUSHf0a6APt2T/6gWBfAQIlN3lrs07uL2tNg9IkhRQKImEjaxQJBALgKPvw7+/Gfx1mOg/jChH35O/wNq2xGVg2gvwpmgJFXVjigH4+MVfxQdqKgJ/OsA2NXMnuFwHmBarqSglVw6gECQGp+2Jg27pv1psU3ONcy0AUkAuIoObdC6z9WLEWXp08TWmycIFEVopiXIRNmlmkzwYxc4MJFBEvP6MBrmDsYK2k=",
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyM+ODEAdKbhj+IJUjqONXXYLtmpLODrbtLB4zPXf174OsenO68aGJPUBWgZ3mRN
View bootstrap.sh
#!/bin/bash
REALM="master"
CONTENT_OF_THE_JSONFILE=$(<testrealm.json)
export TKN=`curl -k -v -X POST "http://keycloak-kc-kishan.dev.rdu2c.fabric8.io/auth/realms/$REALM/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
View bootstrap.sh
#!/bin/bash
REALM="master"
export TKN=`curl -k -v -X POST "http://keycloak-keycloak.192.168.42.52.nip.io/auth/realms/$REALM/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token'`
View bootstrap.go
package bootstrap
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
)
// KeycloakConfig contains basic configuration data for Keycloak
View bootstrap.go
package bootstrap
import (
"bytes"
"encoding/base64"
"fmt"
"net/http"
"strings"
yaml "gopkg.in/yaml.v2"
View Keyclock error
`06:00:08,022 ERROR [io.undertow.request] (default task-20) UT005023: Exception handling request to /auth/admin/realms: org.jboss.resteasy.spi.UnhandledException: org.keycloak.component.ComponentValidationException: Failed to decode private key
at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:168)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:411)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispat
View Error
[ksagathi@dhcp-0-128 minishift]$ ls
LICENSE minishift README.adoc
[ksagathi@dhcp-0-128 minishift]$ ./minishift start
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Starting Minishift VM ... OK
-- Checking for IP address ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... FAIL
View setup.py
# -*- coding: utf-8 -*-
#
# This file is part of Zenodo.
# Copyright (C) 2015, 2016 CERN.
#
# Zenodo is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
View ternimal_dump
(zenodo1) kishan@kishan-Inspiron-3542:~/src/zenodo/tests/e2e$ pytest test_basic_tests.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-3.0.4, py-1.4.31, pluggy-0.4.0
rootdir: /home/kishan/src/zenodo, inifile: pytest.ini
plugins: pep8-1.0.6, flask-0.10.0, cov-2.4.0
collected 2 items
test_basic_tests.py .F
---------- coverage: platform linux2, python 2.7.12-final-0 ----------
View test_basic_tests.py
# -*- coding: utf-8 -*-
#
# This file is part of Zenodo.
# Copyright (C) 2015 CERN.
#
# Zenodo is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#