Skip to content

Instantly share code, notes, and snippets.

@nikoly
nikoly / Plan for 11-19.06.2018.md
Last active June 8, 2018 14:55
Tickets For Grooming and More

Grooming 11.06.2018

This user story is about building a permissions API that would allow to manage user creating process acording to constrains mentioned in the user story.

It can be done in parallel to the current work on User and Device Groups association. Please, discuss it and have an architecture review. If you are kind also estimate it.

Grooming 14.06.2018

@nikoly
nikoly / Jenkinsfile
Last active March 29, 2021 16:20
Complete Jenkins Pipeline to run selenium tests
#!groovy
node {
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
stage("Checkout") {
checkout scm
}
stage("Cleaning and preparing") {
sh '''#!/bin/bash -e
git clean -dfx
@nikoly
nikoly / docker-compose.yaml
Last active December 9, 2017 15:55
docker-compose file to run selenium tests in a user defined network
version: '2'
services:
selenium_hub:
image: selenium/hub
networks:
robottestsnw: {}
ports:
- "4444"
@nikoly
nikoly / translator_translate-service.json
Last active August 9, 2017 09:58
Provider contract instructions with Pact
{
"consumer": {
"name": "Translator"
},
"provider": {
"name": "Translate Service"
},
"interactions": [
{
"description": "a request to get translation for number one",
@nikoly
nikoly / translate_service_contract.py
Last active August 6, 2017 18:49
Consumer contract test with Pact.
import atexit
import unittest
import requests
from pact import Consumer, Provider
pact = Consumer('Translator').has_pact_with(Provider('Translate Service'), pact_dir='./pacts')
pact.start_service()
atexit.register(pact.stop_service)