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/settingsand post the random input data.
Issue fork cloud-3245650
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
Comment #3
yutong.li commentedComment #4
yasComment #5
yasComment #6
yasComment #7
yasComment #11
yasComment #12
yasComment #13
yas@yutong.li
Thank you for adding the test case. I found the issue in
Drupal\k8s\Form\Config::K8sAdminSettingsand I think I could fix it.@xiaohua-guan
Could you please review the patch especially for
K8sAdminSettings::submitForm()?Comment #14
xiaohua guan commented@yas
It looks good to me. Thanks.
Comment #15
yas@xiaohua-guan
Thank you for your review. I'll merge the patch to
3.xand4.x, and close this issue as Fixed.Comment #18
yas