Diffing string checker

2016-02-24 Thread Andrew Wilkins
Howdy,

Occasionally I'll change a test, and some string equality test will fail
with a wall of text. Sometimes we shouldn't be checking the whole string,
but sometimes it's legitimate to do so, and it can be difficult/tedious to
spot the differences.

I've just written a checker which diffs the two string args, and colourises
the output. You may find it useful. I'm using red/green background, but I
also added bold for insertions, strike-through for deletions, in case
you're red/green colour blind. My terminal doesn't do strike-through, and
your's probably doesn't either. Anyway, the important thing is you can see
the difference between bits that are the same vs. insertions/deletions.

Code is at github.com/axw/fancycheck. Just replace
c.Assert("x", gc.Equals, "y")
with
c.Assert("x", fancycheck.StringEquals, "y")

Cheers,
Andrew
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Re: charmers + openstack-charmers application

2016-02-24 Thread Ryan Beisner
Thank you all.  I appreciate the kind words!

Cheers,

Ryan

On Wed, Feb 24, 2016 at 10:54 AM, Sean Feole 
wrote:

> I'm not a juju-charmer but Ryans work and contributions to the Openstack
> ecosystem are beyond stellar. +1 from me
>
> On Fri, Feb 19, 2016 at 10:14 AM, Ryan Beisner  > wrote:
>
>> Happy Friday, charmers!
>>
>> Please consider my application for membership to ~charmers and an
>> ~openstack-charmers.
>>
>> Over the past two years, I've contributed to each of the 20+ OpenStack
>> charms (and jenkins, ubuntu, mysql, mongodb).  While most of my work has
>> been in the field of charm testing, I've done a load of reviews, bug
>> triage, bug fixes, charm and charm-helper contributions, partner and
>> feature integration and validation.
>>
>> As a ~charm-contributors member, I've watched the broader charm review
>> queue for the proposals where I have specific domain knowledge, and have
>> taken some of those reviews.
>>
>> One of my babies is the Ubuntu OpenStack Charm Integration test
>> automation system (aka UOSCI).  That system continuously gates our Ubuntu
>> OpenStack development activity, charm and package SRU and release
>> processes.  It has deployed and tested ~14,000+ OpenStack clouds in the
>> past ~1yr, plus all of the accompanying amulet, lint, mojo and unit tests.
>>
>> As Juju core approaches and reaches "proposed" in each dev cycle, we flip
>> some bits and hammer on the proposed Juju version in the UOSCI automation
>> as a pre-release cross-validation effort.  Same for MAAS.
>>
>> I've delivered and participated in remote and in-person customer demos of
>> our tool sets and charms, and have given UOS and Charmer Summit demos and
>> talks.  I've made a point over the past year or so to chip in on AskUbuntu,
>> generally with OpenStack-specific questions.
>>
>>
>> I am:
>>  - https://github.com/ryan-beisner
>>  - https://launchpad.net/~1chb1n
>>  - https://launchpad.net/~1chb1n/+karma
>>  - http://askubuntu.com/users/382225/beisner
>>
>> Bugs:
>>  - https://goo.gl/vUsGXN
>>
>> My alternate bot identities work while I sleep:
>>  - https://github.com/uoscibot
>>  - https://launchpad.net/~uosci-testing-bot
>>
>> Other points of interest:
>>  -
>> https://code.launchpad.net/~ost-maintainers/openstack-charm-testing/trunk
>>  -
>> https://code.launchpad.net/~ost-maintainers/openstack-mojo-specs/mojo-openstack-specs
>>  - https://github.com/openstack-charmers
>>  -
>> http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/files/head:/charmhelpers/contrib/openstack/amulet/
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceilometer/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceilometer-agent/next
>>  - https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-osd/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-radosgw/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/cinder/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/cinder-ceph/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/glance/next
>>  - https://code.launchpad.net/~openstack-charmers/charms/trusty/heat/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/keystone/next
>>  - https://code.launchpad.net/~openstack-charmers/charms/trusty/lxd/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/neutron-api/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/neutron-gateway/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/neutron-openvswitch/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/nova-cloud-controller/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/nova-compute/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/openstack-dashboard/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/percona-cluster/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/rabbitmq-server/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/swift-proxy/next
>>  -
>> https://code.launchpad.net/~openstack-charmers/charms/trusty/swift-storage/next
>>
>>
>> Thanks for all the great tools, and thank you for your consideration.
>>
>> Cheers & happy charming!
>>
>> Ryan Beisner
>>
>>
>> --
>> Juju mailing list
>> Juju@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: charmers + openstack-charmers application

