Support running func tests against non-<account>:<user> auth systems

Bug #1612443 reported by Tim Burke on 2016-08-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)

Bug Description

Our func tests are a little split-brain about whether to support an auth system that doesn't have user ids like <account>:<user>. In setup_package [1] we seem to tolerate it, and a bunch of tests work with such a system, but then a bunch of others (half, give or take?) bomb out with KeyErrors because their test env looks for (say) tf.config['account2'] [2] [3] [4] [5].

I *think* this is just a matter of adding some

 if 'account2' in tf.config:

blocks in the appropriate places?


Alistair Coles (alistair-coles) wrote :

or maybe even changing occurences of = tf.config['account2'] to = tf.config.get('account2') would do it?

Changed in swift:
status: New → Confirmed
tags: added: test
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers