chore: remove phased out storage encryption policy (#2323)

This commit is contained in:
Mo
2023-05-03 07:56:01 -05:00
committed by GitHub
parent e3f8b81139
commit 9f937f217b
8 changed files with 14 additions and 235 deletions

View File

@@ -223,28 +223,6 @@ describe('storage manager', function () {
expect(decrypted.content).to.be.an.instanceof(Object)
})
/** @TODO: Storage encryption disable is no longer available, remove tests and associated functionality */
it.skip('disabling storage encryption should store items without encryption', async function () {
await Factory.registerUserToApplication({
application: this.application,
email: this.email,
password: this.password,
ephemeral: false,
})
await this.application.setStorageEncryptionPolicy(StorageEncryptionPolicy.Disabled)
const payloads = await this.application.diskStorageService.getAllRawPayloads()
const payload = payloads[0]
expect(typeof payload.content).to.not.equal('string')
expect(payload.content.references).to.be.ok
const identifier = this.application.identifier
const app = await Factory.createAndInitializeApplication(identifier, Environment.Mobile)
expect(app.diskStorageService.encryptionPolicy).to.equal(StorageEncryptionPolicy.Disabled)
})
it('stored payloads should not contain metadata fields', async function () {
await this.application.addPasscode('123')
await Factory.createSyncedNote(this.application)