Skip to content

Commit

Permalink
Remove container cluster password from test for VCR reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Jan 2, 2020
1 parent f561cc1 commit 76318c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
<% gcp_kube_cluster_zone_extra1 = "#{external_attribute('gcp_kube_cluster_zone_extra1', doc_generation)}" -%>
<% gcp_kube_cluster_zone_extra2 = "#{external_attribute('gcp_kube_cluster_zone_extra2', doc_generation)}" -%>
<% gcp_kube_cluster_master_user = "#{external_attribute('gcp_kube_cluster_master_user', doc_generation)}" -%>
<% gcp_kube_cluster_master_pass = "#{external_attribute('gcp_kube_cluster_master_pass', doc_generation)}" -%>
describe google_container_cluster(project: <%= gcp_project_id -%>, location: <%= gcp_kube_cluster_zone -%>, name: <%= gcp_kube_cluster_name -%>) do
it { should exist }
its('locations.sort'){ should cmp [ <%= gcp_kube_cluster_zone -%>, <%= gcp_kube_cluster_zone_extra1 -%>, <%= gcp_kube_cluster_zone_extra2 -%> ].sort }

its('master_auth.username') { should eq <%= gcp_kube_cluster_master_user -%> }
its('master_auth.password') { should eq <%= gcp_kube_cluster_master_pass -%> }
end

describe google_container_cluster(project: <%= gcp_project_id -%>, location: <%= gcp_kube_cluster_zone -%>, name: 'nonexistent') do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ gcp_kube_cluster_zone = attribute(:gcp_kube_cluster_zone, default: '<%= external
gcp_kube_cluster_size = attribute(:gcp_kube_cluster_size, default: '<%= external_attribute('gcp_kube_cluster_size') -%>', description: 'GCP container cluster size')
gcp_kube_cluster_zone_extra1 = attribute(:gcp_kube_cluster_zone_extra1, default: '<%= external_attribute('gcp_kube_cluster_zone_extra1') -%>', description: 'First extra zone for the cluster')
gcp_kube_cluster_zone_extra2 = attribute(:gcp_kube_cluster_zone_extra2, default: '<%= external_attribute('gcp_kube_cluster_zone_extra2') -%>', description: 'Second extra zone for the cluster')
gcp_kube_cluster_master_user = attribute(:gcp_kube_cluster_master_user, default: '<%= external_attribute('gcp_kube_cluster_master_user') -%>', description: 'GCP container cluster admin username')
gcp_kube_cluster_master_pass = attribute(:gcp_kube_cluster_master_pass, default: '<%= external_attribute('gcp_kube_cluster_master_pass') -%>', description: 'GCP container cluster admin password')
gcp_kube_cluster_master_user = attribute(:gcp_kube_cluster_master_user, default: '<%= external_attribute('gcp_kube_cluster_master_user') -%>', description: 'GCP container cluster admin username')
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ def single_port_matches(rule_port, single_port)
end

def log_config_enabled?
return false if !defined?(log_config) || !defined?(log_config.enable)
log_config.enable
return false if !defined?(log_config) || !defined?(log_config.enable_logging)
log_config.enable_logging
end

0 comments on commit 76318c1

Please sign in to comment.