- Add Robottelo as a remote repository to your fork
(master) $ git remote add upstream [email protected]:omaciel/robottelo.git
- Fetch latest upstream code
(master) $ git remote add upstream [email protected]:omaciel/robottelo.git
sudo vim /etc/ssh/sshd_config | |
# Set GatewayPorts option to yes | |
sudo service sshd restart |
# Breaking lines inside (), [], {} | |
# ================================ | |
# Breaking imediatelly after the opening (, [ or { | |
# needs only one level of identation | |
some_big_function_name( | |
'one', 'two', 'three') | |
# Breaking after a , then need to align with the opening (, [ or { | |
some_big_function_name('one', 'two', 'three' |
# robottelo.some_module.py | |
from ddt import data as ddt_data | |
def data(func, *args): | |
if some_var: | |
return ddt_data(func, random.choice(args)) | |
else: | |
return ddt_data(func, *args) | |
# test_something.py |
# test_repository.py | |
Ran 53 tests in 900.826s | |
OK (SKIP=9) | |
# test_syncplan.py | |
Ran 72 tests in 1143.489s |
# Install required packages | |
sudo yum install @virtualization | |
sudo systemctl start libvirtd | |
# Install vagrant | |
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.2_x86_64.rpm | |
sudo yum install vagrant_1.5.2_x86_64.rpm | |
vagrant plugin install vagrant-libvirt | |
# Testing the installation with katello-deploy script |
class ApiMeta(type): | |
def __getattr__(cls, name): | |
print name | |
super(ApiMeta, cls).__getattr__(name) | |
class A(object): | |
__metaclass__ = ApiMeta | |
A.some_attr |
# Subscribe and prepare repos | |
subscription-manager register --force --username=$USERNAME --password=$PASSWORD --autosubscribe | |
subscription-manager subscribe --pool=$POOLID | |
yum repolist | |
yum-config-manager --disable "*" | |
yum-config-manager --enable rhel-6-server-rpms | |
yum-config-manager --enable rhel-server-rhscl-6-beta-rpms | |
# Add the public DNS to /etc/hosts | |
vi /etc/hosts |