Skip to content

Commit

Permalink
Remove domain access that fails to work
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Feb 13, 2019
1 parent 71be7e8 commit 10c31ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ describe google_bigquery_dataset(project: <%= doc_generation ? "#{gcp_project_id
its('default_table_expiration_ms') { should cmp <%= doc_generation ? "'#{dataset['default_table_expiration_ms']}'" : "dataset['default_table_expiration_ms']" -%> }
end

describe.one do
google_bigquery_dataset(project: <%= doc_generation ? "#{gcp_project_id}" : "gcp_project_id" -%>, name: <%= doc_generation ? "'#{dataset['dataset_id']}'" : "dataset['dataset_id']" -%>).access.each do |dataset_access|
describe dataset_access do
its('role') { should eq <%= doc_generation ? "'#{dataset['access_reader_role']}'" : "dataset['access_reader_role']" -%> }
its('domain') { should eq <%= doc_generation ? "'#{dataset['access_reader_domain']}'" : "dataset['access_reader_domain']" -%> }
end
end
end

describe.one do
google_bigquery_dataset(project: <%= doc_generation ? "#{gcp_project_id}" : "gcp_project_id" -%>, name: <%= doc_generation ? "'#{dataset['dataset_id']}'" : "dataset['dataset_id']" -%>).access.each do |dataset_access|
describe dataset_access do
Expand Down
9 changes: 2 additions & 7 deletions templates/inspec/tests/integration/build/gcp-mm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -412,17 +412,12 @@ resource "google_bigquery_dataset" "gcp-inspec-dataset" {
default_table_expiration_ms = "${var.dataset["default_table_expiration_ms"]}"

access {
role = "${var.dataset["access_reader_role"]}"
domain = "${var.dataset["access_reader_domain"]}"
}

access {
role = "${var.dataset["access_writer_role"]}"
role = "${var.dataset["access_writer_role"]}"
special_group = "${var.dataset["access_writer_special_group"]}"
}

access {
role = "OWNER"
role = "OWNER"
special_group = "projectOwners"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ dataset:
description: Test BigQuery dataset description
location: EU
default_table_expiration_ms: 3600000
access_reader_role: READER
access_reader_domain: example.com
access_writer_role: WRITER
access_writer_special_group: projectWriters

Expand Down

0 comments on commit 10c31ac

Please sign in to comment.