Problem/Motivation

In k8s_common.yml, the launch_git_repository is set to https://github.com/ms448/test.git which does not exist.

This is causing errors in BDD testing

Scenario: Create a Launch template                                              # features/tmp.20240227_062915.MKEcZM/K8s-ATDD-03-01-OperateLaunchGitTemplates.feature:6
    Given I am logged in as user "BDD_user_MKEcZM"                                # Drupal\Tests\cloud\Behat\features\bootstrap\FeatureContext::iAmLoggedInAsUser()
    When I visit "clouds/design/server_template/bdd_k8s_mkeczm/k8s/add"           # Drupal\DrupalExtension\Context\MinkContext::assertAtPath()
    And I enter "BDD_launch_git_MKEcZM" for "Name"                                # Drupal\DrupalExtension\Context\MinkContext::assertEnterField()
    And I select "bdd-namespace-mkeczm" from "Namespace"                          # Drupal\DrupalExtension\Context\MinkContext::selectOption()
    And I click "GIT"                                                             # Drupal\DrupalExtension\Context\MinkContext::assertClick()
    And I should see "Configuration"                                              # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
    And I should see "Credentials"                                                # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
    And I enter "" for "Git username"                                             # Drupal\DrupalExtension\Context\MinkContext::assertEnterField()
    And I enter "" for "Git password"                                             # Drupal\DrupalExtension\Context\MinkContext::assertEnterField()
    And I wait for AJAX to finish                                                 # Drupal\DrupalExtension\Context\MinkContext::iWaitForAjaxToFinish()
    And I should see "Source"                                                     # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
    And I select "GitHub" from "Source type"                                      # Drupal\DrupalExtension\Context\MinkContext::selectOption()
    And I wait for AJAX to finish                                                 # Drupal\DrupalExtension\Context\MinkContext::iWaitForAjaxToFinish()
    And I enter "https://github.com/ms448/test.git" for "Git repository"          # Drupal\DrupalExtension\Context\MinkContext::assertEnterField()
    And I press "Source"                                                          # Drupal\DrupalExtension\Context\MinkContext::pressButton()
    And I wait for AJAX to finish                                                 # Drupal\DrupalExtension\Context\MinkContext::iWaitForAjaxToFinish()
    And I press "Source"                                                          # Drupal\DrupalExtension\Context\MinkContext::pressButton()
    And I should see "Branch"                                                     # Drupal\DrupalExtension\Context\MinkContext::assertPageContainsText()
    And I select "main" from "Git branch or tag"                                  # Drupal\DrupalExtension\Context\MinkContext::selectOption()
      Select option with value|text "main" not found. (Behat\Mink\Exception\ElementNotFoundException)
    │
    │  Screenshot at: sites/screenshots/022724-011121_K8s-ATDD-03-01-OperateLaunchGitTemplates_28-FAIL.png
    │
    └─ @AfterStep # Dr

Issue fork cloud-3424163

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

baldwinlouie created an issue. See original summary.

baldwinlouie’s picture

@yas, please review this patch. This changes the launch_git_repository in k8s_common.yml for BDD testing.

yas’s picture

Status: Active » Reviewed & tested by the community

@baldwinlouie

Thank you for the patch. I'll merge the patch to 5.x, 6.x and 7.x, and close this Jira ticket. Thanks

  • yas committed dac15db4 on 7.x authored by baldwinlouie
    Issue #3424163 by baldwinlouie, yas: Change launch_git_repository in...

  • yas committed 2435c056 on 6.x authored by baldwinlouie
    Issue #3424163 by baldwinlouie, yas: Change launch_git_repository in...

  • yas committed 61e540bd on 5.x authored by baldwinlouie
    Issue #3424163 by baldwinlouie, yas: Change launch_git_repository in...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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