Fix merge conflicts
This commit is contained in:
parent
24d2937d0b
commit
89957f5490
|
@ -1,6 +1,10 @@
|
|||
import tk from "timekeeper"
|
||||
import { mocks, structures } from "@budibase/backend-core/tests"
|
||||
import { ScimCreateUserRequest, ScimUserResponse } from "@budibase/types"
|
||||
import {
|
||||
ScimCreateUserRequest,
|
||||
ScimUpdateRequest,
|
||||
ScimUserResponse,
|
||||
} from "@budibase/types"
|
||||
import { TestConfiguration } from "../../../../../tests"
|
||||
|
||||
function createScimCreateUserRequest(userData?: {
|
||||
|
@ -233,7 +237,7 @@ describe("/api/global/scim/v2/users", () => {
|
|||
describe("PATCH /api/global/scim/v2/users", () => {
|
||||
const patchScimUser = config.api.scimUsersAPI.patch
|
||||
|
||||
let user: ScimUser
|
||||
let user: ScimUserResponse
|
||||
|
||||
beforeEach(async () => {
|
||||
const body = createScimCreateUserRequest()
|
||||
|
@ -278,7 +282,7 @@ describe("/api/global/scim/v2/users", () => {
|
|||
|
||||
const response = await patchScimUser({ id: user.id, body })
|
||||
|
||||
const expectedScimUser: ScimUser = {
|
||||
const expectedScimUser: ScimUserResponse = {
|
||||
...user,
|
||||
userName: newUserName,
|
||||
name: {
|
||||
|
|
|
@ -2,6 +2,7 @@ import {
|
|||
ScimUserListResponse,
|
||||
ScimCreateUserRequest,
|
||||
ScimUserResponse,
|
||||
ScimUpdateRequest,
|
||||
} from "@budibase/types"
|
||||
import TestConfiguration from "../../TestConfiguration"
|
||||
import { TestAPI } from "../base"
|
||||
|
@ -57,15 +58,6 @@ export class ScimUsersAPI extends TestAPI {
|
|||
return res.body as ScimUserResponse
|
||||
}
|
||||
|
||||
find = async (id: string, requestSettings?: Partial<RequestSettings>) => {
|
||||
const res = await this.#createRequest(
|
||||
`/api/global/scim/v2/users/${id}`,
|
||||
"get",
|
||||
requestSettings
|
||||
)
|
||||
return res.body as ScimUser
|
||||
}
|
||||
|
||||
post = async (
|
||||
{
|
||||
body,
|
||||
|
@ -101,6 +93,6 @@ export class ScimUsersAPI extends TestAPI {
|
|||
body
|
||||
)
|
||||
|
||||
return res.body as ScimUser
|
||||
return res.body as ScimUserResponse
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue