You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/04/28 14:08:58 UTC
[whimsy] branch master updated: Fix up missing test data
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new fc5a0e24 Fix up missing test data
fc5a0e24 is described below
commit fc5a0e24877c74742b2b629fecd132035b17aefe
Author: Sebb <se...@apache.org>
AuthorDate: Thu Apr 28 15:08:52 2022 +0100
Fix up missing test data
---
lib/spec/lib/mail/mlist_spec.rb | 12 ++++++++++--
lib/test/subscriptions/cache/apache.org/members/mod | 1 +
lib/test/subscriptions/cache/apache.org/members/sub | 1 +
lib/test/subscriptions/cache/apache.org/test0/mod | 1 +
lib/test/subscriptions/cache/apache.org/test0/sub | 1 +
lib/test/subscriptions/cache/apache.org/test1/mod | 1 +
lib/test/subscriptions/cache/apache.org/test1/sub | 1 +
lib/test/subscriptions/cache/apache.org/test10/mod | 1 +
lib/test/subscriptions/cache/apache.org/test10/sub | 1 +
lib/test/subscriptions/cache/apache.org/test2/mod | 1 +
lib/test/subscriptions/cache/apache.org/test2/sub | 1 +
lib/test/subscriptions/cache/apache.org/test3/mod | 1 +
lib/test/subscriptions/cache/apache.org/test3/sub | 1 +
lib/test/subscriptions/cache/apache.org/test4/mod | 1 +
lib/test/subscriptions/cache/apache.org/test4/sub | 1 +
lib/test/subscriptions/cache/apache.org/test5/mod | 1 +
lib/test/subscriptions/cache/apache.org/test5/sub | 1 +
lib/test/subscriptions/cache/apache.org/test6/mod | 1 +
lib/test/subscriptions/cache/apache.org/test6/sub | 1 +
lib/test/subscriptions/cache/apache.org/test7/mod | 1 +
lib/test/subscriptions/cache/apache.org/test7/sub | 1 +
lib/test/subscriptions/cache/apache.org/test8/mod | 1 +
lib/test/subscriptions/cache/apache.org/test8/sub | 1 +
lib/test/subscriptions/cache/apache.org/test9/mod | 1 +
lib/test/subscriptions/cache/apache.org/test9/sub | 1 +
25 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/lib/spec/lib/mail/mlist_spec.rb b/lib/spec/lib/mail/mlist_spec.rb
index 6ddc5048..cc777237 100644
--- a/lib/spec/lib/mail/mlist_spec.rb
+++ b/lib/spec/lib/mail/mlist_spec.rb
@@ -30,7 +30,11 @@ describe ASF::MLIST do
subs, stamp = res
expect(subs.class).to eq(Array)
expect(stamp.class).to eq(Time)
- expect(subs.length).to be_between(500, 1000).inclusive
+ if TEST_DATA
+ expect(subs.length).to be_between(1, 10).inclusive
+ else
+ expect(subs.length).to be_between(500, 1000).inclusive
+ end
end
end
@@ -83,7 +87,11 @@ describe ASF::MLIST do
res = ASF::MLIST.subscriptions(user_emails)
expect(res.length).to eq(2)
mods = res[:subscriptions]
- expect(mods.length).to be_between(1000, 1200)
+ if TEST_DATA
+ expect(mods.length).to be_between(10, 20)
+ else
+ expect(mods.length).to be_between(1000, 1200)
+ end
end
describe "ASF::MLIST.each_list" do
diff --git a/lib/test/subscriptions/cache/apache.org/members/mod b/lib/test/subscriptions/cache/apache.org/members/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/members/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/members/sub b/lib/test/subscriptions/cache/apache.org/members/sub
new file mode 100644
index 00000000..f2bd1191
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/members/sub
@@ -0,0 +1 @@
+user1@apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test0/mod b/lib/test/subscriptions/cache/apache.org/test0/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test0/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test0/sub b/lib/test/subscriptions/cache/apache.org/test0/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test0/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test1/mod b/lib/test/subscriptions/cache/apache.org/test1/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test1/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test1/sub b/lib/test/subscriptions/cache/apache.org/test1/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test1/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test10/mod b/lib/test/subscriptions/cache/apache.org/test10/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test10/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test10/sub b/lib/test/subscriptions/cache/apache.org/test10/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test10/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test2/mod b/lib/test/subscriptions/cache/apache.org/test2/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test2/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test2/sub b/lib/test/subscriptions/cache/apache.org/test2/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test2/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test3/mod b/lib/test/subscriptions/cache/apache.org/test3/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test3/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test3/sub b/lib/test/subscriptions/cache/apache.org/test3/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test3/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test4/mod b/lib/test/subscriptions/cache/apache.org/test4/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test4/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test4/sub b/lib/test/subscriptions/cache/apache.org/test4/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test4/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test5/mod b/lib/test/subscriptions/cache/apache.org/test5/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test5/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test5/sub b/lib/test/subscriptions/cache/apache.org/test5/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test5/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test6/mod b/lib/test/subscriptions/cache/apache.org/test6/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test6/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test6/sub b/lib/test/subscriptions/cache/apache.org/test6/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test6/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test7/mod b/lib/test/subscriptions/cache/apache.org/test7/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test7/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test7/sub b/lib/test/subscriptions/cache/apache.org/test7/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test7/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test8/mod b/lib/test/subscriptions/cache/apache.org/test8/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test8/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test8/sub b/lib/test/subscriptions/cache/apache.org/test8/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test8/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test9/mod b/lib/test/subscriptions/cache/apache.org/test9/mod
new file mode 100644
index 00000000..fdf49532
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test9/mod
@@ -0,0 +1 @@
+mod-private@gsuite.cloud.apache.org
diff --git a/lib/test/subscriptions/cache/apache.org/test9/sub b/lib/test/subscriptions/cache/apache.org/test9/sub
new file mode 100644
index 00000000..4088dbfa
--- /dev/null
+++ b/lib/test/subscriptions/cache/apache.org/test9/sub
@@ -0,0 +1 @@
+archiver@mbox-vm.apache.org