An ActivityPub Test

Background ?

ActivityPub § 5.4 Following Collection:

Every actor SHOULD have a following collection. This is a list of everybody that the actor has followed, added as a side effect. The following 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:018c3e17-a1bd-7040-8007-4cd3b9063288.

Test Subject ?

The subject of this test is an ActivityPub Actor Object.

Input ?

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

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

Applicability ?

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

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 - following has type Collection

inputs

test targets

Passed Example 2 - following has type OrderedCollection

inputs

test targets

Passed Example 3 - following type includes OrderedCollection

inputs

test targets

Failed Example 1 - following is a number

inputs

test targets

Failed Example 2 - following is an empty object

inputs

test targets

inputs

test targets

Inapplicable Example 1

inputs

result

Inapplicable Example 2 - object has no following 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