Skip to content

Commit

Permalink
#1 add in infrastructure tests
Browse files Browse the repository at this point in the history
also bump read timeout for the end-to-end test
  • Loading branch information
Eric Kascic committed Mar 4, 2016
1 parent f13fa5c commit 2ed0863
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions awspec/lambda_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
require_relative 'spec_helper'

ENV['CLOUDFRONT_ONLY_SECURITY_GROUP_LAMBDA_FUNCTION_NAME'] = 'CloudFront-Lambda-Security-sgUpdaterLambdaFunction-CQS3T2H2QKZV'

describe lambda(ENV['CLOUDFRONT_ONLY_SECURITY_GROUP_LAMBDA_FUNCTION_NAME']) do
it { should exist }
its(:handler) { should eq 'JRubyHandlerWrapper::handler' }
its(:runtime) { should eq 'java8' }
its(:timeout) { should eq 240 }
its(:memory_size) { should eq 512 }
its(:memory_size) { should eq 448 }

its(:role) {
should_not eq nil
Expand Down
2 changes: 2 additions & 0 deletions pipeline/circleci_deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ source pipeline/deploy-new-lambda.sh
#lambda_function_name set
#version_arn set

source pipeline/run-infrastructure-tests.sh

source pipeline/run-end-to-end-test.sh

#prod_arn
Expand Down
4 changes: 4 additions & 0 deletions pipeline/run-infrastructure-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -ex

export CLOUDFRONT_ONLY_SECURITY_GROUP_LAMBDA_FUNCTION_NAME=${lambda_function_name}
rspec awspec
1 change: 1 addition & 0 deletions spec_end_to_end/end_to_end_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
end

it 'updates the sg with the tag' do
Aws.config[:http_read_timeout] = 180
client = Aws::Lambda::Client.new

test_input = {
Expand Down

0 comments on commit 2ed0863

Please sign in to comment.