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
resource "aws_lambda_function" "api" { | |
s3_bucket = "${aws_s3_bucket_object.api.bucket}" | |
s3_key = "${aws_s3_bucket_object.api.key}" | |
s3_object_version = "${aws_s3_bucket_object.api.version_id}" | |
function_name = "${var.resource_prefix}-api" | |
description = "${var.project_name} API" | |
role = "${aws_iam_role.lambda_execution.arn}" | |
runtime = "${var.lambda_runtime}" | |
timeout = "${var.lambda_timeout}" |
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
{ | |
"UserData": { "Fn::Base64": { "Fn::Join": ["", [ | |
"#!/bin/bash\n", | |
"cd /root \n", | |
"sudo yum install perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA -y\n", | |
"sudo yum install zip unzip -y \n", | |
"curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O \n", | |
"unzip CloudWatchMonitoringScripts-1.2.2.zip \n", | |
"rm CloudWatchMonitoringScripts-1.2.2.zip \n", | |
"cd aws-scripts-mon \n", |
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
sudo su | |
#Get Chromedriver and Selenium from net. | |
wget -P /opt/chromedriver/ "https://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip" | |
wget -P /opt/selenium/ "http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar" | |
wget -P /opt/ "http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz" | |
#Build out chrome repo | |
cat << EOF > /etc/yum.repos.d/google-chrome.repo | |
[google-chrome] |
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
22:04:52.033 INFO - Creating a new session for Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@2ab23377, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, platform=ANY, requestOrigins={name=webdriverio, version=4.2.16, url=http://webdriver.io}}] | |
Starting ChromeDriver 2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e) on port 12967 Only local connections are allowed. | |
22:04:52.046 INFO - Attempting bi-dialect session, assuming Postel's Law holds true on the remote end | |
22:05:52.065 INFO - Detected dialect: OSS | |
22:05:52.069 INFO - Done: [new session: Capabilities [{rotatable=true, locationContextEnabled=true, loggingPrefs=org.openqa.selenium.logging.LoggingPreferences@2ab23377, browserName=chrome, javascriptEnabled=true, handlesAlerts=true, platform=ANY, requestOrigins={name=webdriverio, version=4.2.16, url=http://webdriver.io}}]] |
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
[ 'Bob Boberts\' 2nd' ] | |
[ { ELEMENT: '47' }, { ELEMENT: '50' } ] | |
actual location found on page 'Bob Boberts' 2nd' matched expected value 'Bob Boberts' 2nd' | |
Before logging error: | |
{ [Error: unknown error: cannot determine loading status | |
from unknown error: missing or invalid arg value] | |
message: 'unknown error: cannot determine loading status | |
from unknown error: missing or invalid arg value', | |
type: 'RuntimeError', | |
seleniumStack: |
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
this.Given(/^I have (selected|deselected) (.*)$/, function (selectAction, location) { | |
var locations; | |
var treeElements; | |
var expectedLocationName = null; | |
locations=location.split(","); //Reassess FF to pass in table later | |
browser.waitForVisible('[ng-if="options.searchShow"]',5000); | |
console.log(locations); | |
for(var i=0;i<locations.length;i++) { |
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
// - - - - SELENIUM-STANDALONE | |
seleniumStandaloneOptions: { | |
// check for more recent versions of selenium here: | |
// http://selenium-release.storage.googleapis.com/index.html | |
version: '2.53.1', | |
baseURL: 'https://selenium-release.storage.googleapis.com', | |
drivers: { | |
chrome: { | |
// check for more recent versions of chrome driver here: | |
// http://chromedriver.storage.googleapis.com/index.html |
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
for (i = 2; i <= listSize; i++) { | |
previousListItem = browser.element('.//*[@id=\''+listType+'List\']/'+listType+'-list-item['+(i-1)+']'); | |
currentListItem = browser.element('.//*[@id=\''+listType+'List\']/'+listType+'-list-item['+i+']'); | |
if(listType === 'user') { | |
previousListItemValue = previousListItem.getText('[data-automation-name="user-last-name"]'); | |
currentListItemValue = currentListItem.getText('[data-automation-name="user-last-name"]'); | |
} | |
else { |