mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 12:07:40 +00:00
08ae39ae19
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <livio.a@gmail.com>
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
|
|
})
|
|
} |