Skip to content

Instantly share code, notes, and snippets.

View rplevka's full-sized avatar

Roman Plevka rplevka

  • SentinelOne
  • Brno, Czech republic
View GitHub Profile
@rplevka
rplevka / robottelo.properties
Created March 5, 2019 17:00
robottelo.properties for smoke test
# libvirt hypervisor ip/hostname
# the hypervisor needs to be listening for tcp connections (qemu+tcp://.../system)
[compute_resources]
libvirt_hostname=192.168.121.1
# only needed for Satellite (downstream)
[fake_manifest]
url=http://path.to/original/manifest-latest.zip
key_url=http://path.to/original/manifest.key
cert_url=http://path.to/original/manifest.crt
[server]
#hostname=sat-6-5-qa-rhel7.localhost.example.com
hostname=tyan-gt24-12.khw1.lab.eng.bos.redhat.com
ssh_key=/home/rplevka/.ssh/jenkins
[compute_resources]
libvirt_hostname=foo.bar.localhost.com
#libvirt_hostname=192.168.121.1
[fake_manifest]
<Package '/home/rplevka/work/rplevka/robottelo/tests/foreman/api'>
<Module 'test_activationkey.py'>
<UnitTestCase 'ActivationKeyTestCase'>
<TestCaseFunction 'test_negative_create_with_invalid_host_limit'>
<TestCaseFunction 'test_negative_create_with_invalid_name'>
<TestCaseFunction 'test_negative_create_with_no_host_limit'>
<TestCaseFunction 'test_negative_create_with_no_host_limit_set_max'>
<TestCaseFunction 'test_negative_update_limit'>
<TestCaseFunction 'test_negative_update_max_hosts'>
<TestCaseFunction 'test_negative_update_name'>
@rplevka
rplevka / Dockerfile
Last active July 24, 2019 16:53
jenkins-slave-fedora-python37
FROM fedora:latest
MAINTAINER http://fedoraproject.org/wiki/Cloud
ARG ssh_prv_key
ENV PYCURL_SSL_LIBRARY=openssl
RUN dnf -d10 -y update && dnf clean all
RUN dnf -d10 -y install java-1.8.0-openjdk \
openssh-server \
git \
import pytest
from nailgun.entities import Organization
from robottelo.config import settings
from robottelo.manifests import clone, upload_manifest_locked
@pytest.fixture(scope="session")
def robottelo_props():
settings.configure()
@pytest.fixture
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rplevka
rplevka / gist:ea8ef457bb7bbc88fa77b218caa7c8a4
Last active August 14, 2018 14:00
satellite webui login + compute profile creation
import re
import requests
#from robottelo.config import settings
#settings.configure()
# hostname = settings.server.hostname
hostname = 'foo.bar.com'
def extract_token(input):
token = re.search(
{"tier1": [
{
"api": 0.2127659574468085,
"ui": 0.2257336343115124,
"cli": 0.16806722689075632
},
{
"api": 0.425531914893617,
"ui": 6.320541760722348,
// ==UserScript==
// @name jenkins_test_results_analyzer_redesign
// @namespace jenkins-ci
// @include https://*jenkins*.redhat.com/*/test_results_analyzer/
// @version 1.2.2
// @grant none
// @updateurl https://raw.githubusercontent.com/rplevka/Greasemonkey---Jenkins-Sat6/master/test-results-analyzer.meta.js
// @downloadurl https://raw.githubusercontent.com/rplevka/Greasemonkey---Jenkins-Sat6/master/test-results-analyzer.user.js
// @author roman plevka ([email protected])
// ==/UserScript==