diff --git a/.kitchen.yml b/.kitchen.yml deleted file mode 100644 index a9523d0..0000000 --- a/.kitchen.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -driver: - name: "terraform" - root_module_directory: "examples/test_fixture" - -provisioner: - name: "terraform" - -platforms: - - name: "aws" - -verifier: - name: "awspec" - -suites: - - name: "lambda-scheduler" - verifier: - patterns: - - "test/integration/awspec/*.rb" diff --git a/Gemfile b/Gemfile deleted file mode 100644 index fca729a..0000000 --- a/Gemfile +++ /dev/null @@ -1,8 +0,0 @@ -source "https://rubygems.org" - -gem 'aws-sdk', '~> 3.0.1' -gem 'awspec', '~> 1.17.3' -gem 'kitchen-terraform', '~> 3.3.1' -gem 'kitchen-verifier-awspec', '~> 0.1.2' -gem 'rhcl', '~> 0.1.0' - diff --git a/README.md b/README.md index 47b4b8c..1e7c004 100644 --- a/README.md +++ b/README.md @@ -72,34 +72,6 @@ module "nuke_everything_older_than_7d" { -## Tests - -This module has been packaged with [awspec](https://github.com/k1LoW/awspec) tests through test kitchen. To run them: - -Install kitchen-terraform and awspec: - -```shell -# Install dependencies -gem install bundler -bundle install -``` - -Launch kitchen tests: - -```shell -# List all tests with kitchen -kitchen list - -# Build, and tests terraform module -kitchen test - -# for development, create environment -kitchen converge - -# Apply awspec tests -kitchen verify -``` - ## Authors Modules managed by [diodonfrost](https://github.com/diodonfrost) diff --git a/tests/integration/awspec/cloudwatch_spec.rb b/tests/integration/awspec/cloudwatch_spec.rb deleted file mode 100644 index 7a24dba..0000000 --- a/tests/integration/awspec/cloudwatch_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -# aws spec testing lambda event cloudwatch - -require 'awspec' -require 'aws-sdk' -require 'rhcl' - -cloudwatch_name = ['trigger-lambda-nuke-everything'] - -cloudwatch_name.each do |name| - describe cloudwatch_event(name) do - it { should exist } - it { should be_enable } - end -end diff --git a/tests/integration/awspec/iam_spec.rb b/tests/integration/awspec/iam_spec.rb deleted file mode 100644 index 5bf6455..0000000 --- a/tests/integration/awspec/iam_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -# aws spec testing iam lambda sheduler - -require 'awspec' -require 'aws-sdk' -require 'rhcl' - -role_name = 'everything-lambda-nuke' - -describe iam_role(role_name) do - it { should exist } - it { should have_inline_policy } -end diff --git a/tests/integration/awspec/lambda_spec.rb b/tests/integration/awspec/lambda_spec.rb deleted file mode 100644 index 395e4c0..0000000 --- a/tests/integration/awspec/lambda_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -# aws spec testing lambda functions - -require 'awspec' -require 'aws-sdk' -require 'rhcl' - -lambda_names = ['everything'] - -# Lambda function should be created -lambda_names.each do |name| - describe lambda(name) do - it { should exist } - its(:timeout) { should be >= 600 } - its(:runtime) { should eq 'python3.7' } - end -end