There are currently 10 failed tests when running AcquiaAgentTestCase. They are listed below:

  • Account not found for random automatic setup attempt: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 101
  • Subscription not found for random credentials: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 114
  • Subscription connected with key and identifier Other: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 123
  • Link to help page exists: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 125
  • Acquia Cloud Migrate description exists: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 126
  • Subscription connected with credentials: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 138
  • Failed to set field acquia_dynamic_banner: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 143
  • Found the Save settings button Other: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line line 143
  • Found the requested form fields at admin/config/system/acquia-agent: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 143
  • "Receive updates from Acquia Network" option stays saved: AcquiaAgentTestCase->testAcquiaAgentGetConnected() line 144
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

coltrane’s picture

I experience Agent failures only when running via scripts/run-tests.sh, all Agent tests pass via the UI. Can you output $conf in acquia_agent.pages.inc and check if acquia settings are off? Check acquia_network_address, acquia_spi_server and acquia_spi_ssl_override in particular.

cpliakas’s picture

My $conf is clean. I have no acquia variables. But as an update, if I set ACQUIA_DEVELOPMENT_NOSSL in my local settings file then we are down to 2 failures. If I set ACQUIA_DEVELOPMENT_NOSSL in the acquia_connector_test module or acquia_agent.test file, then it still forces SSL for some reason.

coltrane’s picture

Status: Active » Needs review
FileSize
655 bytes

This makes all tests pass via the UI and without any acquia-specific variables in settings.php. Which tests aren't passing for you?

cpliakas’s picture

Status: Needs review » Reviewed & tested by the community

That does the trick! All tests pass now.

coltrane’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
1.61 KB

This patch also forces peer verification to false.

coltrane’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.