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
const { event } = require("codeceptjs"); | |
let httpOrHttps; | |
// Trigger report to Elasticsearch when hook "event.test.after" is fired | |
module.exports = (config) => { | |
checkConfig(config); | |
httpOrHttps = | |
config.protocol === "https" ? require("https") : require("http"); | |
event.dispatcher.on(event.test.after, async (test) => { |
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
const assert = require('assert'); | |
/** | |
* Helps you test network traffic with Playwright. | |
* | |
* - mockTraffic | |
* - blockTraffic | |
* - startRecordingTraffic | |
* - seeTraffic | |
* - dontSeeTraffic |
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
const { event } = require('codeceptjs'); | |
let httpOrHttps | |
// Trigger report to Elasticsearch when hook "event.test.after" is fired | |
module.exports = (config) => { | |
checkConfig(config) | |
httpOrHttps = config.protocol === 'https' ? require('https') : require('http') | |
event.dispatcher.on(event.test.after, async (test) => { |
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
const assert = require('assert'); | |
const Proxy = require('browsermob-proxy').Proxy; | |
const fs = require('fs'); | |
const event = require('codeceptjs').event; | |
const output = require('codeceptjs').output; | |
const container = require('codeceptjs').container; | |
class Browsermob extends Helper { | |
constructor(config) |
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
/** | |
* @return {string} | |
*/ | |
function FindProxyForURL(url, host) | |
{ | |
'use strict'; | |
var url2 = url.substring(url.indexOf("//")+2); // removing http*:// | |
var urlMatch; | |
if(url2.indexOf("/") != -1) { |
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
#!/usr/bin/env bash | |
CONTEXTS=`kubectl config get-contexts -o name | sort` | |
# Save current IFS | |
SAVEIFS=$IFS | |
# Change IFS to new line. | |
IFS=$'\n' | |
CONTEXTS=($CONTEXTS) | |
# Restore IFS |
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
API PULL2 |