Since the subprocess is started before the reference timestamp is
created, it can happen that the check for the expiration field fails.
Traceback (most recent call last):
File "/tmp/zuul/tests/unit/test_client.py", line 151, in test_token_generation
File "/tmp/zuul/.tox/py36/lib/python3.6/site-packages/unittest2/case.py", line 702, in assertTrue
AssertionError: False is not true : (1568016146.9831738, 1568015546.1448617)
Add the "create-auth-token" subcommand to the zuul CLI; this subcommand
allows an operator to create an authentication token for a user with
This requires at least one auth section with a signing key to be specified in
Zuul's configuration file.
This is meant as a way to provide authorizations "manually" on test
deployments, until a proper authorization engine is plugged into Zuul,
in a subsequent patch.
This patch adds a new command 'tenant-conf-check' to the Zuul client
command. This option runs a tenant_file validation by running the schema
valiation of the file. The command exits -1 if errors have been
detected. The command does not use RPC call but instead expects to
find the tenant_file on the local filesystem.