mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-17 00:23:41 +00:00
19 lines
425 B
TypeScript
19 lines
425 B
TypeScript
|
|
import { apiCallProperties } from "./apiauth"
|
||
|
|
|
||
|
|
|
||
|
|
export enum Policy {
|
||
|
|
Label = "label"
|
||
|
|
}
|
||
|
|
|
||
|
|
export function resetPolicy(api: apiCallProperties, policy: Policy) {
|
||
|
|
cy.request({
|
||
|
|
method: 'DELETE',
|
||
|
|
url: `${api.mgntBaseURL}/policies/${policy}`,
|
||
|
|
headers: {
|
||
|
|
Authorization: api.authHeader
|
||
|
|
},
|
||
|
|
}).then(res => {
|
||
|
|
expect(res.status).to.equal(200)
|
||
|
|
return null
|
||
|
|
})
|
||
|
|
}
|