Node definition syntax

https://feditest.org/reference/json-files/node/

A Node definition captures everything FediTest needs to know to interact with, and – potentially – provision and deprovision an App.

The syntax is as follows:

{
    "nodedriver" : "<name>",
    "parameters" : {
       "<key>" : "<value>",
       ...
    },
    "accounts" : [
        {
            "<key>" : "<value>",
            ...
        },
        ...
    ],
    "non_existing_accounts" : [
        {
            "<key>" : "<value>",
            ...
        },
        ...
    ]
}
Field nodedriver:
The name of the Node Driver. This field is required.
Field parameters:
Additional information about how the App at the Node is, or shall be, configured. For example, almost all Node Drivers support the hostname parameter. This field is optional, unless a Node Driver requires certain entries.
Field accounts:
Lists the accounts that already exist on this Node and that FediTest may use without having to create them first. This field is optional. This is useful if you want to use an already-running SaaS Node for testing on which you manually created certain accounts that can be used for testing, and you don’t want to have to re-enter them into FediTest on every run.
Field non_existing_accounts:
Lists some “accounts” that do not exist on this Node but could. This is useful for tests that require an account not to exist.

To determine…

  • … the available Node Drivers, run feditest list-nodedrivers.

  • … what a given Node Driver does, and what parameters and account and non_existing_account parameters it understands, run feditest info --nodedriver <name>.