public function testXListRoles()
{
$uri = 'roles/xListRoles';
$content = $this->request($uri);
$this->assertResponseDataHasKeys(['name' => $this->logicalNot($this->isEmpty()), 'behaviors' => $this->isType('array'), 'id' => $this->logicalNot($this->isEmpty()), 'accountId', 'envId', 'status' => $this->matchesRegularExpression('/^(Not used|In use)$/'), 'scope' => $this->matchesRegularExpression('/^(scalr|environment)$/'), 'os' => $this->logicalNot($this->isEmpty()), 'osId' => $this->logicalNot($this->isEmpty()), 'osFamily' => $this->logicalNot($this->isEmpty()), 'dtAdded', 'dtLastUsed', 'platforms' => $this->isType('array'), 'client_name'], $content, true);
$content = $this->request($uri, ['osFamily' => 'centos', 'query' => 'ap']);
if (count($content['data'])) {
$this->assertResponseDataHasKeys(['name' => $this->matchesRegularExpression('/(ap)/'), 'osFamily' => $this->equalTo('centos')], $content, true);
}
}