From c80ec91f281419e59b3fd2ce2668278e440d6768 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 2 Dec 2014 11:03:25 +0100 Subject: switch to different parsing implementation to get xml attributes properly handled --- tests/data/app/expected-info.json | 16 ++++++++++++++-- tests/data/app/strange-types-info.json | 24 ------------------------ tests/data/app/strange-types-info.xml | 23 ----------------------- tests/data/app/valid-info.xml | 10 +++++----- 4 files changed, 19 insertions(+), 54 deletions(-) delete mode 100644 tests/data/app/strange-types-info.json delete mode 100644 tests/data/app/strange-types-info.xml (limited to 'tests/data') diff --git a/tests/data/app/expected-info.json b/tests/data/app/expected-info.json index 9be6062220f..6da69fb9ad7 100644 --- a/tests/data/app/expected-info.json +++ b/tests/data/app/expected-info.json @@ -18,8 +18,20 @@ "ocsid": "166047", "dependencies": { "php": { - "min-version": 5.4 + "@attributes" : { + "min-version": "5.4", + "max-version": "5.5" + } }, - "database":["sqlite", "mysql"] + "databases": { + "database": [ + { + "@attributes" : { + "min-version": "3.0" + }, + "@value": "sqlite"}, + "mysql" + ] + } } } diff --git a/tests/data/app/strange-types-info.json b/tests/data/app/strange-types-info.json deleted file mode 100644 index eedf8bd0518..00000000000 --- a/tests/data/app/strange-types-info.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "info": [], - "remote": [], - "public": [], - "id": "files_encryption", - "name": "Server-side Encryption", - "description": "\n\tThis application encrypts all files accessed by ownCloud at rest, wherever they are stored. As an example, with this application enabled, external cloud based Amazon S3 storage will be encrypted, protecting this data on storage outside of the control of the Admin. When this application is enabled for the first time, all files are encrypted as users log in and are prompted for their password. The recommended recovery key option enables recovery of files in case the key is lost. \n\tNote that this app encrypts all files that are touched by ownCloud, so external storage providers and applications such as SharePoint will see new files encrypted when they are accessed. Encryption is based on AES 128 or 256 bit keys. More information is available in the Encryption documentation \n\t", - "licence": "AGPL", - "author": "Sam Tuke, Bjoern Schiessle, Florin Peter", - "requiremin": "4", - "shipped": "true", - "documentation": { - "user": "https://docs.example.com/server/go.php?to=user-encryption", - "admin": "https://docs.example.com/server/go.php?to=admin-encryption" - }, - "rememberlogin": "false", - "types": [], - "ocsid": "166047", - "dependencies": { - "php": { - "min-version": 5.4 - } - } -} diff --git a/tests/data/app/strange-types-info.xml b/tests/data/app/strange-types-info.xml deleted file mode 100644 index e7e8f0d0281..00000000000 --- a/tests/data/app/strange-types-info.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - files_encryption - Server-side Encryption - - This application encrypts all files accessed by ownCloud at rest, wherever they are stored. As an example, with this application enabled, external cloud based Amazon S3 storage will be encrypted, protecting this data on storage outside of the control of the Admin. When this application is enabled for the first time, all files are encrypted as users log in and are prompted for their password. The recommended recovery key option enables recovery of files in case the key is lost. - Note that this app encrypts all files that are touched by ownCloud, so external storage providers and applications such as SharePoint will see new files encrypted when they are accessed. Encryption is based on AES 128 or 256 bit keys. More information is available in the Encryption documentation - - AGPL - Sam Tuke, Bjoern Schiessle, Florin Peter - 4 - true - - user-encryption - admin-encryption - - false - - 166047 - - 5.4 - - diff --git a/tests/data/app/valid-info.xml b/tests/data/app/valid-info.xml index 3a40e62d147..cdb688c6b3f 100644 --- a/tests/data/app/valid-info.xml +++ b/tests/data/app/valid-info.xml @@ -20,10 +20,10 @@ 166047 - - 5.4 - - sqlite - mysql + + + sqlite + mysql + -- cgit v1.2.3