• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ChristianTremblay / pyhaystack / 134
39%
master: 40%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 05 Apr 2017 12:19AM UTC
Jobs 5
Files 49
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
134

push

travis-ci

ChristianTremblay
Proposed updates for release 0.92 (#41)

* WC-414: Ensure HTTP header names are US-ASCII encoded.

python-requests does not like it when it sees Unicode here.

* WC-414: client.ops.grid: Ensure grid is encoded

For now, assume UTF-8 encoding since that seems to be the standard being
used elsewhere.

* WC-414: client.ops.vendor.widesky: Fix encoding issues.

Ensure all headers are encoded using US-ASCII encoding.
Ensure all body data is encoded using UTF-8 encoding.

We'll treat passwords as being UTF-8.

* WC-414: client.widesky: Send authorization in US-ASCII encoding.

The authorization header is basically a hash, so US-ASCII is the most
appropriate for this.

* WC-414: client.widesky: Assume already 'unicode' if no 'decode'.

If a string object has no 'decode' method, then assume it is a Unicode
object already.

* WC-414: client.http.base: Use bytes object not str/unicode

* WC-414: client.ops.grid: Use bytes object not str/unicode

* WC-414: base client tests: Fix encoding issues

- Headers should be bytes() objects
- Bodies should be decoded from UTF-8

* WC-414: client entity tests: Fix more encoding issues.

* FIR-214: client.http.base: Assert that we have a content type.

* FIR-214: client.http.base: Add accept_status argument.

This gives us the ability to whitelist specific status codes, instead of
failing normally "bad" codes such as 400, 401, 403 or 404, allowing the
underlying client code to handle it.

* FIR-214: client.http.dummy: Add accept_status logic.

* FIR-214: client.http.sync: Add accept_status logic.

* FIR-214: client.ops.grid: Pass through accept_status

* FIR-214: client.ops.grid: Add hook for detecting session issues.

Firefly will report error 401 if the session is invalid.

* FIR-214: client.widesky: Add hook to detect 401 error.

If we have a 401 error message thrown at us, assume we've been logged
out.  This could be delivered by way of a response or an exception.

We should not raise an exception ourselves, but instead just invalidate
the session.

* FIR-214: client: _on_http_response → _on_http_grid_response.

To imply that it's not just *any* HTTP response this gets called on, but
rather specific responses.

* FIR-214: client.widesky tests: Add test for is_logged_in.

* FIR-214: client.widesky tests: Test 401 drops the session.

* FIR-214: client.session tests: Check _on_http_grid_response gets called.

Add a test that verifies that the function *does* get called when a grid
is requested.

* FIR-214: client.widesky tests: Test other exceptions are ignored.

* client.ops.his: Don't define MetaSeries/MetaDataFrame unless pandas loaded

Otherwise you get stack traces like this when pandas isn't installed:

error	06-Sep-2016 14:45:22	======================================================================
error	06-Sep-2016 14:45:22	ERROR: Attempt to add a single user
error	06-Sep-2016 14:45:22	----------------------------------------------------------------------
error	06-Sep-2016 14:45:22	Traceback (most recent call last):
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
error	06-Sep-2016 14:45:22	    self.test(*self.arg)
error	06-Sep-2016 14:45:22	  File "/mnt/src/tests/test_user_editor_add.py", line 58, in test_add_single_user
error	06-Sep-2016 14:45:22	    core.main(arguments)
error	06-Sep-2016 14:45:22	  File "/mnt/src/widesky_editor/user/core.py", line 35, in main
error	06-Sep-2016 14:45:22	    session = init_haystack(args)
error	06-Sep-2016 14:45:22	  File "/mnt/src/widesky_editor/common.py", line 67, in init_haystack
error	06-Sep-2016 14:45:22	    http_args=http_args, tagging_model=WideSkyTaggingModel)
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/dist-packages/pyhaystack/client/loader.py", line 61, in get_instance
error	06-Sep-2016 14:45:22	    implementation = get_implementation(implementation)
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/dist-packages/pyhaystack/client/loader.py", line 34, in get_implementation
error	06-Sep-2016 14:45:22	    package='pyhaystack.client')
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
error	06-Sep-2016 14:45:22	    __import__(name)
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/dist-packages/pyhaystack/client/widesky.py", line 8, in <module>
error	06-Sep-2016 14:45:22	    from .session import HaystackSession
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/dist-packages/pyhaystack/client/session.py", line 18, in <module>
error	06-Sep-2016 14:45:22	    from .ops import his as his_ops
error	06-Sep-2016 14:45:22	  File "/usr/lib/python2.7/dist-packages/pyhaystack/client/ops/his.py", line 801, in <module>
error	06-Sep-2016 14:45:22	    class MetaSeries(Series):
error	06-Sep-2016 14:45:22	NameError: name 'Series' is not defined

* WC-9: client.ops.vendor.widesky: Version detection tweaks

- Handle non-semver version string
- Prefer moduleVersion over productVersion; newer versions will use this
  over productVersion which will be the "WideSky release".  (like
  Ubuntu's; 16.04.)

* VRT-506: client.http.base: Make headers and cookies case-insensitive.

* VRT-506: client.http.base: Fix `bytes`/`str` issue, initialisation.

989 of 2318 relevant lines covered (42.67%)

2.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 134.1 05 Apr 2017 12:19AM UTC 0
42.54
Travis Job 134.1
2 134.2 05 Apr 2017 12:23AM UTC 0
42.15
Travis Job 134.2
3 134.3 05 Apr 2017 12:19AM UTC 0
42.15
Travis Job 134.3
4 134.4 05 Apr 2017 12:19AM UTC 0
42.15
Travis Job 134.4
5 134.5 05 Apr 2017 12:20AM UTC 0
42.15
Travis Job 134.5
Source Files on build 134
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #134
  • 15cb65c3 on github
  • Prev Build on develop (#123)
  • Next Build on develop (#151)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc