registerUser = (data = {}) => {
  const payload = getUserPayload(data);
  nock(apiServerRootUri)
    .get(`/api/v1/namespaces/pai-user-v2/secrets/${payload.metadata.name}`)
    .reply(200, payload);
}
@param {Object} nock - nock client.
@param {Object} data - user info.
@param {string} data.username
@param {string} data.password
@param {string[]} data.grouplist