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:
Christian Kellner 2022-03-23 13:32:47 +01:00
parent 6f3c49139d
commit 9562deb983
2 changed files with 2 additions and 2 deletions

View file

@ -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 = {