You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contains_expected_error=response.errors.include?"Current time is earlier than NotBefore condition 2012-11-20 17:55:00 UTC < 2012-11-28 17:53:45 UTC)"
320
-
contains_expected_error ||= response.errors.include?"Current time is earlier than NotBefore condition Tue Nov 20 17:55:00 UTC 2012 < Wed Nov 28 17:53:45 UTC 2012)"
321
-
assertcontains_expected_error
319
+
time_1='2012-11-20 17:55:00 UTC < 2012-11-28 17:53:45 UTC'
320
+
time_2='Tue Nov 20 17:55:00 UTC 2012 < Wed Nov 28 17:53:45 UTC 2012'
321
+
322
+
errors=[time_1,time_2].mapdo |time|
323
+
"Current time is earlier than NotBefore condition (#{time})"
324
+
end
325
+
326
+
assert_predicateresponse.errors & errors,:any?
322
327
end
323
328
end
324
329
@@ -344,7 +349,7 @@ class XmlSecurityTest < Minitest::Test
344
349
assertdocument.validate_document(fingerprint,true),'Document should be valid'
0 commit comments