Generic Tests - Integration
  • 05 Dec 2022
  • Dark
    Light
  • PDF

Generic Tests - Integration

  • Dark
    Light
  • PDF

Article Summary

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 ******************
-----------------------------------------------------------------------
-----------------------------------------------------------------------
*/

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.