[DRE-commits] [ruby-certificate-authority] 04/06: patch signing request test to have correctly generated CSR

Micah Anderson micah at moszumanska.debian.org
Fri Dec 9 22:23:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

micah pushed a commit to branch master
in repository ruby-certificate-authority.

commit 97d7d990a3bb69b9dc0c7249c76ac9d13e8c270b
Author: Micah Anderson <micah at riseup.net>
Date:   Mon Dec 5 18:57:39 2016 -0500

    patch signing request test to have correctly generated CSR
---
 debian/changelog                     |  1 +
 debian/patches/003_fix_generated_csr | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 34 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8706dfa..5a5435c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ ruby-certificate-authority (0.2.0~6dd483bf-1) unstable; urgency=medium
   * Add ruby-coveralls dependency
   * Bump standards version
   * Disable pkcs#11 Pkey ref tests due to #846548
+  * Patch signing request test to match generated CSR
 
  -- Micah Anderson <micah at debian.org>  Thu, 01 Dec 2016 23:00:00 -0500
 
diff --git a/debian/patches/003_fix_generated_csr b/debian/patches/003_fix_generated_csr
new file mode 100644
index 0000000..8bfc0d1
--- /dev/null
+++ b/debian/patches/003_fix_generated_csr
@@ -0,0 +1,32 @@
+Description: Fix incorrect CSR which has been wrong for more than 3 years in tests
+Author: Micah Anderson <micah at debian.org>
+Forwarded: Yes
+Last-Update: 2016-12-05
+
+Index: ruby-certificate-authority/spec/units/signing_request_spec.rb
+===================================================================
+--- ruby-certificate-authority.orig/spec/units/signing_request_spec.rb	2016-12-09 17:16:23.844629029 -0500
++++ ruby-certificate-authority/spec/units/signing_request_spec.rb	2016-12-09 17:17:26.511086875 -0500
+@@ -124,14 +124,14 @@
+     it "should generate a CSR" do
+       expected =<<EOF
+ -----BEGIN CERTIFICATE REQUEST-----
+-MIIBUDCBugIAMBQxEjAQBgNVBAMMCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEF
+-AAOBjQAwgYkCgYEAsYhlX0a3/dAh5r12vl2FhOJuy2dbJXOnMSGMiIGbkOU/AHql
+-GpG8mGOMDFEdoGeKQz7P1hrPH1uuqtt6ph0q9W0Oh2i/M52w+1C/yIosolvCNdaK
+-264YpiMdQOtOqovP9IEHPh/OdYM1LrHecYCj9l/qD8WMd1Rt3aZLC5zStSMCAwEA
+-ATANBgkqhkiG9w0BAQ0FAAOBgQACWe6Eyl5XDKgvUS9PUBnATpag2joaRDgc1qxU
+-FTkA7VX3GcnDFqnu1bj8kE7Ej7KBUybSJoSlfZrTxT1GsZ1tubzBeWsYdY1LctU2
+-5a/fyqvMg/m2DQaMK5oupJNuAvihmVCM0I1qjmDregeAqz94iki8YgAbG6q/NnyT
+-YK3KbQ==
++MIIBUTCBuwIBADAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEB
++BQADgY0AMIGJAoGBALGIZV9Gt/3QIea9dr5dhYTibstnWyVzpzEhjIiBm5DlPwB6
++pRqRvJhjjAxRHaBnikM+z9Yazx9brqrbeqYdKvVtDodovzOdsPtQv8iKLKJbwjXW
++ituuGKYjHUDrTqqLz/SBBz4fznWDNS6x3nGAo/Zf6g/FjHdUbd2mSwuc0rUjAgMB
++AAEwDQYJKoZIhvcNAQENBQADgYEAZWLXHmJJyHz+9AdWUJ3U3pLHR/ghA1f3Ihyu
++2PuYvwqfnGfGTA8DUnQx7l7J6ATIn76SBadmOquBBbbuhJG05WfKZt0oqCAPdsIa
++XBlLOqVQmWR7YfwPc8CxclIYt1+HyCmBndXIDvGR0JO8/lEdSObZQYHV197hWOay
++reDW940=
+ -----END CERTIFICATE REQUEST-----
+ EOF
+       expect(@csr.to_pem).to eq(expected)
diff --git a/debian/patches/series b/debian/patches/series
index 4bc49d1..a147e05 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 001_upgrade-spec-to-rspec3.patch
 002_disable_pkcs11_pkey_ref
+003_fix_generated_csr

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-certificate-authority.git



More information about the Pkg-ruby-extras-commits mailing list