Skip to content

Instantly share code, notes, and snippets.

View omaciel's full-sized avatar
🎯
Learning

Og Maciel omaciel

🎯
Learning
View GitHub Profile
@omaciel
omaciel / README.md
Created May 11, 2017 18:19
Script that updates a Bugzilla flag for issues that have been closed.
$ python update_flags.py
Updating Bugzilla: 1192486
Updating Bugzilla: 1253941
Updating Bugzilla: 1296242
Updating Bugzilla: 1437719
Updating Bugzilla: 1440955
Updating Bugzilla: 1358176
Updating Bugzilla: 1277063
Updating Bugzilla: 1192245
@omaciel
omaciel / castalio.py
Created April 25, 2017 15:25
Generate the template code for a new podcast episode show notes
import sys
import optparse
from ConfigParser import SafeConfigParser
ddg = "https://duckduckgo.com/?q="
lastfm = "http://www.last.fm/search?q="
imdb = "http://www.imdb.com/find?s=all&q="
amazon = "http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dstripbooks&field-keywords="
music_attrib = """
import os
import re
def edit_case_importance():
for dirpath, _, filenames in os.walk('tests/foreman'):
for filename in filenames:
path = os.path.join(dirpath, filename)
if path.endswith('.py') and '__init__.py' not in path:
print(path)
@omaciel
omaciel / notes.rst
Last active January 17, 2017 22:07
Notes so I don't forget stuff

Notes

Emacs

Weird characters displayed on terminal inside Emacs

First add the following lines to your .emacs file:

@omaciel
omaciel / polarion.md
Created May 17, 2016 13:00
Polarion + Betelgeuse + Testimony

Polarion Tooling Meeting

Question

Can you present an example test case that you would want to import, including:

  • Source of the test

Register both Satellite and Capsule systems

Run these commands on both Satellite and Capsule systems to properly register them to CDN and to remove Beaker repositories (only needed for Red Hat QE folks)

export USER_NAME=""
export USER_PASSWORD=""
export POOLID=""
export ADMIN_USER="admin"
@omaciel
omaciel / update_approval.py
Last active April 28, 2019 10:25
Scripts that use Pylarion
import multiprocessing
import ssl
from pylarion.work_item import TestCase
# Avoid SSL errors
ssl._create_default_https_context = ssl._create_unverified_context
items = TestCase.query('project.id:RHSAT6', fields=['status', 'author', 'approvals'])
@omaciel
omaciel / quality.md
Last active November 12, 2020 07:13
Characteristics Of A Good Quality Engineer
Also, I would be grateful if you could give me some advice about the skills I need in order to have a career as a Quality Engineer.

I think that the most important skill a Quality Engineer (QE for short) should have is to always strive to deliver quality and never compromise on this goal. Sure, being flexible is just as important, and in order to position yourself in a place where you don't have to compromise on delivering quality, the second important skill is to always, always, do your homework and present facts (backed up with real data and numbers) about the current state of the product you're working on. Don't say things like "the product is too buggy" or "the usability is bad." Instead, focus on showing the type and number of issues you've encountered during your testing cycle or exploratory testing period. Show them numbers! Tell them instead, "our automation shows that feature X has failed Y number of tests out of a total of Z tests, which represents a percentage of P. Furthermore, since feat

@omaciel
omaciel / cli_client.py
Created January 29, 2016 14:10
New cli.Client module
import json
from pulp_smash import cli, config
server_config = config.ServerConfig(
base_url=u'qe-sat6-rhel7',
cli_transport='ssh'
)
@omaciel
omaciel / README.md
Last active January 22, 2016 20:01
Script to create 'fake' Content Hosts via Satellite's Rest API.

Script to create 'fake' Content Hosts via Satellite's Rest API.

The script below will create 'fake' Content Hosts for a Satellite 6 system using its Rest API.

Furthermore, for every Content Host created, a Subscription will be added.

The following assumptions are made:

  • You have a fully installed and configured Satellite 6 system;