This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install --upgrade pip | |
pip install -r test_requirements.txt | |
pip install -r monitor_viewpoint/resources/requirements.txt | |
pip install -r cmic_alert/resources/requirements.txt | |
pip install -r agent_snow_validation/resources/requirements.txt | |
pip install -r framework/requirements.txt | |
pip install -r config_viewpoint/resources/requirements.txt | |
pip install -r baas/resources/requirements.txt | |
pip install -r imc_operations/resources/requirements.txt | |
pip install -r verify_connectivity/resources/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs all if no parameter, runs unit tests for specific tool if tool name given (must match directory name) | |
if [ $# -eq 0 ]; then | |
for package in monitor_viewpoint cmic_alert verify_nodes nos_data_load agent_snow_validation tenable_scan framework config_viewpoint baas imc_operations tdc_image verify_connectivity verify_imc config_dbs_ldap snapshots_service sys_validate data_backup check_storage_space create_aliases verify_tasm_enabled nos_loader dbs_control_settings data_load; do | |
PYTHONPATH=. pytest $package/tests | |
done | |
else | |
PYTHONPATH=. pytest $1/tests | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from time import sleep | |
import threading | |
import json | |
import pika | |
from os import path | |
QUEUE_NAME = "apex-durability-test" | |
TEMP_FILE = 'results.txt' | |
SERVER = 'http://10.25.148.82:31107/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from unittest import TestCase, mock | |
JIRA_URL = 'https://jira' | |
EXECUTOR = 'executedBy' | |
FAKE_USER = 'fake_user' | |
class JiraException(RuntimeError): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from os import listdir | |
BASE_PATH = '/Users/david.mcnulla/Documents' | |
if __name__ == '__main__': | |
for file in [f"{BASE_PATH}/{file_name}" for file_name in listdir(BASE_PATH) if file_name.endswith('.json')]: | |
with open(file) as json_file: | |
data = json.load(json_file) | |
items = data['item'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from os import listdir | |
BASE_PATH = '.' | |
if __name__ == '__main__': | |
for file in [f"{BASE_PATH}/{file_name}" for file_name in listdir(BASE_PATH) if file_name.endswith('.json')]: | |
with open(file) as json_file: | |
data = json.load(json_file) | |
items = data['item'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generated by Git for Windows | |
test -f ~/.profile && . ~/.profile | |
test -f ~/.bashrc && . ~/.bashrc | |
# aliases added by dmcnculla | |
alias s='subl ' | |
alias tj='tar -xvjpf' | |
alias t='tar xvfz ' | |
alias tz='tar -xvzpf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dm186069/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# only search with case sensitivity if there is mixed case | |
--smart-case | |
# Sort the files | |
--sort-files | |
--type-set=web=.css,.htm,.html,.php,.phtml,.js | |
--type-set=py=.py | |
--type-set=ruby=.rb,.rhtml,.rjs,.rxml,.erb,.rake,Rakefile | |
--type-set=steps=steps.rb,steps.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAP = { | |
'0' => '0000', | |
'1' => '0001', | |
'2' => '0010', | |
'3' => '0011', | |
'4' => '0100', | |
'5' => '0101', | |
'6' => '0110', | |
'7' => '0111', | |
'8' => '1000', |
NewerOlder