forked from aws/opsworks-cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update s3_file to 2.6.6, git: 23c88744be6069455a39a1bc7b88e44169fe8718
- Loading branch information
Showing
12 changed files
with
122 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
.DS_Store | ||
metadata.json | ||
.kitchen.local.yml | ||
.kitchen | ||
.s3.yml | ||
Berksfile.lock | ||
*.iml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: chef_solo | ||
<% s3 = YAML.load_file('.s3.yml') %> | ||
platforms: | ||
<% %w(11.16.4 12.0.1).each do |chef_version| | ||
%w(ubuntu-12.04 ubuntu-14.04 centos-6.6 centos-7.0).each do |platform| | ||
%> | ||
- name: <%= platform %> | ||
driver_config: | ||
require_chef_omnibus: <%= chef_version %> | ||
<% end | ||
end %> | ||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[s3_file_test::default] | ||
attributes: | ||
s3_file_test: | ||
file: <%= s3['file'] %> | ||
bucket: <%= s3['bucket'] %> | ||
region: <%= s3['region'] %> | ||
access_key: <%= s3['access_key'] %> | ||
secret_key: <%= s3['secret_key'] %> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source 'https://supermarket.chef.io' | ||
|
||
metadata | ||
|
||
cookbook 's3_file_test', :path => 'test/fixtures/cookbooks/s3_file_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
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
chef_gem 'rest-client' do | ||
version node['s3_file']['rest-client']['version'] | ||
action :install | ||
compile_time true if Chef::Resource::ChefGem.method_defined?(:compile_time) | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#Description | ||
|
||
This cookbook defines acceptance tests for `s3_file`. It simple attempts to fetch a file from S3. | ||
|
||
##Attributes | ||
|
||
- `node['s3_file_test']['bucket']` - The bucket where the test file resides | ||
- `node['s3_file_test']['region']` - The AWS region for the bucket | ||
- `node['s3_file_test']['file']` - The name of the test file | ||
- `node['s3_file_test']['access_key']` - The AWS access key which allows us to fetch our test S3 file | ||
- `node['s3_file_test']['secret_key']` - The AWS secret key which allows us to fetch our test S3 file | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name 's3_file_test' | ||
maintainer 'Brandon Adams' | ||
maintainer_email 'brandon.adams@me.com' | ||
license 'MIT' | ||
description 'Tests s3_file LWRP' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version '0.1.0' | ||
|
||
depends 's3_file' | ||
|
11 changes: 11 additions & 0 deletions
11
s3_file/test/fixtures/cookbooks/s3_file_test/recipes/default.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
s3_file '/root/kitchen-test' do | ||
remote_path node['s3_file_test']['file'] | ||
bucket node['s3_file_test']['bucket'] | ||
aws_access_key_id node['s3_file_test']['access_key'] | ||
aws_secret_access_key node['s3_file_test']['secret_key'] | ||
mode 0600 | ||
owner 'root' | ||
group 'root' | ||
end | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'spec_helper' | ||
|
||
describe file('/root/kitchen-test') do | ||
it { should be_file } | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require 'serverspec' | ||
|
||
set :backend, :exec |