You are here

protected property MigrateAcquiaConnectorConfigurationTest::$expectedState in Acquia Connector 3.x

Expected State Variable.

Note, Acquia uses state for site-specific subscription data. However, the spi data is dynamically generated and doesn't need migration: 'def_vars', 'def_waived_vars', 'def_timestamp', 'new_optional_data'.

Type: array[]

File

tests/src/Kernel/Migrate/d7/MigrateAcquiaConnectorConfigurationTest.php, line 73

Class

MigrateAcquiaConnectorConfigurationTest
Migrates various configuration objects owned by the acquia connector module.

Namespace

Drupal\Tests\acquia_connector\Kernel\Migrate\d7

Code

protected $expectedState = [
  'acquia_subscription_data' => [
    'timestamp' => 1234567890,
    'active' => '1',
    'href' => 'https://insight.acquia.com/node/uuid/1b2c3456-a123-456d-a789-e1234567895d/dashboard',
    'uuid' => '1b2c3456-a123-456d-a789-e1234567895d',
    'subscription_name' => 'Test',
    'expiration_date' => [
      'value' => '2042-12-30T00:00:00',
    ],
    'product' => [
      'view' => 'Acquia Network',
    ],
    'derived_key_salt' => '1234e56789979a1d8ae123cd321a12c7',
    'update_service' => '1',
    'search_service_enabled' => 1,
    'update' => [],
    'heartbeat_data' => [
      'acquia_lift' => [
        'status' => FALSE,
        'decision' => [
          'public_key' => '',
          'private_key' => '',
        ],
        'profile' => [
          'account_name' => '',
          'hostname' => '',
          'public_key' => '',
          'secret_key' => '',
          'js_path' => '',
        ],
      ],
      'search_service_enabled' => 1,
      'search_cores' => [
        0 => [
          'balancer' => 'useast1-c1.acquia-search.com',
          'core_id' => 'TEST-123456',
        ],
        1 => [
          'balancer' => 'useast1-c1.acquia-search.com',
          'core_id' => 'TEST-123456.prod.v2',
        ],
        2 => [
          'balancer' => 'useast1-c1.acquia-search.com',
          'core_id' => 'TEST-123456.test.v2',
        ],
        3 => [
          'balancer' => 'useast1-c1.acquia-search.com',
          'core_id' => 'TEST-123456.dev.v2',
        ],
        4 => [
          'balancer' => 'useast1-c26.acquia-search.com',
          'core_id' => 'TEST-123456.prod.default',
        ],
        5 => [
          'balancer' => 'useast1-c26.acquia-search.com',
          'core_id' => 'TEST-123456.test.default',
        ],
        6 => [
          'balancer' => 'useast1-c26.acquia-search.com',
          'core_id' => 'TEST-123456.dev.default',
        ],
      ],
      'search_service_colony' => 'useast1-c1.acquia-search.com',
    ],
  ],
];