Skip to content

Commit

Permalink
removing unnecessary steps
Browse files Browse the repository at this point in the history
  • Loading branch information
stovak committed Jan 28, 2025
1 parent 7cd36ec commit e772677
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,10 @@ public function testFull(int $drupal_version = 10, string $site_name = NULL) {

// Test all the Solr things.
$this->testSolrEnabled($site_name);

// Test creating Solr index.
$this->testSolrIndexCreate($site_name, 'dev');

// Test running the reload
// Test running the reload schema command
$this->testPantheonSolrReload($site_name, 'dev');
// did it really reload the schema?
$this->testSolrReload($site_name, 'dev');

// Test select query.
$this->testSolrSelect($site_name, 'dev');

Expand Down Expand Up @@ -529,9 +525,10 @@ public function testModuleEnable(string $site_name, string $env = 'dev') {
->run();
}


/**
* Run through various diagnostics to ensure that Solr8 is enabled and
* working.
* working and an index has been created.
*
* @param string $site_name
* The machine name of the site to run the diagnostics on.
Expand Down Expand Up @@ -579,6 +576,7 @@ public function testSolrEnabled(string $site_name, string $env = 'dev') {
)
);
}

}

catch (\Exception $e) {
Expand All @@ -593,6 +591,7 @@ public function testSolrEnabled(string $site_name, string $env = 'dev') {
return ResultData::EXITCODE_ERROR;
}

$this->output()->write('👍👍👍 Solr8 is enabled and working.', TRUE);
return ResultData::EXITCODE_OK;
}

Expand Down Expand Up @@ -742,20 +741,7 @@ public function testEnvSolr(string $site_name) {
* The environment to create the index in.
*/
public function testSolrIndexCreate(string $site_name, string $env = 'dev') {
$result = $this->taskExec(static::$TERMINUS_EXE)
->args(
'drush',
"$site_name.$env",
'--',
'cim',
'--partial',
'--source=modules/contrib/search_api_pantheon/.ci/config',
'-y'
)
->run();
if (!$result->wasSuccessful()) {
exit(1);
}


// Index new solr.
$result = $this->taskExec(static::$TERMINUS_EXE)
Expand Down

0 comments on commit e772677

Please sign in to comment.