mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +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
|
||
|
})
|
||
|
}
|