use of com.mercedesbenz.sechub.integrationtest.api.FixedTestUser in project sechub by mercedes-benz.
the class DeveloperAdministration method createAsUserTestObject.
/**
* Creates temporary test user object and provides direct access to integration
* test object: AsUser. So all things available in integration tests can be done
* directly without additional methods
*
* @return asUser object
*/
AsUser createAsUserTestObject() {
String user = provider.getUser();
String token = provider.getApiToken();
TestUser testUser = new FixedTestUser(user, token);
return TestAPI.as(testUser);
}
use of com.mercedesbenz.sechub.integrationtest.api.FixedTestUser in project sechub by mercedes-benz.
the class DeveloperAdministration method updateTestAPISuperAdmin.
public void updateTestAPISuperAdmin(String userId, String apiToken) {
IntegrationTestContext integrationTestContext = IntegrationTestContext.get();
integrationTestContext.setSuperAdminUser(new FixedTestUser(userId, apiToken));
integrationTestContext.rebuild();
}
Aggregations