Skip to content

Instantly share code, notes, and snippets.

Alexander Todorov atodorov

Block or report user

Report or block atodorov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
atodorov / perf-script
Created Oct 26, 2018
Kiwi TCMS API performance baseline
View perf-script
#!/usr/bin/env python
import tcms_api
import datetime
TEST_CASES_250 = """
test_client_not_logged_in (tcms.core.contrib.linkreference.tests.TestAddView)
test_with_invalid_url (tcms.core.contrib.linkreference.tests.TestAddView)
test_with_name_longer_than_64_chars (tcms.core.contrib.linkreference.tests.TestAddView)
atodorov / pairwise_spec.rb
Last active Apr 13, 2017
Example for pairwise test generation
View pairwise_spec.rb
# execute via rspec -fd pairwise_spec.rb
# for more info see
require 'pairwise'
describe "RHEL 6.9 Tier #2 and #3 testing" do
context "Test case w/o parameters can't be reduced via pairwise" do
[%w(x86_64), %w(Server Workstation Client ComputeNode)],
[%w(i386), %w(Server Workstation Client)],
atodorov / proxy.go
Created Nov 19, 2014
Proxy servers in Python and Go
View proxy.go
package main
import (
func main() {
atodorov /
Created Nov 7, 2014
Queue, Kombu and Celery tests
#!/usr/bin/env python
import djapp.mem_serializer
from datetime import datetime
from kombu.pools import producers
from kombu import Connection, Exchange
msg = {u'body': {'expires': None, 'utc': True, 'args': [], 'chord': None, 'callbacks': None, 'errbacks': None, 'taskset': None, 'id': '79ac070e-86fa-4f7a-9ce2-38ad18dbd8d3', 'retries': 0, 'task': 'djapp.celery.debug_task', 'timelimit': (None, None), 'eta': None, 'kwargs': {}}, u'headers': {}, u'content-type': 'application/x-memory', u'properties': {'reply_to': '2b255b23-2b57-3e54-98a9-3ee48645ae02', 'correlation_id': '79ac070e-86fa-4f7a-9ce2-38ad18dbd8d3', 'delivery_mode': 2, u'delivery_info': {u'priority': 0}}, u'content-encoding': 'binary'}
# The exchange we send our news articles to.
# place this file under djapp/management/commands/
from djapp.tasks import *
from datetime import datetime
from django.conf import settings
from optparse import make_option
from import BaseCommand, CommandError
class Command(BaseCommand):
atodorov /
Created Jul 20, 2013
Example how to use Text-to-Speech API
#!/usr/bin/env python
import os
import sys
import base64
import hashlib
from suds.client import Client as SOAPClient
myusername = 'YourUserName'
mypassword = 'YourSecretPassword'
You can’t perform that action at this time.