Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Feb 5, 2024
1 parent 4c3f4d6 commit 46f99c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/sample/Identity/v3/TokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public function testInvalidPassword()
{
$options = $this->getAuthOpts();
$password = $options['user']['password'] . $this->randomStr();
$options['user']['password'] .= $password;
$options['user']['id'] = $password;
$options['user']['password'] = $password;

$openstack = new OpenStack($options);
$this->expectException(BadResponseError::class);
Expand All @@ -91,8 +92,10 @@ public function testInvalidPassword()
public function testInvalidPasswordHidesPassword()
{
$options = $this->getAuthOpts();

$password = $options['user']['password'] . $this->randomStr();
$options['user']['password'] .= $password;
$options['user']['id'] = $password;
$options['user']['password'] = $password;

$openstack = new OpenStack(array_merge($options, ['errorVerbosity' => 0]));
$this->expectException(BadResponseError::class);
Expand All @@ -101,7 +104,6 @@ public function testInvalidPasswordHidesPassword()
$openstack->objectStoreV1();
} catch (BadResponseError $e) {
$this->assertStringNotContainsString($password, $e->getMessage());
print_r($e->getMessage());

throw $e;
}
Expand Down

0 comments on commit 46f99c4

Please sign in to comment.