Generic Tests - Integration

Prev Next

The following integration tests are consistent across all adapters. They should not be modified and will be updated when the adapter is migrated (the process of updating the adapter foundation).

  • Class: Tests that the adapter has been instantiated with the defined properties.
  • Connect: Tests that the connect method is successful with no healthcheck, and with healthcheck on at startup.
  • Healthcheck: Tests the healthcheck method is successful.
describe('#class instance created', () => {
  it('should be a class with properties', (done) => {

describe('#connect', () => {
  it('should get connected - no healthcheck', (done) => {
  it('should get connected - startup healthcheck', (done) => {

describe('#healthCheck', () => {
  it('should be healthy', (done) => {

Note: There is a marker in the file to separate the generic part of the file from the customizable part.

/*
-----------------------------------------------------------------------
-----------------------------------------------------------------------
*** All code above this comment will be replaced during a migration ***
******************* DO NOT REMOVE THIS COMMENT BLOCK ******************
-----------------------------------------------------------------------
-----------------------------------------------------------------------
*/