An ActivityPub Test

Background ?

ActivityPub § 5.5 Liked Collection:

Every object MAY have a liked collection. … The liked collection MUST be either an OrderedCollection or a Collection

About This Test

This is a Test Case describing a rule to determine whether an ActivityPub Object is in partial conformance with the following behaviors required by ActivityPub.

Identifier

The identifier of this test is urn:uuid:018c3df2-d6d8-7f62-805b-b71a96cc6170.

Test Subject

The subject of this test is an ActivityPub Object.

Input ?

This test requires the following inputs indicating parts of the test subject:

  1. object - the object whose liked property will be tested

Applicability ?

This test applies to each of the liked collections derived from the values of the property on object named liked.

Prerequisites

How to Derive Test Targets from Input

Expectations ?

For every target target

Assumptions ?

Test Cases ?

What follows are some specific cases of applything this test.

Passed Example 1

inputs

test targets

Passed Example 2

inputs

test targets

Passed Example 3

inputs

test targets

Failed Example 1 - Likes is a number

inputs

test targets

Failed Example 2 - Likes is an empty object

inputs

test targets

inputs

test targets

Inapplicable Example 1

inputs

result

Inapplicable Example 2 - object has no likes property

inputs

result

Glossary ?

outcome

An outcome is a conclusion that comes from evaluating a test on a test subject. An outcome can be one of the three following types:

Requirements Mapping ?

Issues ?

Change Log