Add 'methods' to all v3 test tokens
methods is a required field of v3 tokens but none of the sample tokens have them. This field is required for determining the difference between a v2 and a v3 AccessInfo object. Change-Id: I4d45e90f24eeb2f35451549771ad999628619c20
This commit is contained in:
@@ -265,6 +265,7 @@ class Examples(fixtures.Fixture):
|
||||
self.v3_UUID_TOKEN_DEFAULT: {
|
||||
'token': {
|
||||
'expires_at': '2020-01-01T00:00:10.000123Z',
|
||||
'methods': ['password'],
|
||||
'user': {
|
||||
'id': 'user_id1',
|
||||
'name': 'user_name1',
|
||||
@@ -291,6 +292,7 @@ class Examples(fixtures.Fixture):
|
||||
self.v3_UUID_TOKEN_UNSCOPED: {
|
||||
'token': {
|
||||
'expires_at': '2020-01-01T00:00:10.000123Z',
|
||||
'methods': ['password'],
|
||||
'user': {
|
||||
'id': 'user_id1',
|
||||
'name': 'user_name1',
|
||||
@@ -304,6 +306,7 @@ class Examples(fixtures.Fixture):
|
||||
self.v3_UUID_TOKEN_DOMAIN_SCOPED: {
|
||||
'token': {
|
||||
'expires_at': '2020-01-01T00:00:10.000123Z',
|
||||
'methods': ['password'],
|
||||
'user': {
|
||||
'id': 'user_id1',
|
||||
'name': 'user_name1',
|
||||
@@ -358,6 +361,7 @@ class Examples(fixtures.Fixture):
|
||||
self.SIGNED_v3_TOKEN_SCOPED_KEY: {
|
||||
'token': {
|
||||
'expires': '2020-01-01T00:00:10.000123Z',
|
||||
'methods': ['password'],
|
||||
'user': {
|
||||
'id': 'user_id1',
|
||||
'name': 'user_name1',
|
||||
@@ -384,6 +388,7 @@ class Examples(fixtures.Fixture):
|
||||
self.v3_UUID_TOKEN_BIND: {
|
||||
'token': {
|
||||
'bind': {'kerberos': self.KERBEROS_BIND},
|
||||
'methods': ['password'],
|
||||
'expires_at': '2020-01-01T00:00:10.000123Z',
|
||||
'user': {
|
||||
'id': 'user_id1',
|
||||
@@ -412,6 +417,7 @@ class Examples(fixtures.Fixture):
|
||||
'token': {
|
||||
'bind': {'FOO': 'BAR'},
|
||||
'expires_at': '2020-01-01T00:00:10.000123Z',
|
||||
'methods': ['password'],
|
||||
'user': {
|
||||
'id': 'user_id1',
|
||||
'name': 'user_name1',
|
||||
|
Reference in New Issue
Block a user