Adjust some test KDM timings so as not to trip the certificate validity period warning.
authorCarl Hetherington <cth@carlh.net>
Mon, 2 Dec 2019 23:52:32 +0000 (00:52 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 2 Dec 2019 23:52:32 +0000 (00:52 +0100)
test/dcp_decoder_test.cc
test/import_dcp_test.cc
test/remake_id_test.cc
test/vf_kdm_test.cc

index 64d35a2..32eed93 100644 (file)
@@ -75,8 +75,8 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
                Config::instance()->decryption_chain()->leaf(),
                vector<string>(),
                encrypted_dcp.cpls().front()->file().get(),
-               dcp::LocalTime ("2014-07-21T00:00:00+00:00"),
-               dcp::LocalTime ("2024-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
                dcp::MODIFIED_TRANSITIONAL_1,
                true, 0
                );
index 71689f6..16ebfa4 100644 (file)
@@ -64,12 +64,13 @@ BOOST_AUTO_TEST_CASE (import_dcp_test)
 
        Config::instance()->set_decryption_chain (shared_ptr<dcp::CertificateChain> (new dcp::CertificateChain (openssl_path ())));
 
+       /* Dear future-carl: I suck!  I thought you wouldn't still be running these tests in 2030!  Sorry! */
        dcp::EncryptedKDM kdm = A->make_kdm (
                Config::instance()->decryption_chain()->leaf (),
                vector<string>(),
                A_dcp.cpls().front()->file().get(),
-               dcp::LocalTime ("2014-07-21T00:00:00+00:00"),
-               dcp::LocalTime ("2024-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
                dcp::MODIFIED_TRANSITIONAL_1,
                true, 0
                );
index 349884f..2a96a14 100644 (file)
@@ -93,8 +93,8 @@ BOOST_AUTO_TEST_CASE (remake_id_test2)
                Config::instance()->decryption_chain()->leaf(),
                vector<string>(),
                *cpl,
-               dcp::LocalTime ("2012-01-01T01:00:00+00:00"),
-               dcp::LocalTime ("2112-01-01T01:00:00+00:00"),
+               dcp::LocalTime ("2030-01-01T01:00:00+00:00"),
+               dcp::LocalTime ("2031-01-01T01:00:00+00:00"),
                dcp::MODIFIED_TRANSITIONAL_1,
                true,
                0
index a28ea5b..f37742c 100644 (file)
@@ -66,8 +66,8 @@ BOOST_AUTO_TEST_CASE (vf_kdm_test)
                Config::instance()->decryption_chain()->leaf (),
                vector<string>(),
                A_dcp.cpls().front()->file().get(),
-               dcp::LocalTime ("2014-07-21T00:00:00+00:00"),
-               dcp::LocalTime ("2024-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
                dcp::MODIFIED_TRANSITIONAL_1,
                true, 0
                );
@@ -96,8 +96,8 @@ BOOST_AUTO_TEST_CASE (vf_kdm_test)
                Config::instance()->decryption_chain()->leaf (),
                vector<string>(),
                B_dcp.cpls().front()->file().get(),
-               dcp::LocalTime ("2014-07-21T00:00:00+00:00"),
-               dcp::LocalTime ("2024-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2030-07-21T00:00:00+00:00"),
+               dcp::LocalTime ("2031-07-21T00:00:00+00:00"),
                dcp::MODIFIED_TRANSITIONAL_1,
                true, 0
                );