added test for getting details of a single group (#5760)

addressed reviews

updated steps with JSON drill-down functionality

reviews addressed

fixed linter error

conflicts resolved

fixed errors

addressed reviews
This commit is contained in:
Prajwol Amatya
2023-03-15 12:10:59 +05:45
committed by GitHub
parent 67296caf14
commit e836b2d138
4 changed files with 51 additions and 3 deletions
@@ -2081,4 +2081,26 @@ class GraphContext implements Context {
. "\nExpected rolId for role '$role'' to be '" . $this->appEntity["appRoles"][$role] . "' but got '" . $response['appRoleId'] . "'"
);
}
/**
* @When user :user gets details of the group :groupName using the Graph API
*
* @param string $user
* @param string $groupName
*
* @return void
*/
public function userGetsDetailsOfTheGroupUsingTheGraphApi(string $user, string $groupName): void {
$credentials = $this->getAdminOrUserCredentials($user);
$this->featureContext->setResponse(
GraphHelper::getGroup(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$credentials["username"],
$credentials["password"],
$groupName
)
);
}
}