Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-3589

Cloudwatch unit test makes HTTP request to the external Internet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • None
    • Server - Core
    • None

      This isn't a huge deal, but all unit tests should work with local networking disabled, so that an external server failure doesn't cause a test failure. Currently, running the tests with networking disabled turns up a test that makes a request to an Amazon server:

       

      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
          self.test(*self.arg)
        File "/home/leonardr/simplified/circulation/core/tests/test_log.py", line 294, in test_cloudwatch_initialization_exception
          eq_('Error creating logger AWS Cloudwatch Logs Unable to locate credentials', error)
      AssertionError: 'Error creating logger AWS Cloudwatch Logs Unable to locate credentials' != u'Error creating logger AWS Cloudwatch Logs Could not connect to the endpoint URL: "https://logs.us-west-2.amazonaws.com/"'
      

       

            Unassigned Unassigned
            leonardrichardson Leonard Richardson [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: