AckerApple / pdfbox-cli-wrap

A wrapper for making PDFBox CLI commands
MIT License
5 stars 5 forks source link

Timestamp tests fails #4

Closed tknobi closed 6 years ago

tknobi commented 6 years ago

I installed the project on my Linux Mint machine. I'm using Oracle Java 8 (161). I added BouncyCastle into Java Security Extensions. I installed Java Cryptography.

But the timestamp tests fails:

15 passing (26s)
  2 failing

  1) pdfboxCliWrap functionality timestamp signatures #sign:

      AssertionError: false == true
      + expected - actual

      -false
      +true

      at pdfboxCliWrap.sign.then (test/cases/test.js:103:18)
      at process._tickCallback (internal/process/next_tick.js:103:7)

  2) pdfboxCliWrap functionality timestamp signatures #sign(tsa):

      AssertionError: false == true
      + expected - actual

      -false
      +true

      at pdfboxCliWrap.sign.then (test/cases/test.js:118:18)
      at process._tickCallback (internal/process/next_tick.js:103:7)

Any ideas?

AckerApple commented 6 years ago

I am experiencing the same thing as I am building the Appveyor and Travis tests. Being that its a timestamp errror and its been some time since I've updated the tests... I assume its some time related issue.

Looking into it now

AckerApple commented 6 years ago

The fake certificate I am using has expired and the error is NOT being caught.

Working on it now

AckerApple commented 6 years ago

Updated testing process to accommodate that testing certificate may expire.

I still eventually need to update the fake signing certificate but it took too long to update the tests so I will address at a later date.