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
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.
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
@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 \
<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'>
[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]
@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
@rplevka
rplevka / install_jenkins_plugin.sh
Created June 25, 2019 20:38 — forked from hoesler/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/usr/bin/env bash
set -e
set -o pipefail
plugin_repo_url="http://updates.jenkins-ci.org/download/plugins"
plugin_dir="/var/lib/jenkins/plugins"
include_optionals=false
showUsage() {
#!/usr/bin/python
import json
import os
import re
import requests
from shutil import copyfile
from tempfile import mkdtemp
update_center_url = 'https://updates.jenkins.io/update-center.json'
@rplevka
rplevka / Dockerfile
Created July 2, 2019 20:23
dockerized-jenkins-master-dockerfile
FROM jenkins/jenkins:lts-alpine
USER root
RUN apk add --no-cache python3 py3-virtualenv curl-dev libxml2-dev libxslt-dev grep sed && \
python3 -m ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN apk add pkgconf
RUN apk add build-base