Permalink
Switch branches/tags
Nothing to show
Commits on Jan 15, 2013
  1. Forgot nose

    Kevin L. Mitchell committed Jan 15, 2013
    In the workaround for the {[testenv]deps} issue, I forgot to include
    "nose" in the list of dependencies added to the other sections.  This
    broke the "cover" environment.
  2. Hard-code time zone

    Kevin L. Mitchell committed Jan 15, 2013
    Turns out that, in Python 2.6, time.strftime("%z") will try hard
    to format the correct timezone, even in the face of using
    time.gmtime() to use UTC.  Hardcoding the time zone value in the
    format string to make this do the right thing.
  3. Minor deps fix-up

    Kevin L. Mitchell committed Jan 15, 2013
    Rackspace's internal build procedure uses a version of tox that
    doesn't understand the syntax for interpolating variables from
    another section.  Work around it by simply duplicating the
    dependencies configuration.
Commits on Jan 11, 2013
  1. Bump to Beta status

    Kevin L. Mitchell committed Jan 11, 2013
  2. Add function tests for proper proxy handling.

    Kevin L. Mitchell committed Jan 11, 2013
  3. Fix a bug with the format of bark.useragent_ip

    Kevin L. Mitchell committed Jan 11, 2013
    The proxy processing code placed the raw IPAddress object into the
    bark.useragent_ip key of the WSGI environment, instead of converting
    it to a string.  This could not be discovered in the unit test, since
    proxy._parse_ip() was mocked out.
  4. Document format strings and extending Bark.

    Kevin L. Mitchell committed Jan 11, 2013
Commits on Jan 10, 2013
  1. Make sure WSGI environment values are stringified.

    Kevin L. Mitchell committed Jan 10, 2013
  2. Add documentation for the proxy validation system.

    Kevin L. Mitchell committed Jan 10, 2013
  3. Document configuration of bark.

    Kevin L. Mitchell committed Jan 10, 2013
  4. Mock out the conversion cache

    Kevin L. Mitchell committed Jan 10, 2013
    The function tests need to mock out the format conversion cache, in
    order to prevent poisoning it when running the full test suite.
  5. Fix a default

    Kevin L. Mitchell committed Jan 10, 2013
    The syslog_handler() argument "facility" must default to a facility
    number, not the name of one.
Commits on Jan 9, 2013
  1. Construct a basic function test for bark.

    Kevin L. Mitchell committed Jan 9, 2013
  2. Eliminate an import loop

    Kevin L. Mitchell committed Jan 9, 2013
    Turns out handlers.py imports middleware.py, which causes an import
    loop when nose imports test_middleware.py all by itself.  Eliminate
    the import loop by using wrap_log_handler() instead of
    BarkMiddleware.__call__().  (This is less than ideal, but the log
    record fields we're trying to fill don't really make sense anyway.)
  3. Pass positional arguments to cover environment.

    Kevin L. Mitchell committed Jan 9, 2013
Commits on Jan 8, 2013
  1. Move unit tests into unit subdirectory

    Kevin L. Mitchell committed Jan 8, 2013
    This allows for the creation of a function subdirectory to contain
    function tests.
  2. Complete remaining tests on bark_filter()

    Kevin L. Mitchell committed Jan 8, 2013
    Create the tests necessary to completely unit test the bark_filter()
    function.  This completes the unit test suite for bark.
  3. Don't cover continue

    Kevin L. Mitchell committed Jan 8, 2013
    It seems that coverage checking doesn't properly count the continue
    statement, so mark it for exception from coverage statistics.
  4. Fix a typo and test return value of filter.

    Kevin L. Mitchell committed Jan 8, 2013
  5. Test that LOG.warn() isn't called in the no-config case.

    Kevin L. Mitchell committed Jan 8, 2013
  6. Start tests for middleware.py

    Kevin L. Mitchell committed Jan 8, 2013
    Includes the full test suite for BarkMiddleware and a first test
    case for bark_filter(), which is more complicated anyway.
Commits on Dec 21, 2012
  1. Complete tests on proxy processing.

    Kevin L. Mitchell committed Dec 21, 2012
  2. If all proxies are valid, remote the header entirely.

    Kevin L. Mitchell committed Dec 21, 2012
  3. Walk the proxy list.

    Kevin L. Mitchell committed Dec 21, 2012
  4. Add returns for testing purposes

    Kevin L. Mitchell committed Dec 21, 2012
    For testing purposes, ProxyConfig.__call__() now has return values.
  5. Make sure to eliminate empty entries in useragents.

    Kevin L. Mitchell committed Dec 21, 2012
  6. Add tests on ProxyConfig.__init__().

    Kevin L. Mitchell committed Dec 21, 2012
  7. Update tests.

    Kevin L. Mitchell committed Dec 21, 2012
  8. Proxy is passed an IPAddress; no need to double-convert it.

    Kevin L. Mitchell committed Dec 21, 2012
  9. Strip whitespace off an IP address.

    Kevin L. Mitchell committed Dec 21, 2012
  10. Add tests on _parse_ip() and Proxy.

    Kevin L. Mitchell committed Dec 21, 2012
  11. Replace permitted() with __contains__()

    Kevin L. Mitchell committed Dec 21, 2012
    This also makes use of the new logic, predicated on accepted and
    excluded, instead of a single set remotes.
  12. Can't compute remotes using set manipulation

    Kevin L. Mitchell committed Dec 21, 2012
    I speculate the set sizes were too large, or something equally
    obvious.  Solution was to split remotes into accepted and
    excluded.
  13. Can't handle IPRange as an element of an IPSet.

    Kevin L. Mitchell committed Dec 21, 2012
  14. Add the proxy validation logic.

    Kevin L. Mitchell committed Dec 21, 2012