owncloud / owncloud/QA

Tests for personal tags Webdav

Open
#88 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dev:acceptance-tests Low priority QA-p3 QA:team
Dominant language
Shell
Stars
16
Forks
16
Avg merge
11h 11m
Merged PRs (30d)
1

Description

Note: this is NOT system tags.

These are internal personal tags that can be set on files.
Currently this isn't used anywhere and this feature exists since OC 8.1.
The only usage is the special tag used for favorite files.

To test manually: create a file "proppatch-tags.txt":

<?xml version="1.0"?>
<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
  <d:set>
    <d:prop>
      <oc:tags>
        <oc:tag>tag1</oc:tag>
        <oc:tag>tag2</oc:tag>
      </oc:tags>
      <oc:favorite>1</oc:favorite>
    </d:prop>
  </d:set>
</d:propertyupdate>

Then: curl -X PROPPATCH -H "Content-Type: text/xml" --data-binary "@proppatch-tags.txt" http://root:admin@localhost/owncloud/remote.php/files/file.txt

Then create a file "propfind-tags.txt":

<?xml version="1.0"?>
<a:propfind xmlns:a="DAV:" xmlns:oc="http://owncloud.org/ns">
        <a:prop>
                <oc:tags/>
                <oc:favorite/>
        </a:prop>
</a:propfind>

Then check the output of the PROPFIND: curl -X PROPFIND -H "Content-Type: text/xml" --data-binary "@propfind-tags.txt" http://root:admin@localhost/owncloud/remote.php/files/file.txt

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
 <d:response>
  <d:href>/owncloud/remote.php/files/file.txt</d:href>
  <d:propstat>
   <d:prop>
    <oc:tags>
     <oc:tag>tag1</oc:tag>
     <oc:tag>tag2</oc:tag>
    </oc:tags>
    <oc:favorite>1</oc:favorite>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
 </d:response>
</d:multistatus>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by preparing the two XML request files shown in the issue and run the PROPPATCH command against the ownCloud WebDAV endpoint. Then run the PROPFIND command and compare its response with the expected XML, confirming that tag1, tag2, and favorite are returned with HTTP 200 OK.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
api, testing-qa
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.