Skip to content

Instantly share code, notes, and snippets.

import pytest
import testinfra
import unittest
import pprint
import pytest
class TestDevopsPortal:
def setup(self):
self.b = testinfra.get_backend("local://")
print ("basic setup into class")
@rkhozinov
rkhozinov / pushkin_elastic_stub_gen.sh
Last active April 7, 2017 12:41
Pushkin elastic fake notification generator
# https://pypi.python.org/pypi/RandomWords/0.1.5
host=172.16.10.254
port=9200
title=$(python -c "import random_words; print ' '.join(random_words.RandomWords().random_words(count=2))")
content=$(python -c "import random_words; print ' '.join(random_words.RandomWords().random_words(count=10))")
app=$(($RANDOM % 3 + 1))
timestamp=$(date +"%Y-%m-%d %H:%M:%S")
data="
error_message:
ru: |
Не понял! /help
en: |
I'm dummy, sorry! /help
help_head:
ru: |
Привет! Я туду-лист с напоминалками, буду куковать тебе о важных вещах,
чтобы ты не забыл.