Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# Copyright 2018 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in README.md and
# CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------

fixtures:
forge_modules:
gauth: google/gauth
symlinks:
gcompute: "#{source_dir}"
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ If you find an issue with them there are 2 options:
The list below contains all the files that were automatically generated by
puppet-codegen:

* .fixtures.yml
* .gitignore
* .rubocop.yml
* .tools/end2end/data/address.pp
Expand Down Expand Up @@ -612,6 +613,7 @@ puppet-codegen:
* spec/data/network/gcompute_zone/success3~name.yaml
* spec/data/network/gcompute_zone/success3~title.yaml
* spec/fake_auth.rb
* spec/fixtures/mock_hc_fn.pp
* spec/gcompute_address_provider_spec.rb
* spec/gcompute_backend_bucket_provider_spec.rb
* spec/gcompute_backend_service_provider_spec.rb
Expand Down Expand Up @@ -647,6 +649,32 @@ puppet-codegen:
* spec/gcompute_url_map_provider_spec.rb
* spec/gcompute_vpn_tunnel_provider_spec.rb
* spec/gcompute_zone_provider_spec.rb
* spec/integration/address/integration_spec.rb
* spec/integration/backend_bucket/integration_spec.rb
* spec/integration/backend_service/integration_spec.rb
* spec/integration/disk/integration_spec.rb
* spec/integration/firewall/integration_spec.rb
* spec/integration/forwarding_rule/integration_spec.rb
* spec/integration/global_address/integration_spec.rb
* spec/integration/global_forwarding_rule/integration_spec.rb
* spec/integration/health_check/integration_spec.rb
* spec/integration/http_health_check/integration_spec.rb
* spec/integration/https_health_check/integration_spec.rb
* spec/integration/image/integration_spec.rb
* spec/integration/instance/integration_spec.rb
* spec/integration/instance_group/integration_spec.rb
* spec/integration/instance_group_manager/integration_spec.rb
* spec/integration/instance_template/integration_spec.rb
* spec/integration/route/integration_spec.rb
* spec/integration/snapshot/integration_spec.rb
* spec/integration/ssl_certificate/integration_spec.rb
* spec/integration/subnetwork/integration_spec.rb
* spec/integration/target_http_proxy/integration_spec.rb
* spec/integration/target_https_proxy/integration_spec.rb
* spec/integration/target_pool/integration_spec.rb
* spec/integration/target_ssl_proxy/integration_spec.rb
* spec/integration/target_tcp_proxy/integration_spec.rb
* spec/integration/url_map/integration_spec.rb
* spec/network_blocker.rb
* spec/network_blocker_spec.rb
* spec/network_delete_spec.rb
Expand Down Expand Up @@ -674,6 +702,7 @@ central location:
* lib/google/object_store.rb
* lib/google/string_utils.rb
* LICENSE
* Rakefile
* spec/copyright.rb
* spec/copyright_spec.rb
* spec/data/copyright_bad1.rb
Expand Down
7 changes: 6 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

source 'https://rubygems.org'
group :test do
gem 'google-api-client'
gem 'googleauth'
gem 'metadata-json-lint'
gem 'parallel_tests'
gem 'puppet', ENV['PUPPET_GEM_VERSION'] || '>= 4.2.0'
gem 'puppet-lint'
gem 'puppet-lint-unquoted_string-check'
Expand All @@ -37,7 +40,9 @@ group :test do
gem 'rspec'
gem 'rspec-mocks'
gem 'rspec-puppet'
gem 'parallel_tests'
gem 'rubocop'
gem 'semantic_puppet'
gem 'simplecov'
gem 'vcr'
gem 'webmock'
end
54 changes: 54 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ GEM
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ast (2.4.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
declarative (0.0.10)
declarative-option (0.1.0)
diff-lcs (1.3)
docile (1.1.5)
facter (2.5.1)
faraday (0.15.2)
multipart-post (>= 1.2, < 3)
fast_gettext (1.1.2)
gettext (3.2.6)
locale (>= 2.0.5)
Expand All @@ -15,17 +21,42 @@ GEM
fast_gettext (~> 1.1.0)
gettext (>= 3.0.2)
locale
google-api-client (0.23.8)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.5, < 0.7.0)
httpclient (>= 2.8.1, < 3.0)
mime-types (~> 3.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
signet (~> 0.9)
googleauth (0.6.6)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
memoist (~> 0.12)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.7)
hashdiff (0.3.7)
hiera (3.4.2)
httpclient (2.8.3)
json (2.1.0)
json-schema (2.8.0)
addressable (>= 2.4)
jwt (2.1.0)
locale (2.1.2)
memoist (0.16.0)
metaclass (0.0.4)
metadata-json-lint (2.0.2)
json-schema (~> 2.8)
spdx-licenses (~> 1.0)
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
mocha (1.3.0)
metaclass (~> 0.0.1)
multi_json (1.13.1)
multipart-post (2.0.0)
os (1.0.0)
parallel (1.12.1)
parallel_tests (2.21.3)
parallel
Expand All @@ -50,6 +81,11 @@ GEM
rspec-puppet (~> 2.0)
rainbow (3.0.0)
rake (10.5.0)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
Expand All @@ -73,19 +109,34 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.9.0)
safe_yaml (1.0.4)
semantic_puppet (1.0.2)
signet (0.9.1)
addressable (~> 2.3)
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simplecov (0.15.1)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
spdx-licenses (1.1.0)
text (1.3.1)
uber (0.1.0)
unicode-display_width (1.3.0)
vcr (4.0.0)
webmock (3.4.2)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff

PLATFORMS
ruby

DEPENDENCIES
google-api-client
googleauth
metadata-json-lint
parallel_tests
puppet (>= 4.2.0)
Expand All @@ -98,7 +149,10 @@ DEPENDENCIES
rspec-mocks
rspec-puppet
rubocop
semantic_puppet
simplecov
vcr
webmock

BUNDLED WITH
1.16.1
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'puppetlabs_spec_helper/rake_tasks'
30 changes: 30 additions & 0 deletions spec/fixtures/mock_hc_fn.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2018 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in README.md and
# CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------

function gcompute_health_check_ref(String $name, String $project_name) >> String {
"https://www.googleapis.com/compute/v1/projects/$project_name/global/healthChecks/$name"
}
5 changes: 5 additions & 0 deletions spec/gcompute_address_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_address).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_backend_bucket_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_backend_bucket).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_backend_service_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_backend_service).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_disk_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_disk).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_disk_type_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_disk_type).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_firewall_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_firewall).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_forwarding_rule_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_forwarding_rule).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_global_address_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_global_address).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_global_forwarding_rule_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_global_forwarding_rule).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_health_check_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_health_check).provider(:google) do
before(:all) do
Expand Down
5 changes: 5 additions & 0 deletions spec/gcompute_http_health_check_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
# ----------------------------------------------------------------------------

require 'spec_helper'
require 'network_blocker'
require 'spec/bundle.rb'
require 'spec/copyright.rb'
require 'spec/fake_auth.rb'
require 'spec/test_constants.rb'

describe Puppet::Type.type(:gcompute_http_health_check).provider(:google) do
before(:all) do
Expand Down
Loading