Skip to content

Commit

Permalink
Skipping test for hybrid org (#973)
Browse files Browse the repository at this point in the history
Added check to skip test if the org is Hybrid for Apigee Edge action module.
  • Loading branch information
shishir-intelli authored Nov 15, 2023
1 parent 70a822c commit 5d35156
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

namespace Drupal\Tests\apigee_edge_actions\Kernel;

use Drupal\apigee_edge\Plugin\EdgeKeyTypeInterface;
use Drupal\Core\Database\Database;
use Drupal\dblog\Controller\DbLogController;
use Drupal\Tests\apigee_mock_api_client\Traits\ApigeeMockApiClientHelperTrait;
Expand Down Expand Up @@ -67,6 +68,11 @@ class ApigeeEdgeActionsRulesKernelTestBase extends RulesKernelTestBase {
* {@inheritdoc}
*/
protected function setUp(): void {
// Skipping the test if instance type is Public.
$instance_type = getenv('APIGEE_EDGE_INSTANCE_TYPE');
if (!empty($instance_type) && $instance_type === EdgeKeyTypeInterface::INSTANCE_TYPE_HYBRID) {
$this->markTestSkipped('This test suite is expecting a PUBLIC instance type.');
}
parent::setUp();

$this->storage = $this->container->get('entity_type.manager')->getStorage('rules_reaction_rule');
Expand Down

0 comments on commit 5d35156

Please sign in to comment.