Project Connections File¶
Warning
Credentials for connections are stored in plain text in the project connections file. For this reason, we recommend that this file is not included in version control (it is included in the .gitignore file by default), and credentials should be revokable and have the minimum set of permissions necessary for the Adapter to function (Usually Read-Only is sufficient).
The project connections file is a JSON named connections.json
located in the project's root directory. This document
describes what data is present in the file.
Note
If the file is not ignored by git, mp-test
and mp-build
will append
the file to the project's .gitignore
file.
connections
(array of objects)¶
This property stores a list of connection objects.
credential
(object)¶
An object that contains credential information.
Example
identifiers
(object)¶
An object that contains one or more identifiers. The identifiers should match the adapter instance identifiers defined in the Object Model.
Example
config.json | |
---|---|
custom_collection_number
(int, optional)¶
The collection number mp-test
passes to the adapter instance. This is helpful when testing adapter behaviours
that are triggered based on collection number (for example, an expensive computation that can doesn't need to happen every collection).
custom_collection_window
(int, optional)¶
The collection window duration mp-test
passed to the adapter instance. This is helpful when testing behaviours that are triggered based on collection window duration.
name
(string)¶
The name of the connection. This is used as the connection identifier and can be used to specify a connection name when using mp-test
.
suite_api_hostname
(string)¶
The suite API host name used for this connection. If there isn't one, the values should be 'null'.
Note
If this property is not provided for the connection, then it will fall back to the property defined outside of the connections.
suite_api_password
(string)¶
The suite API password used to log in to the specified host. If there isn't one, the values should be 'null'.
Note
If this property is not provided for the connection, then it will fall back to the property defined outside of the connections.
suite_api_username
(string)¶
The suite API username used to log in to the specified host. If there isn't one, the values should be 'null'.