apple / ccs-caldavtester

CalDAV/CardDAV Testing Framework used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
57 stars 36 forks source link

Exclusion/inclusion of test values #24

Open macosforgebot opened 11 years ago

macosforgebot commented 11 years ago

douglm@… originally submitted this as ticket:562


In sharing-notification-sync.xml for example we have

   <test-suite name='initial tokens - depth infinity' ignore='no'>
        <test name='1' ignore='no'>
...
                <verify>
                    <exclude-feature>
                        <feature>split-calendars</feature>
                    </exclude-feature>
                    <callback>multistatusItems</callback>
                    <arg>
                        <name>okhrefs</name>
                        <value>$calendar:/</value>
                        <value>$inbox:/</value>
                        <value>$outbox:/</value>
                        <value>$freebusy:</value>
                        <value>$notification:/</value>
                        <value>shared/</value>
                    </arg>
                    <arg>
                        <name>badhrefs</name>
                        <value>$dropbox:/</value>
                    </arg>
                </verify>
                <verify>
                    <require-feature>
                        <feature>split-calendars</feature>
                    </require-feature>
                    <callback>multistatusItems</callback>
                    <arg>
                        <name>okhrefs</name>
                        <value>$calendar:/</value>
                        <value>$tasks:/</value>
                        <value>$inbox:/</value>
                        <value>$outbox:/</value>
                        <value>$freebusy:</value>
                        <value>$notification:/</value>
                        <value>shared/</value>
                    </arg>
                    <arg>
                        <name>badhrefs</name>
                        <value>$dropbox:/</value>
                    </arg>
                </verify>

Currently I don't have split calendars, not dropbox nor a freebusy calendar so I get 2 failures for freebusy and dropbox.

I don't think I could reasonably express all that with the exclude-feature and require-feature sub-elements

It might simplify things if we could apply an exclude-feature and require-feature attribute to the value and arg elements

macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:7:⁠ticket:562