Commit 98447f4a authored by Stan Hu's avatar Stan Hu

Merge branch 'remove-pseudo-manifest' into 'master'

Remove pseudonymization from manifest

See merge request gitlab-org/gitlab-ee!8213
parents 2aefff27 da5b5dc2
This diff is collapsed.
......@@ -76,7 +76,7 @@ describe Pseudonymizer::Dumper do
it "all whitelisted attributes exist" do
options.config['tables'].each do |table, table_def|
whitelisted = table_def['whitelist']
whitelisted = table_def.fetch('whitelist', [])
existing_columns = ActiveRecord::Base.connection.columns(table.to_sym).map(&:name)
diff = whitelisted - existing_columns
......@@ -86,8 +86,8 @@ describe Pseudonymizer::Dumper do
it "all pseudonymized attributes are whitelisted" do
options.config['tables'].each do |table, table_def|
whitelisted = table_def['whitelist']
pseudonymized = table_def['pseudo']
whitelisted = table_def.fetch('whitelist', [])
pseudonymized = table_def.fetch('pseudo', [])
diff = pseudonymized - whitelisted
expect(diff).to be_empty, "#{table} should whitelist columns #{pseudonymized.inspect}: missing #{diff.inspect}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment