From 5fb63d1d6e9fea1b89957b9b4cbd9314ba841690 Mon Sep 17 00:00:00 2001 From: Vincent Roseberry Date: Tue, 24 Apr 2018 17:16:32 +0000 Subject: [PATCH] Magic Modules changes. --- .rubocop.yml | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- coverage/.last_run.json | 5 ---- examples/database.pp | 2 +- examples/delete_database.pp | 2 +- examples/delete_instance.pp | 2 +- examples/delete_user.pp | 2 +- examples/flag.pp | 2 +- examples/instance.pp | 2 +- examples/ssl_cert.pp | 2 +- examples/tier.pp | 2 +- examples/user.pp | 2 +- lib/google/sql/network/base.rb | 2 +- lib/google/sql/network/delete.rb | 2 +- lib/google/sql/network/get.rb | 2 +- lib/google/sql/network/post.rb | 2 +- lib/google/sql/network/put.rb | 2 +- lib/google/sql/property/array.rb | 2 +- lib/google/sql/property/base.rb | 2 +- lib/google/sql/property/boolean.rb | 2 +- lib/google/sql/property/enum.rb | 2 +- .../property/instance_authorized_networks.rb | 2 +- .../sql/property/instance_failover_replica.rb | 2 +- .../sql/property/instance_ip_addresses.rb | 2 +- .../sql/property/instance_ip_configuration.rb | 2 +- .../instance_mysql_replica_configuration.rb | 2 +- lib/google/sql/property/instance_name.rb | 2 +- .../instance_replica_configuration.rb | 2 +- lib/google/sql/property/instance_settings.rb | 2 +- lib/google/sql/property/integer.rb | 2 +- lib/google/sql/property/string.rb | 2 +- lib/google/sql/property/string_array.rb | 2 +- lib/google/sql/property/time.rb | 2 +- lib/google/string_utils.rb | 8 +++++ lib/puppet/functions/gsql_instance_ip.rb | 2 +- lib/puppet/provider/gsql_database/google.rb | 2 +- lib/puppet/provider/gsql_flag/google.rb | 2 +- lib/puppet/provider/gsql_instance/google.rb | 2 +- lib/puppet/provider/gsql_ssl_cert/google.rb | 2 +- lib/puppet/provider/gsql_tier/google.rb | 2 +- lib/puppet/provider/gsql_user/google.rb | 2 +- lib/puppet/type/gsql_database.rb | 2 +- lib/puppet/type/gsql_flag.rb | 2 +- lib/puppet/type/gsql_instance.rb | 2 +- lib/puppet/type/gsql_ssl_cert.rb | 2 +- lib/puppet/type/gsql_tier.rb | 2 +- lib/puppet/type/gsql_user.rb | 2 +- spec/.rubocop.yml | 2 +- spec/bundle.rb | 2 +- .../network/gsql_database/success1~name.yaml | 2 +- .../network/gsql_database/success1~title.yaml | 2 +- .../network/gsql_database/success2~name.yaml | 2 +- .../network/gsql_database/success2~title.yaml | 2 +- .../network/gsql_database/success3~name.yaml | 2 +- .../network/gsql_database/success3~title.yaml | 2 +- .../data/network/gsql_flag/success1~name.yaml | 2 +- .../network/gsql_flag/success1~title.yaml | 2 +- .../data/network/gsql_flag/success2~name.yaml | 2 +- .../network/gsql_flag/success2~title.yaml | 2 +- .../data/network/gsql_flag/success3~name.yaml | 2 +- .../network/gsql_flag/success3~title.yaml | 2 +- .../network/gsql_instance/success1~name.yaml | 2 +- .../network/gsql_instance/success1~title.yaml | 2 +- .../network/gsql_instance/success2~name.yaml | 2 +- .../network/gsql_instance/success2~title.yaml | 2 +- .../network/gsql_instance/success3~name.yaml | 2 +- .../network/gsql_instance/success3~title.yaml | 2 +- .../network/gsql_ssl_cert/success1~name.yaml | 2 +- .../network/gsql_ssl_cert/success1~title.yaml | 2 +- .../network/gsql_ssl_cert/success2~name.yaml | 2 +- .../network/gsql_ssl_cert/success2~title.yaml | 2 +- .../network/gsql_ssl_cert/success3~name.yaml | 2 +- .../network/gsql_ssl_cert/success3~title.yaml | 2 +- .../data/network/gsql_tier/success1~name.yaml | 2 +- .../network/gsql_tier/success1~title.yaml | 2 +- .../data/network/gsql_tier/success2~name.yaml | 2 +- .../network/gsql_tier/success2~title.yaml | 2 +- .../data/network/gsql_tier/success3~name.yaml | 2 +- .../network/gsql_tier/success3~title.yaml | 2 +- .../data/network/gsql_user/success1~name.yaml | 2 +- .../network/gsql_user/success1~title.yaml | 2 +- .../data/network/gsql_user/success2~name.yaml | 2 +- .../network/gsql_user/success2~title.yaml | 2 +- .../data/network/gsql_user/success3~name.yaml | 2 +- .../network/gsql_user/success3~title.yaml | 2 +- spec/fake_auth.rb | 2 +- spec/gsql_database_provider_spec.rb | 2 +- spec/gsql_flag_provider_spec.rb | 2 +- spec/gsql_instance_provider_spec.rb | 2 +- spec/gsql_ssl_cert_provider_spec.rb | 2 +- spec/gsql_tier_provider_spec.rb | 2 +- spec/gsql_user_provider_spec.rb | 2 +- spec/network_blocker.rb | 2 +- spec/network_blocker_spec.rb | 2 +- spec/network_delete_spec.rb | 2 +- spec/network_get_spec.rb | 2 +- spec/network_post_spec.rb | 2 +- spec/network_put_spec.rb | 2 +- spec/puppetlint_spec.rb | 2 +- spec/spec_helper.rb | 2 +- spec/string_utils_spec.rb | 30 ++++++++++++++++++- spec/test_constants.rb | 2 +- tasks/clone.rb | 2 +- tasks/passwd.rb | 2 +- 105 files changed, 139 insertions(+), 108 deletions(-) delete mode 100644 coverage/.last_run.json diff --git a/.rubocop.yml b/.rubocop.yml index 3209c36..ba7ca43 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/Gemfile b/Gemfile index b4c84ec..44541c4 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/Gemfile.lock b/Gemfile.lock index 1c69db0..76ebe18 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -31,7 +31,7 @@ GEM ast (~> 2.3) powerpack (0.1.1) public_suffix (3.0.1) - puppet (5.3.3) + puppet (5.3.4) facter (> 2.0, < 4) gettext-setup (>= 0.10, < 1) hiera (>= 3.2.1, < 4) diff --git a/coverage/.last_run.json b/coverage/.last_run.json deleted file mode 100644 index a8251d2..0000000 --- a/coverage/.last_run.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "result": { - "covered_percent": 75.2 - } -} diff --git a/examples/database.pp b/examples/database.pp index 0692422..dfc9baa 100644 --- a/examples/database.pp +++ b/examples/database.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/delete_database.pp b/examples/delete_database.pp index 92b37c6..0433686 100644 --- a/examples/delete_database.pp +++ b/examples/delete_database.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/delete_instance.pp b/examples/delete_instance.pp index 59bd434..0da902f 100644 --- a/examples/delete_instance.pp +++ b/examples/delete_instance.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/delete_user.pp b/examples/delete_user.pp index c280956..9391d80 100644 --- a/examples/delete_user.pp +++ b/examples/delete_user.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/flag.pp b/examples/flag.pp index 2252a8d..5d371d5 100644 --- a/examples/flag.pp +++ b/examples/flag.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/instance.pp b/examples/instance.pp index 469fe65..087179b 100644 --- a/examples/instance.pp +++ b/examples/instance.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/ssl_cert.pp b/examples/ssl_cert.pp index 4cc5086..6c505a1 100644 --- a/examples/ssl_cert.pp +++ b/examples/ssl_cert.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/tier.pp b/examples/tier.pp index a958462..32e1978 100644 --- a/examples/tier.pp +++ b/examples/tier.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/examples/user.pp b/examples/user.pp index 9d96e0d..3d5e0df 100644 --- a/examples/user.pp +++ b/examples/user.pp @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/network/base.rb b/lib/google/sql/network/base.rb index cc44659..45cceb1 100644 --- a/lib/google/sql/network/base.rb +++ b/lib/google/sql/network/base.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/network/delete.rb b/lib/google/sql/network/delete.rb index 3870979..51be5a0 100644 --- a/lib/google/sql/network/delete.rb +++ b/lib/google/sql/network/delete.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/network/get.rb b/lib/google/sql/network/get.rb index cc274f0..a9beaa4 100644 --- a/lib/google/sql/network/get.rb +++ b/lib/google/sql/network/get.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/network/post.rb b/lib/google/sql/network/post.rb index 3aa80cf..bd85e30 100644 --- a/lib/google/sql/network/post.rb +++ b/lib/google/sql/network/post.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/network/put.rb b/lib/google/sql/network/put.rb index 9a6d98f..c7756e4 100644 --- a/lib/google/sql/network/put.rb +++ b/lib/google/sql/network/put.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/array.rb b/lib/google/sql/property/array.rb index 8fee8f6..f4d8eb3 100644 --- a/lib/google/sql/property/array.rb +++ b/lib/google/sql/property/array.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/base.rb b/lib/google/sql/property/base.rb index d22c46d..ce36fc9 100644 --- a/lib/google/sql/property/base.rb +++ b/lib/google/sql/property/base.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/boolean.rb b/lib/google/sql/property/boolean.rb index f1495e7..74f68cf 100644 --- a/lib/google/sql/property/boolean.rb +++ b/lib/google/sql/property/boolean.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/enum.rb b/lib/google/sql/property/enum.rb index 99159c8..c4933a9 100644 --- a/lib/google/sql/property/enum.rb +++ b/lib/google/sql/property/enum.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_authorized_networks.rb b/lib/google/sql/property/instance_authorized_networks.rb index c3211c6..ea084b5 100644 --- a/lib/google/sql/property/instance_authorized_networks.rb +++ b/lib/google/sql/property/instance_authorized_networks.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_failover_replica.rb b/lib/google/sql/property/instance_failover_replica.rb index 43601fa..f28ce95 100644 --- a/lib/google/sql/property/instance_failover_replica.rb +++ b/lib/google/sql/property/instance_failover_replica.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_ip_addresses.rb b/lib/google/sql/property/instance_ip_addresses.rb index 30eb6b7..73f7ace 100644 --- a/lib/google/sql/property/instance_ip_addresses.rb +++ b/lib/google/sql/property/instance_ip_addresses.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_ip_configuration.rb b/lib/google/sql/property/instance_ip_configuration.rb index fdbfe7e..0067bfe 100644 --- a/lib/google/sql/property/instance_ip_configuration.rb +++ b/lib/google/sql/property/instance_ip_configuration.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_mysql_replica_configuration.rb b/lib/google/sql/property/instance_mysql_replica_configuration.rb index 1acb4e7..ba1c6a2 100644 --- a/lib/google/sql/property/instance_mysql_replica_configuration.rb +++ b/lib/google/sql/property/instance_mysql_replica_configuration.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_name.rb b/lib/google/sql/property/instance_name.rb index 435eb1a..0fea23f 100644 --- a/lib/google/sql/property/instance_name.rb +++ b/lib/google/sql/property/instance_name.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_replica_configuration.rb b/lib/google/sql/property/instance_replica_configuration.rb index 845bfdd..5dd7ce8 100644 --- a/lib/google/sql/property/instance_replica_configuration.rb +++ b/lib/google/sql/property/instance_replica_configuration.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/instance_settings.rb b/lib/google/sql/property/instance_settings.rb index d369ed6..e346fbf 100644 --- a/lib/google/sql/property/instance_settings.rb +++ b/lib/google/sql/property/instance_settings.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/integer.rb b/lib/google/sql/property/integer.rb index 3ca7889..ff0bbc6 100644 --- a/lib/google/sql/property/integer.rb +++ b/lib/google/sql/property/integer.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/string.rb b/lib/google/sql/property/string.rb index c502b61..f79ce87 100644 --- a/lib/google/sql/property/string.rb +++ b/lib/google/sql/property/string.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/string_array.rb b/lib/google/sql/property/string_array.rb index 8ea9757..c03fee1 100644 --- a/lib/google/sql/property/string_array.rb +++ b/lib/google/sql/property/string_array.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/sql/property/time.rb b/lib/google/sql/property/time.rb index e3fcaf9..2a7e6e7 100644 --- a/lib/google/sql/property/time.rb +++ b/lib/google/sql/property/time.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/google/string_utils.rb b/lib/google/string_utils.rb index 2557d2d..f229c8b 100644 --- a/lib/google/string_utils.rb +++ b/lib/google/string_utils.rb @@ -48,5 +48,13 @@ def self.symbolize(key) key.to_sym unless key.nil? end # rubocop:enable Style/SafeNavigation + + # Returns all the characters up until the period (.) or returns text + # unchanged if there is no period. + def self.first_sentence(text) + period_pos = text.index(/[\.\?!]/) + return text if period_pos.nil? + text[0, period_pos + 1] + end end end diff --git a/lib/puppet/functions/gsql_instance_ip.rb b/lib/puppet/functions/gsql_instance_ip.rb index 1d6340a..d626f20 100644 --- a/lib/puppet/functions/gsql_instance_ip.rb +++ b/lib/puppet/functions/gsql_instance_ip.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/provider/gsql_database/google.rb b/lib/puppet/provider/gsql_database/google.rb index 4f24122..084a112 100644 --- a/lib/puppet/provider/gsql_database/google.rb +++ b/lib/puppet/provider/gsql_database/google.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/provider/gsql_flag/google.rb b/lib/puppet/provider/gsql_flag/google.rb index 6f826a0..9373f44 100644 --- a/lib/puppet/provider/gsql_flag/google.rb +++ b/lib/puppet/provider/gsql_flag/google.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/provider/gsql_instance/google.rb b/lib/puppet/provider/gsql_instance/google.rb index 4308d7a..0d581d1 100644 --- a/lib/puppet/provider/gsql_instance/google.rb +++ b/lib/puppet/provider/gsql_instance/google.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/provider/gsql_ssl_cert/google.rb b/lib/puppet/provider/gsql_ssl_cert/google.rb index c498f8e..9f10705 100644 --- a/lib/puppet/provider/gsql_ssl_cert/google.rb +++ b/lib/puppet/provider/gsql_ssl_cert/google.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/provider/gsql_tier/google.rb b/lib/puppet/provider/gsql_tier/google.rb index ad7f113..6d43419 100644 --- a/lib/puppet/provider/gsql_tier/google.rb +++ b/lib/puppet/provider/gsql_tier/google.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/provider/gsql_user/google.rb b/lib/puppet/provider/gsql_user/google.rb index bc4fe55..9e19365 100644 --- a/lib/puppet/provider/gsql_user/google.rb +++ b/lib/puppet/provider/gsql_user/google.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/type/gsql_database.rb b/lib/puppet/type/gsql_database.rb index f4055cf..d98eff1 100644 --- a/lib/puppet/type/gsql_database.rb +++ b/lib/puppet/type/gsql_database.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/type/gsql_flag.rb b/lib/puppet/type/gsql_flag.rb index a691b3c..5ce813e 100644 --- a/lib/puppet/type/gsql_flag.rb +++ b/lib/puppet/type/gsql_flag.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/type/gsql_instance.rb b/lib/puppet/type/gsql_instance.rb index 40224ba..49d4bb9 100644 --- a/lib/puppet/type/gsql_instance.rb +++ b/lib/puppet/type/gsql_instance.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/type/gsql_ssl_cert.rb b/lib/puppet/type/gsql_ssl_cert.rb index 9e7a1f0..f0cc56d 100644 --- a/lib/puppet/type/gsql_ssl_cert.rb +++ b/lib/puppet/type/gsql_ssl_cert.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/type/gsql_tier.rb b/lib/puppet/type/gsql_tier.rb index 5941bec..ae1e9a3 100644 --- a/lib/puppet/type/gsql_tier.rb +++ b/lib/puppet/type/gsql_tier.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/lib/puppet/type/gsql_user.rb b/lib/puppet/type/gsql_user.rb index 42ffb8a..81c414d 100644 --- a/lib/puppet/type/gsql_user.rb +++ b/lib/puppet/type/gsql_user.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/.rubocop.yml b/spec/.rubocop.yml index f04e78e..39b5614 100644 --- a/spec/.rubocop.yml +++ b/spec/.rubocop.yml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/bundle.rb b/spec/bundle.rb index f7c2f19..83aa328 100644 --- a/spec/bundle.rb +++ b/spec/bundle.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_database/success1~name.yaml b/spec/data/network/gsql_database/success1~name.yaml index 8f17fe2..fc70f68 100644 --- a/spec/data/network/gsql_database/success1~name.yaml +++ b/spec/data/network/gsql_database/success1~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_database/success1~title.yaml b/spec/data/network/gsql_database/success1~title.yaml index c8eeb83..9e16fbe 100644 --- a/spec/data/network/gsql_database/success1~title.yaml +++ b/spec/data/network/gsql_database/success1~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_database/success2~name.yaml b/spec/data/network/gsql_database/success2~name.yaml index 832b29f..5c0fcaf 100644 --- a/spec/data/network/gsql_database/success2~name.yaml +++ b/spec/data/network/gsql_database/success2~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_database/success2~title.yaml b/spec/data/network/gsql_database/success2~title.yaml index 1bfa38e..b8c04cd 100644 --- a/spec/data/network/gsql_database/success2~title.yaml +++ b/spec/data/network/gsql_database/success2~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_database/success3~name.yaml b/spec/data/network/gsql_database/success3~name.yaml index 4a484d7..e6401ff 100644 --- a/spec/data/network/gsql_database/success3~name.yaml +++ b/spec/data/network/gsql_database/success3~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_database/success3~title.yaml b/spec/data/network/gsql_database/success3~title.yaml index 81be88d..a0f4e0b 100644 --- a/spec/data/network/gsql_database/success3~title.yaml +++ b/spec/data/network/gsql_database/success3~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_flag/success1~name.yaml b/spec/data/network/gsql_flag/success1~name.yaml index 58805c0..7ef244d 100644 --- a/spec/data/network/gsql_flag/success1~name.yaml +++ b/spec/data/network/gsql_flag/success1~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_flag/success1~title.yaml b/spec/data/network/gsql_flag/success1~title.yaml index 2002114..83d5809 100644 --- a/spec/data/network/gsql_flag/success1~title.yaml +++ b/spec/data/network/gsql_flag/success1~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_flag/success2~name.yaml b/spec/data/network/gsql_flag/success2~name.yaml index 22ceec0..3680c22 100644 --- a/spec/data/network/gsql_flag/success2~name.yaml +++ b/spec/data/network/gsql_flag/success2~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_flag/success2~title.yaml b/spec/data/network/gsql_flag/success2~title.yaml index 3757f5d..c1b81b7 100644 --- a/spec/data/network/gsql_flag/success2~title.yaml +++ b/spec/data/network/gsql_flag/success2~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_flag/success3~name.yaml b/spec/data/network/gsql_flag/success3~name.yaml index 1a206c0..51595a2 100644 --- a/spec/data/network/gsql_flag/success3~name.yaml +++ b/spec/data/network/gsql_flag/success3~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_flag/success3~title.yaml b/spec/data/network/gsql_flag/success3~title.yaml index 55cba9f..08a6d95 100644 --- a/spec/data/network/gsql_flag/success3~title.yaml +++ b/spec/data/network/gsql_flag/success3~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_instance/success1~name.yaml b/spec/data/network/gsql_instance/success1~name.yaml index 0f01a55..f3d00c1 100644 --- a/spec/data/network/gsql_instance/success1~name.yaml +++ b/spec/data/network/gsql_instance/success1~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_instance/success1~title.yaml b/spec/data/network/gsql_instance/success1~title.yaml index 2834514..ce652cf 100644 --- a/spec/data/network/gsql_instance/success1~title.yaml +++ b/spec/data/network/gsql_instance/success1~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_instance/success2~name.yaml b/spec/data/network/gsql_instance/success2~name.yaml index e3946bb..1a68bae 100644 --- a/spec/data/network/gsql_instance/success2~name.yaml +++ b/spec/data/network/gsql_instance/success2~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_instance/success2~title.yaml b/spec/data/network/gsql_instance/success2~title.yaml index ecadd65..1ddc0f1 100644 --- a/spec/data/network/gsql_instance/success2~title.yaml +++ b/spec/data/network/gsql_instance/success2~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_instance/success3~name.yaml b/spec/data/network/gsql_instance/success3~name.yaml index e3841d1..4b79593 100644 --- a/spec/data/network/gsql_instance/success3~name.yaml +++ b/spec/data/network/gsql_instance/success3~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_instance/success3~title.yaml b/spec/data/network/gsql_instance/success3~title.yaml index 7a61c6a..66ec67d 100644 --- a/spec/data/network/gsql_instance/success3~title.yaml +++ b/spec/data/network/gsql_instance/success3~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_ssl_cert/success1~name.yaml b/spec/data/network/gsql_ssl_cert/success1~name.yaml index 6d2d36c..98dfc3f 100644 --- a/spec/data/network/gsql_ssl_cert/success1~name.yaml +++ b/spec/data/network/gsql_ssl_cert/success1~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_ssl_cert/success1~title.yaml b/spec/data/network/gsql_ssl_cert/success1~title.yaml index 4beba64..b98e9fd 100644 --- a/spec/data/network/gsql_ssl_cert/success1~title.yaml +++ b/spec/data/network/gsql_ssl_cert/success1~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_ssl_cert/success2~name.yaml b/spec/data/network/gsql_ssl_cert/success2~name.yaml index bd1b7ec..357d680 100644 --- a/spec/data/network/gsql_ssl_cert/success2~name.yaml +++ b/spec/data/network/gsql_ssl_cert/success2~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_ssl_cert/success2~title.yaml b/spec/data/network/gsql_ssl_cert/success2~title.yaml index 7bea0b0..3db4b9a 100644 --- a/spec/data/network/gsql_ssl_cert/success2~title.yaml +++ b/spec/data/network/gsql_ssl_cert/success2~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_ssl_cert/success3~name.yaml b/spec/data/network/gsql_ssl_cert/success3~name.yaml index 8d66aa8..4ae2825 100644 --- a/spec/data/network/gsql_ssl_cert/success3~name.yaml +++ b/spec/data/network/gsql_ssl_cert/success3~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_ssl_cert/success3~title.yaml b/spec/data/network/gsql_ssl_cert/success3~title.yaml index b6e9e03..25ca539 100644 --- a/spec/data/network/gsql_ssl_cert/success3~title.yaml +++ b/spec/data/network/gsql_ssl_cert/success3~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_tier/success1~name.yaml b/spec/data/network/gsql_tier/success1~name.yaml index 899b400..70c941f 100644 --- a/spec/data/network/gsql_tier/success1~name.yaml +++ b/spec/data/network/gsql_tier/success1~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_tier/success1~title.yaml b/spec/data/network/gsql_tier/success1~title.yaml index bdd7754..94c2d55 100644 --- a/spec/data/network/gsql_tier/success1~title.yaml +++ b/spec/data/network/gsql_tier/success1~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_tier/success2~name.yaml b/spec/data/network/gsql_tier/success2~name.yaml index bbe24d2..112d05c 100644 --- a/spec/data/network/gsql_tier/success2~name.yaml +++ b/spec/data/network/gsql_tier/success2~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_tier/success2~title.yaml b/spec/data/network/gsql_tier/success2~title.yaml index b44bec6..55274e4 100644 --- a/spec/data/network/gsql_tier/success2~title.yaml +++ b/spec/data/network/gsql_tier/success2~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_tier/success3~name.yaml b/spec/data/network/gsql_tier/success3~name.yaml index 04b2c70..23df8c1 100644 --- a/spec/data/network/gsql_tier/success3~name.yaml +++ b/spec/data/network/gsql_tier/success3~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_tier/success3~title.yaml b/spec/data/network/gsql_tier/success3~title.yaml index d13fcd2..2b410b7 100644 --- a/spec/data/network/gsql_tier/success3~title.yaml +++ b/spec/data/network/gsql_tier/success3~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_user/success1~name.yaml b/spec/data/network/gsql_user/success1~name.yaml index db9d028..cda5206 100644 --- a/spec/data/network/gsql_user/success1~name.yaml +++ b/spec/data/network/gsql_user/success1~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_user/success1~title.yaml b/spec/data/network/gsql_user/success1~title.yaml index 92dcf08..4505c1b 100644 --- a/spec/data/network/gsql_user/success1~title.yaml +++ b/spec/data/network/gsql_user/success1~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_user/success2~name.yaml b/spec/data/network/gsql_user/success2~name.yaml index 9249d53..bdddb93 100644 --- a/spec/data/network/gsql_user/success2~name.yaml +++ b/spec/data/network/gsql_user/success2~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_user/success2~title.yaml b/spec/data/network/gsql_user/success2~title.yaml index 62f0077..4b877ac 100644 --- a/spec/data/network/gsql_user/success2~title.yaml +++ b/spec/data/network/gsql_user/success2~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_user/success3~name.yaml b/spec/data/network/gsql_user/success3~name.yaml index c731aef..0e0d19d 100644 --- a/spec/data/network/gsql_user/success3~name.yaml +++ b/spec/data/network/gsql_user/success3~name.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/data/network/gsql_user/success3~title.yaml b/spec/data/network/gsql_user/success3~title.yaml index e36b622..d021f42 100644 --- a/spec/data/network/gsql_user/success3~title.yaml +++ b/spec/data/network/gsql_user/success3~title.yaml @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/fake_auth.rb b/spec/fake_auth.rb index d25c9ea..f623941 100644 --- a/spec/fake_auth.rb +++ b/spec/fake_auth.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/gsql_database_provider_spec.rb b/spec/gsql_database_provider_spec.rb index 77f6288..222bc22 100644 --- a/spec/gsql_database_provider_spec.rb +++ b/spec/gsql_database_provider_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/gsql_flag_provider_spec.rb b/spec/gsql_flag_provider_spec.rb index e360974..b49db71 100644 --- a/spec/gsql_flag_provider_spec.rb +++ b/spec/gsql_flag_provider_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/gsql_instance_provider_spec.rb b/spec/gsql_instance_provider_spec.rb index 836624f..f72ea64 100644 --- a/spec/gsql_instance_provider_spec.rb +++ b/spec/gsql_instance_provider_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/gsql_ssl_cert_provider_spec.rb b/spec/gsql_ssl_cert_provider_spec.rb index c453d6c..6683949 100644 --- a/spec/gsql_ssl_cert_provider_spec.rb +++ b/spec/gsql_ssl_cert_provider_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/gsql_tier_provider_spec.rb b/spec/gsql_tier_provider_spec.rb index 19f57f6..386e445 100644 --- a/spec/gsql_tier_provider_spec.rb +++ b/spec/gsql_tier_provider_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/gsql_user_provider_spec.rb b/spec/gsql_user_provider_spec.rb index cdc8790..4a12fed 100644 --- a/spec/gsql_user_provider_spec.rb +++ b/spec/gsql_user_provider_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/network_blocker.rb b/spec/network_blocker.rb index 0585b6b..f24f5cf 100644 --- a/spec/network_blocker.rb +++ b/spec/network_blocker.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/network_blocker_spec.rb b/spec/network_blocker_spec.rb index 2750c11..6fe310f 100644 --- a/spec/network_blocker_spec.rb +++ b/spec/network_blocker_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/network_delete_spec.rb b/spec/network_delete_spec.rb index 1c4b6f4..d0c869a 100644 --- a/spec/network_delete_spec.rb +++ b/spec/network_delete_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/network_get_spec.rb b/spec/network_get_spec.rb index 403773d..9c703cf 100644 --- a/spec/network_get_spec.rb +++ b/spec/network_get_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/network_post_spec.rb b/spec/network_post_spec.rb index a4cefc1..89b87b1 100644 --- a/spec/network_post_spec.rb +++ b/spec/network_post_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/network_put_spec.rb b/spec/network_put_spec.rb index a1f5294..da086df 100644 --- a/spec/network_put_spec.rb +++ b/spec/network_put_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/puppetlint_spec.rb b/spec/puppetlint_spec.rb index bbc2e6e..df17876 100644 --- a/spec/puppetlint_spec.rb +++ b/spec/puppetlint_spec.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a4c575f..68ad0e8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/spec/string_utils_spec.rb b/spec/string_utils_spec.rb index 110b1ee..fa3d20b 100644 --- a/spec/string_utils_spec.rb +++ b/spec/string_utils_spec.rb @@ -19,8 +19,36 @@ it { is_expected.to eq 'someStringWithUnderscores' } end - describe '#underscore' do + context '#underscore' do subject { described_class.underscore('aStringInCamelCase') } it { is_expected.to eq 'a_string_in_camel_case' } end + + context '#first_sentence' do + context 'sentence end with period' do + subject do + described_class.first_sentence('Lorem ipsum. Dolor sit amet. Elit') + end + it { is_expected.to eq 'Lorem ipsum.' } + end + + context 'sentence end with question mark' do + subject do + described_class.first_sentence('Lorem ipsum? Dolor sit amet. Elit') + end + it { is_expected.to eq 'Lorem ipsum?' } + end + + context 'sentence end with exclamation mark' do + subject do + described_class.first_sentence('Lorem ipsum! Dolor sit amet. Elit') + end + it { is_expected.to eq 'Lorem ipsum!' } + end + + context 'no period returns full string' do + subject { described_class.first_sentence('Lorem ipsum dolor') } + it { is_expected.to eq 'Lorem ipsum dolor' } + end + end end diff --git a/spec/test_constants.rb b/spec/test_constants.rb index 01a5cd8..49c1531 100644 --- a/spec/test_constants.rb +++ b/spec/test_constants.rb @@ -1,4 +1,4 @@ -# Copyright 2017 Google Inc. +# 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 diff --git a/tasks/clone.rb b/tasks/clone.rb index 9222c38..f563934 100755 --- a/tasks/clone.rb +++ b/tasks/clone.rb @@ -1,5 +1,5 @@ #!/opt/puppetlabs/puppet/bin/ruby -# Copyright 2017 Google Inc. +# 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 diff --git a/tasks/passwd.rb b/tasks/passwd.rb index 671b9c5..79ca6d8 100755 --- a/tasks/passwd.rb +++ b/tasks/passwd.rb @@ -1,5 +1,5 @@ #!/opt/puppetlabs/puppet/bin/ruby -# Copyright 2017 Google Inc. +# 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