@@ -127,8 +127,8 @@ def test_bearer_config():
127
127
def test_oauth_bearer_config_missing ():
128
128
conf = {'url' : TEST_URL ,
129
129
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
130
- 'logical.cluster' : TEST_CLUSTER ,
131
- 'identity.pool.id' : TEST_POOL }
130
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
131
+ 'bearer.auth. identity.pool.id' : TEST_POOL }
132
132
133
133
with pytest .raises (ValueError , match = r"Missing required OAuth configuration properties: (.*)" ):
134
134
SchemaRegistryClient (conf )
@@ -137,24 +137,24 @@ def test_oauth_bearer_config_missing():
137
137
def test_oauth_bearer_config_invalid ():
138
138
conf = {'url' : TEST_URL ,
139
139
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
140
- 'logical.cluster' : TEST_CLUSTER ,
141
- 'identity.pool.id' : 1 }
140
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
141
+ 'bearer.auth. identity.pool.id' : 1 }
142
142
143
143
with pytest .raises (TypeError , match = r"identity pool id must be a str, not (.*)" ):
144
144
SchemaRegistryClient (conf )
145
145
146
146
conf = {'url' : TEST_URL ,
147
147
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
148
- 'logical.cluster' : 1 ,
149
- 'identity.pool.id' : TEST_POOL }
148
+ 'bearer.auth. logical.cluster' : 1 ,
149
+ 'bearer.auth. identity.pool.id' : TEST_POOL }
150
150
151
151
with pytest .raises (TypeError , match = r"logical cluster must be a str, not (.*)" ):
152
152
SchemaRegistryClient (conf )
153
153
154
154
conf = {'url' : TEST_URL ,
155
155
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
156
- 'logical.cluster' : TEST_CLUSTER ,
157
- 'identity.pool.id' : TEST_POOL ,
156
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
157
+ 'bearer.auth. identity.pool.id' : TEST_POOL ,
158
158
'bearer.auth.client.id' : 1 ,
159
159
'bearer.auth.client.secret' : TEST_USER_PASSWORD ,
160
160
'bearer.auth.client.scope' : TEST_SCOPE ,
@@ -165,8 +165,8 @@ def test_oauth_bearer_config_invalid():
165
165
166
166
conf = {'url' : TEST_URL ,
167
167
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
168
- 'logical.cluster' : TEST_CLUSTER ,
169
- 'identity.pool.id' : TEST_POOL ,
168
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
169
+ 'bearer.auth. identity.pool.id' : TEST_POOL ,
170
170
'bearer.auth.client.id' : TEST_USERNAME ,
171
171
'bearer.auth.client.secret' : 1 ,
172
172
'bearer.auth.client.scope' : TEST_SCOPE ,
@@ -177,8 +177,8 @@ def test_oauth_bearer_config_invalid():
177
177
178
178
conf = {'url' : TEST_URL ,
179
179
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
180
- 'logical.cluster' : TEST_CLUSTER ,
181
- 'identity.pool.id' : TEST_POOL ,
180
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
181
+ 'bearer.auth. identity.pool.id' : TEST_POOL ,
182
182
'bearer.auth.client.id' : TEST_USERNAME ,
183
183
'bearer.auth.client.secret' : TEST_USER_PASSWORD ,
184
184
'bearer.auth.client.scope' : 1 ,
@@ -189,8 +189,8 @@ def test_oauth_bearer_config_invalid():
189
189
190
190
conf = {'url' : TEST_URL ,
191
191
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
192
- 'logical.cluster' : TEST_CLUSTER ,
193
- 'identity.pool.id' : TEST_POOL ,
192
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
193
+ 'bearer.auth. identity.pool.id' : TEST_POOL ,
194
194
'bearer.auth.client.id' : TEST_USERNAME ,
195
195
'bearer.auth.client.secret' : TEST_USER_PASSWORD ,
196
196
'bearer.auth.client.scope' : TEST_SCOPE ,
@@ -203,8 +203,8 @@ def test_oauth_bearer_config_invalid():
203
203
def test_oauth_bearer_config_valid ():
204
204
conf = {'url' : TEST_URL ,
205
205
'bearer.auth.credentials.source' : "OAUTHBEARER" ,
206
- 'logical.cluster' : TEST_CLUSTER ,
207
- 'identity.pool.id' : TEST_POOL ,
206
+ 'bearer.auth. logical.cluster' : TEST_CLUSTER ,
207
+ 'bearer.auth. identity.pool.id' : TEST_POOL ,
208
208
'bearer.auth.client.id' : TEST_USERNAME ,
209
209
'bearer.auth.client.secret' : TEST_USER_PASSWORD ,
210
210
'bearer.auth.client.scope' : TEST_SCOPE ,
@@ -223,8 +223,8 @@ def test_oauth_bearer_config_valid():
223
223
def test_static_bearer_config ():
224
224
conf = {'url' : TEST_URL ,
225
225
'bearer.auth.credentials.source' : 'STATIC_TOKEN' ,
226
- 'logical.cluster' : 'lsrc' ,
227
- 'identity.pool.id' : 'pool_id' }
226
+ 'bearer.auth. logical.cluster' : 'lsrc' ,
227
+ 'bearer.auth. identity.pool.id' : 'pool_id' }
228
228
229
229
with pytest .raises (ValueError , match = 'Missing bearer.auth.token' ):
230
230
SchemaRegistryClient (conf )
0 commit comments