2016-02-24 Thread Sean Feole
I'm not a juju-charmer but Ryans work and contributions to the Openstack
ecosystem are beyond stellar. +1 from me

On Fri, Feb 19, 2016 at 10:14 AM, Ryan Beisner 
wrote:

> Happy Friday, charmers!
>
> Please consider my application for membership to ~charmers and an
> ~openstack-charmers.
>
> Over the past two years, I've contributed to each of the 20+ OpenStack
> charms (and jenkins, ubuntu, mysql, mongodb).  While most of my work has
> been in the field of charm testing, I've done a load of reviews, bug
> triage, bug fixes, charm and charm-helper contributions, partner and
> feature integration and validation.
>
> As a ~charm-contributors member, I've watched the broader charm review
> queue for the proposals where I have specific domain knowledge, and have
> taken some of those reviews.
>
> One of my babies is the Ubuntu OpenStack Charm Integration test automation
> system (aka UOSCI).  That system continuously gates our Ubuntu OpenStack
> development activity, charm and package SRU and release processes.  It has
> deployed and tested ~14,000+ OpenStack clouds in the past ~1yr, plus all of
> the accompanying amulet, lint, mojo and unit tests.
>
> As Juju core approaches and reaches "proposed" in each dev cycle, we flip
> some bits and hammer on the proposed Juju version in the UOSCI automation
> as a pre-release cross-validation effort.  Same for MAAS.
>
> I've delivered and participated in remote and in-person customer demos of
> our tool sets and charms, and have given UOS and Charmer Summit demos and
> talks.  I've made a point over the past year or so to chip in on AskUbuntu,
> generally with OpenStack-specific questions.
>
>
> I am:
>  - https://github.com/ryan-beisner
>  - https://launchpad.net/~1chb1n
>  - https://launchpad.net/~1chb1n/+karma
>  - http://askubuntu.com/users/382225/beisner
>
> Bugs:
>  - https://goo.gl/vUsGXN
>
> My alternate bot identities work while I sleep:
>  - https://github.com/uoscibot
>  - https://launchpad.net/~uosci-testing-bot
>
> Other points of interest:
>  -
> https://code.launchpad.net/~ost-maintainers/openstack-charm-testing/trunk
>  -
> https://code.launchpad.net/~ost-maintainers/openstack-mojo-specs/mojo-openstack-specs
>  - https://github.com/openstack-charmers
>  -
> http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/files/head:/charmhelpers/contrib/openstack/amulet/
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceilometer/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceilometer-agent/next
>  - https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-osd/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-radosgw/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/cinder/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/cinder-ceph/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/glance/next
>  - https://code.launchpad.net/~openstack-charmers/charms/trusty/heat/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/keystone/next
>  - https://code.launchpad.net/~openstack-charmers/charms/trusty/lxd/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/neutron-api/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/neutron-gateway/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/neutron-openvswitch/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/nova-cloud-controller/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/nova-compute/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/openstack-dashboard/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/percona-cluster/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/rabbitmq-server/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/swift-proxy/next
>  -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/swift-storage/next
>
>
> Thanks for all the great tools, and thank you for your consideration.
>
> Cheers & happy charming!
>
> Ryan Beisner
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


Re: charmers + openstack-charmers application

2016-02-24 Thread Adam Israel
Ryan has been a consistent contributor to the ecosystem, OpenStack and
otherwise, for as long as I've known him. Making him an official Charmer is
long overdue. You have my +1.

On Wed, Feb 24, 2016 at 11:13 AM Matt Bruzek 
wrote:

