Problem/Motivation

Add test cases for K8s Admin Setting forms:

  • Drupal\Tests\cloud\Functional\Config\K8sAdminSettings::testK8sAdminSettings()

Specification:

  • Implement Drupal\Tests\k8s\Traits\K8sTestFormDataTrait\createK8sSettingsTestFormData() to return an array including the random input data for /admin/config/services/k8s/settings
  • Access (HTTP Get) /admin/config/services/k8s/settings and post the random input data.

Issue fork cloud-3245650

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

yutong.li created an issue. See original summary.

yutong.li credited yas.

yutong.li’s picture

yas’s picture

yas’s picture

yas’s picture

Issue summary: View changes

yas’s picture

Status: Active » Needs work
yas’s picture

Status: Needs work » Needs review
yas’s picture

Title: Add test cases for K8s Admin Setting forms (Settings) » Add test cases for K8s Admin Setting forms (Settings)

@yutong.li

Thank you for adding the test case. I found the issue in Drupal\k8s\Form\Config::K8sAdminSettings and I think I could fix it.

@xiaohua-guan

Could you please review the patch especially for K8sAdminSettings::submitForm()?

xiaohua guan’s picture

@yas

It looks good to me. Thanks.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@xiaohua-guan

Thank you for your review. I'll merge the patch to 3.x and 4.x, and close this issue as Fixed.

  • yas committed 28d82fc on 4.x authored by yutong.li
    Issue #3245650 by yutong.li, yas, Xiaohua Guan: Add test cases for K8s...

yas’s picture

Status: Reviewed & tested by the community » Fixed

  • yas committed 0027abf on 3.x authored by yutong.li
    Issue #3245650 by yutong.li, yas, Xiaohua Guan: Add test cases for K8s...

Status: Fixed » Closed (fixed)

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