pdsinterop / test-suites

Test suites for protocols a Personal Data Store may support
https://pdsinterop.org/test-suites/
MIT License
2 stars 11 forks source link

Mismatches in /ocm-provider/ contents #20

Open michielbdejong opened 4 years ago

michielbdejong commented 4 years ago

There's a slight difference between the /ocm-provider/ JSON from Nextcloud and from ownCloud. This is the one from ownCloud, compared to the one from Nextcloud:


cd ./testers/open-cloud-mesh/tester
npm install
SERVER_ROOT=https://demo.owncloud.org npm run jest

> open-cloud-mesh-tests@1.0.0 jest /Users/michiel/gh/pdsinterop/test-suites/testers/open-cloud-mesh/tester
> jest

 FAIL  test/surface/discovery.test.ts
  ● Discovery at /ocm-provider/ › contains service description

    expect(received).toEqual(expected) // deep equality

    - Expected  - 6
    + Received  + 2

      Object {
        "apiVersion": "1.0-proposal1",
        "enabled": true,
    -   "endPoint": "https://localhost/ocm",
    -   "resourceTypes": Array [
    +   "endPoint": "https://demo.owncloud.org/apps/federatedfilesharing",
    +   "shareTypes": Array [
          Object {
            "name": "file",
            "protocols": Object {
              "webdav": "/public.php/webdav/",
            },
    -       "shareTypes": Array [
    -         "user",
    -         "group",
    -       ],
          },
        ],
      }