Test issues with 4.0.1 and patch from !377
Out of nowhere I suddenly have again issues with the tests of schleuder while running them during packaging schleuder for archlinux:
Created database 'db/test.sqlite3'
Randomized with seed 248
...........................................................................................................................................................................................................F...............................................................................................................................................................................................................................................................F................................................................................
Failures:
1) user sends keyword x-fetch-key with email address
Failure/Error: expect(list.keys.size).to eql(list_keys_num + 1)
expected: 2
got: 1
(compared using eql?)
# ./spec/schleuder/integration/keywords_spec.rb:1291:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:48:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:47:in `block (2 levels) in <top (required)>'
2) Schleuder::List#fetch_keys fetches one key by email address
Failure/Error: expect(output).to match(/This key was fetched \(new key\):\n0x98769E8A1091F36BD88403ECF71A3F8412D83889 bla@foo \d{4}-\d{2}-\d{2} \[expired: \d{4}-\d{2}-\d{2}\]/)
expected "Fetching admin@example.org did not succeed:\ngpg: error retrieving 'admin@example.org' via keyserver: Invalid user ID\n\ngpg: error reading key: Invalid user ID\n" to match /This key was fetched \(new key\):\n0x98769E8A1091F36BD88403ECF71A3F8412D83889 bla@foo \d{4}-\d{2}-\d{2} \[expired: \d{4}-\d{2}-\d{2}\]/
Diff:
@@ -1,4 +1,7 @@
-/This key was fetched \(new key\):\n0x98769E8A1091F36BD88403ECF71A3F8412D83889 bla@foo \d{4}-\d{2}-\d{2} \[expired: \d{4}-\d{2}-\d{2}\]/
+Fetching admin@example.org did not succeed:
+gpg: error retrieving 'admin@example.org' via keyserver: Invalid user ID
+
+gpg: error reading key: Invalid user ID
# ./spec/schleuder/unit/list_spec.rb:558:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:48:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:47:in `block (2 levels) in <top (required)>'
Finished in 5 minutes 51 seconds (files took 1.83 seconds to load)
540 examples, 2 failures
Failed examples:
rspec ./spec/schleuder/integration/keywords_spec.rb:1258 # user sends keyword x-fetch-key with email address
rspec ./spec/schleuder/unit/list_spec.rb:546 # Schleuder::List#fetch_keys fetches one key by email address
Randomized with seed 248
I'm using release https://0xacab.org/schleuder/schleuder/-/tags/schleuder-4.0.1 and a self-written patch file containing the changes from !377 (merged) ( https://aur.archlinux.org/cgit/aur.git/tree/rspec.patch?h=schleuder ).
These tests were working, when I released the 4.0.1 package ( https://aur.archlinux.org/packages/schleuder/ ), but now that I want to do some improvements to the package I'm faced with above errors.