0

Locally I can run Moto just fine. When I run moto unit tests from Jenkins, I get the following error:

NotImplementedError: The /latest/dynamic/instance-identity/pkcs7 metadata path has not been implemented

I am trying to run tests which mock creating an s3 bucket.

5
  • The latest/dynamic/.. is related to EC2 metadata - is Jenkins trying to run other tests than tests which mock creating an s3 bucket.? Commented Jul 20, 2023 at 16:54
  • @BertBlommers yes, there are other unittests, but none for other aws services. Jenkins is running all unit tests under test/.
    – dataviews
    Commented Jul 20, 2023 at 17:02
  • I don't think I should need to run any commands to validate pkcs. All of the tests using s3 are being mocked by moto. Locally I did not have to run anything like the linked you shared.
    – dataviews
    Commented Jul 20, 2023 at 17:04
  • Can you share the full stack trace? Commented Jul 20, 2023 at 17:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.