An ActivityPub Test

Background

ActivityPub says

Every object MAY have a likes collection. … The likes 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:200b9bc8-aae3-46f2-a6ab-5366042c0f6e.

Test Subject

The subject of this test is an ActivityPub Object.

Input

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

input.object

the object whose likes property will be tested

Applicability

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

Prerequisites

Test Targets

How to Derive Test Targets from Input

Expectations

For every target target

Test Cases

What follows are some specific cases of applything this test rule.

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

Inapplicable Example 3 - object is html

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