builder: use correct secret when fetching token
Use the `self.secret` and not `self.id` for the secret. Doh. Mea culpa. Fix the corresponding test as well, which also checked for the wrong thing. Reported-By: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
6f3c49139d
commit
9562deb983
2 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ class MockComposer: # pylint: disable=too-many-instance-attributes
|
|||
return [400, response_headers, "Invalid credentials"]
|
||||
|
||||
client_secret = data.get("client_secret", [])
|
||||
if len(client_secret) != 1 or client_secret[0] != "koji-osbuild":
|
||||
if len(client_secret) != 1 or client_secret[0] != "s3cr3t":
|
||||
return [400, response_headers, "Invalid credentials"]
|
||||
|
||||
token = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue