Skip to content

Instantly share code, notes, and snippets.

View prashanth-sams's full-sized avatar
🍎
Each day is interesting!!!

Prashanth Sams prashanth-sams

🍎
Each day is interesting!!!
View GitHub Profile
@prashanth-sams
prashanth-sams / testrail.rb
Last active April 14, 2019 06:46
TestRail Ruby API
#
# TestRail API binding for Ruby (API v2, available since TestRail 3.0)
#
# Learn more:
#
# http://docs.gurock.com/testrail-api2/start
# http://docs.gurock.com/testrail-api2/accessing
#
# Copyright Gurock Software GmbH. See license.md for details.
#
@prashanth-sams
prashanth-sams / testrail_uploader.rb
Created April 14, 2019 08:08
Upload test results in TestRail app
require_relative '../../features/helpers/testrail'
class ResultUploader
attr_accessor :client
def initialize(scenario)
@scenario = scenario
@config = TestrailConfig.new.config['testrail']
setup_testrail_client
@prashanth-sams
prashanth-sams / testrail_config.rb
Created April 15, 2019 17:46
TestRail configuration
class TestrailConfig
attr_reader :config
CONFIG_FILE = './testrail_config.yml'
def initialize
if File.exist? CONFIG_FILE
@config = YAML.load_file(CONFIG_FILE)
raise 'configuration not loaded successfully' if @config.nil?
@prashanth-sams
prashanth-sams / testrail_config.yml
Created April 15, 2019 17:48
TestRail configuration YML
testrail:
url: https://xyz.testrail.io/
user: user@domain.com
password: xxxxxxx
run_id: 111
@prashanth-sams
prashanth-sams / driver_config.rb
Last active April 15, 2019 18:03
Selenium WebDriver Browserstack Config
def browserstack
browserstack = {
'chrome' => {
'os': "windows",
'os_version': "10",
'browser': "chrome",
'browser_version': "73",
'resolution': "1280x800",
'browserstack.local': false
},
@prashanth-sams
prashanth-sams / README.md
Created May 5, 2019 15:31 — forked from fntlnz/README.md
InfluxDB and Chronograf deployed in Kubernetes

InfluxDB and Chronograf in Kubernetes

  1. Create the namespace
kubectl create ns monitoring
  1. Deploy influxdb
kubectl apply -f influxdb.yml
@prashanth-sams
prashanth-sams / K8s Cheat sheet.md
Created May 9, 2019 16:20 — forked from gianrubio/K8s Cheat sheet.md
Deploy prometheus using helm

k8s cheat sheet

aws s3api create-bucket --bucket my-kops-bucket --location- eu-west-1 --create-bucket-configuration LocationConstraint=eu-west-1
export NAME=my-kops-cluster-name
export KOPS_STATE_STORE=s3://my-kops-bucket-name 
kops create cluster --zones eu-west-1a,eu-west-1b --name $NAME --node-count=2 --node-size=t2.medium  --authorization=RBAC   --networking=calico --encrypt-etcd-storage --kubernetes-version=v1.7.10 
kops update cluster --yes
kops validate cluster
watch -n x <your command>
watch -n 60 ls -l ~/Desktop
job("main-repo") {
scm {
github("StephenKing/chef-ci-main-repo")
}
steps {
shell("knife upload roles environments data_bags --chef-repo-path ./")
}
}
version: "3.5"
services:
sonarqube:
image: sonarqube
ports:
- "9000:9000"
networks:
- sonarnet
environment: