lp://staging/~tribaal/landscape-client/fix-1429888-wrong-credentials-stacktrace

Created by Chris Glass and last modified
Get this branch:
bzr branch lp://staging/~tribaal/landscape-client/fix-1429888-wrong-credentials-stacktrace
Only Chris Glass can upload to this branch. If you are Chris Glass please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Chris Glass
Project:
Landscape Client
Status:
Merged

Recent revisions

821. By Chris Glass

The test passes now. Thanks for the insight Bjorn!

820. By Chris Glass

Added test. No idea why this one fails.

819. By Chris Glass

Fixed comments.

818. By Chris Glass

PEP-257

817. By Chris Glass

Made tests more explicit (hopefully)

816. By Chris Glass

Fixed tests.

815. By Chris Glass

This fixes the behavior. We don't need a special-case for this particular
failure mode since it's the only failure mode left (and the "UI" text is already
appropriate). Adding an extra text made the assertion failed (rightfully).

814. By Chris Glass

Turns out the ordering of parameters matters in function calls.

813. By Benji York

Merge bug-1428826-restore-register-function-public-API [f=1428826] [r=adam-collard,bjornt] [a=Benji York]
Instead of running client configuration as an independent executable
(which would have been preferable), the client charm reaches inside and
calls the register() function directly. That has resulted in a
dependency on register()'s API which was not enforced via testing or
documented in register()'s docstring.

This branch restores the API the charm depends on, adds documentation as
to its meaning and importance, and adds tests that will warn us if the
API is broken in the future.

812. By Benji York

Merge better-self-signed-cert-ux-3 [f=] [r=bjornt,danilo] [a=Benji York]
This branch is a pure refactoring of the way the client configuration
communicates so as to separate the UI and network code in preparation
for better SSL error handling and user interaction.

Tests were then able to be improved -- but not as far as we would like.

Notes from Chris:

Most of the code breaks out nested function declaration to make them
easier to test, using functools.partial to keep the invocation sane in a
twisted context (test them "flat", use functools to pass closures to
event handlers).

We used manual stubs instead of mocks for readability and personal
preference [of both of us].

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/~landscape/landscape-client/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers