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