about summary refs log tree commit diff
path: root/spec/fixtures/files
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-18 16:20:52 +0100
committerGitHub <noreply@github.com>2023-01-18 16:20:52 +0100
commitfcc4c9b34a6ab771c9cef6673e817866773e12d0 (patch)
tree5c01eb573c0da1b549531091b25649235a571480 /spec/fixtures/files
parent302fcb9788b63bf50fa8e3452626402ccbd8522a (diff)
Change domain block CSV parsing to be more robust and handle more lists (#21470)
* Change domain block CSV parsing to be more robust and handle more lists

* Add some tests

* Improve domain block import validation and reporting
Diffstat (limited to 'spec/fixtures/files')
-rw-r--r--spec/fixtures/files/domain_blocks.csv6
-rw-r--r--spec/fixtures/files/domain_blocks_list.txt3
2 files changed, 6 insertions, 3 deletions
diff --git a/spec/fixtures/files/domain_blocks.csv b/spec/fixtures/files/domain_blocks.csv
index 28ffb9175..9dbfb4eaf 100644
--- a/spec/fixtures/files/domain_blocks.csv
+++ b/spec/fixtures/files/domain_blocks.csv
@@ -1,4 +1,4 @@
 #domain,#severity,#reject_media,#reject_reports,#public_comment,#obfuscate
-bad.domain,silence,false,false,bad,false
-worse.domain,suspend,true,true,worse,true
-reject.media,noop,true,false,reject media,false
+bad.domain,silence,false,false,bad server,false
+worse.domain,suspend,true,true,worse server,true
+reject.media,noop,true,false,reject media and test unicode characters ♥,false
diff --git a/spec/fixtures/files/domain_blocks_list.txt b/spec/fixtures/files/domain_blocks_list.txt
new file mode 100644
index 000000000..7b6b24253
--- /dev/null
+++ b/spec/fixtures/files/domain_blocks_list.txt
@@ -0,0 +1,3 @@
+bad.domain
+worse.domain
+reject.media