mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Prevent expiration from delete file in cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
4bfdd715c8
commit
5dc64ebee6
2 changed files with 4 additions and 1 deletions
|
|
@ -122,7 +122,6 @@ export const configureNextcloud = async function() {
|
|||
await runExec(container, ['php', 'occ', 'config:system:set', 'default_locale', '--value', 'en_US'], true)
|
||||
await runExec(container, ['php', 'occ', 'config:system:set', 'force_locale', '--value', 'en_US'], true)
|
||||
await runExec(container, ['php', 'occ', 'config:system:set', 'enforce_theme', '--value', 'light'], true)
|
||||
await runExec(container, ['php', 'occ', 'config:system:set', 'versions_retention_obligation', '--value', '0, 0'], true)
|
||||
|
||||
console.log('└─ Nextcloud is now ready to use 🎉')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@ describe('Versions expiration', () => {
|
|||
})
|
||||
|
||||
it('Expire all versions', () => {
|
||||
cy.runOccCommand('config:system:set versions_retention_obligation --value "0, 0"')
|
||||
cy.runOccCommand('versions:expire')
|
||||
cy.runOccCommand('config:system:set versions_retention_obligation --value auto')
|
||||
cy.visit('/apps/files')
|
||||
openVersionsPanel(randomFileName)
|
||||
|
||||
|
|
@ -53,7 +55,9 @@ describe('Versions expiration', () => {
|
|||
it('Expire versions v2', () => {
|
||||
nameVersion(2, 'v1')
|
||||
|
||||
cy.runOccCommand('config:system:set versions_retention_obligation --value "0, 0"')
|
||||
cy.runOccCommand('versions:expire')
|
||||
cy.runOccCommand('config:system:set versions_retention_obligation --value auto')
|
||||
cy.visit('/apps/files')
|
||||
openVersionsPanel(randomFileName)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue