Functional tests use x-auth-token rather than x-storage-token

This change allows other auth systems to test against the functests but not
require them to support x-storage-token (which was deprecated before swift
was even open-sourced). All other places in the code where x-storage-token is
used is only to populate x-auth-token if x-auth-token doesn't already exist.

Change-Id: Ie903d0f7135fc643353b74a61c14becf7dfc4d9d
This commit is contained in:
John Dickinson 2012-12-26 13:41:46 -08:00
parent 6b8ae93f2e
commit dc8d0e0692

View File

@ -146,7 +146,7 @@ class Connection(object):
for hdr in response.getheaders():
if hdr[0].lower() == "x-storage-url":
storage_url = hdr[1]
elif hdr[0].lower() == "x-storage-token":
elif hdr[0].lower() == "x-auth-token":
storage_token = hdr[1]
if not (storage_url and storage_token):