Description: Fix unit test Author: Thomas Goirand Bug-Debian: https://bugs.debian.org/1145669 Forwarded: no Last-Update: 2026-08-26 --- keystone-29.0.2.orig/keystone/tests/unit/test_contrib_ec2_core.py +++ keystone-29.0.2/keystone/tests/unit/test_contrib_ec2_core.py @@ -313,10 +313,8 @@ class EC2ContribCoreV3(test_v3.RestfulTe } }, token=token, - expected_status=http.client.CREATED, + expected_status=http.client.FORBIDDEN, ) - ec2_token = resp.headers['X-Subject-Token'] - self.assertIn('ec2credential', resp.json['token']['methods']) def test_ec2credential_ban_can_be_disabled(self): self.config_fixture.config(