> I know Ryan to be an excellent member of the OpenStack charmers group, and
> would be happy to have him as part of charmers.
>
> +1 from me
>
> Now if he could give me the secret filter so I don't get all those osci
> emails that would be great.
>
>- Matt Bruzek 
>
> On Mon, Feb 22, 2016 at 8:09 AM, Corey Bryant 
> wrote:
>
>> Ryan is has made some great contributions to the OpenStack charms
>> particularly in the testing realm and has played a huge role in ensuring
>> the code remains stable.  I'm only an OpenStack charmer myself, so +1
>> for openstack-charmers.
>>
>> On Fri, Feb 19, 2016 at 10:24 AM, Billy Olsen 
>> wrote:
>>
>>> I'm not a Juju Charmer, but I am an OpenStack Charmer and Ryan's
>>> contributions have been invaluable. A very big +1 from me.
>>>
>>> On Fri, Feb 19, 2016 at 8:23 AM, José Antonio Rey 
>>> wrote:
>>>
 Hey Ryan,

 I'm glad to see your application! You've definitely made valuable
 contributions in the past months, and I'm very familiar with all the hard
 work you've put into the charm ecosystem.

 I'm more than happy to give you a +1 on my side. Thanks for all the
 work you do!


 On 02/19/2016 10:14 AM, Ryan Beisner wrote:

> Happy Friday, charmers!
>
> Please consider my application for membership to ~charmers and an
> ~openstack-charmers.
>
> Over the past two years, I've contributed to each of the 20+ OpenStack
> charms (and jenkins, ubuntu, mysql, mongodb).  While most of my work
> has
> been in the field of charm testing, I've done a load of reviews, bug
> triage, bug fixes, charm and charm-helper contributions, partner and
> feature integration and validation.
>
> As a ~charm-contributors member, I've watched the broader charm review
> queue for the proposals where I have specific domain knowledge, and
> have
> taken some of those reviews.
>
> One of my babies is the Ubuntu OpenStack Charm Integration test
> automation system (aka UOSCI).  That system continuously gates our
> Ubuntu OpenStack development activity, charm and package SRU and
> release
> processes.  It has deployed and tested ~14,000+ OpenStack clouds in the
> past ~1yr, plus all of the accompanying amulet, lint, mojo and unit
> tests.
>
> As Juju core approaches and reaches "proposed" in each dev cycle, we
> flip some bits and hammer on the proposed Juju version in the UOSCI
> automation as a pre-release cross-validation effort.  Same for MAAS.
>
> I've delivered and participated in remote and in-person customer demos
> of our tool sets and charms, and have given UOS and Charmer Summit
> demos
> and talks.  I've made a point over the past year or so to chip in on
> AskUbuntu, generally with OpenStack-specific questions.
>
>
> I am:
>   - https://github.com/ryan-beisner
>   - https://launchpad.net/~1chb1n
>   - https://launchpad.net/~1chb1n/+karma
>   - http://askubuntu.com/users/382225/beisner
>
> Bugs:
>   - https://goo.gl/vUsGXN
>
> My alternate bot identities work while I sleep:
>   - https://github.com/uoscibot
>   - https://launchpad.net/~uosci-testing-bot
>
> Other points of interest:
>   -
>
> https://code.launchpad.net/~ost-maintainers/openstack-charm-testing/trunk
>   -
>
> https://code.launchpad.net/~ost-maintainers/openstack-mojo-specs/mojo-openstack-specs
>   - https://github.com/openstack-charmers
>   -
>
> http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/files/head:/charmhelpers/contrib/openstack/amulet/
>   -
>
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceilometer/next
>   -
>
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceilometer-agent/next
>   -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph/next
>   -
>
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-osd/next
>   -
>
> https://code.launchpad.net/~openstack-charmers/charms/trusty/ceph-radosgw/next
>   -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/cinder/next
>   -
>
> https://code.launchpad.net/~openstack-charmers/charms/trusty/cinder-ceph/next
>   -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/glance/next
>   -
> https://code.launchpad.net/~openstack-charmers/charms/trusty/heat/next
>   -
>
>