binoli.addweb created an issue. See original summary.
@binoliaddweb
Thank you for adding the test case.
+++ b/modules/cloud_service_providers/k8s/tests/src/Unit/Plugin/cloud/project/K8sCloudProjectPluginTest.php @@ -0,0 +1,211 @@ + $project_value_map = [ + ['name', (object) ['value' => $random->name(8, TRUE)]], + ['field_username', (object) ['value' => $random->name(8, TRUE)]], + ['field_enable_time_scheduler', (object) ['value' => 'TRUE']], + ['field_enable_resource_scheduler', (object) ['value' => 'TRUE']], + ['field_k8s_clusters', (object) ['value' => $cluster_name]], + ['field_startup_time_hour', (object) ['value' => $random->name(8, TRUE)]], + [ + 'field_startup_time_minute', + (object) ['value' => $random->name(8, TRUE)], + ], + ['field_stop_time_hour', (object) ['value' => $random->name(8, TRUE)]], + ['field_stop_time_minute', (object) ['value' => $random->name(8, TRUE)]], + ['field_request_cpu', (object) ['value' => $random->name(8, TRUE)]], + ['field_request_memory', (object) ['value' => $random->name(8, TRUE)]], + ['field_pod_count', (object) ['value' => $random->name(8, TRUE)]], + ];
Please use K8sTestFormDataTrait::createProjectTestFormData() .
K8sTestFormDataTrait::createProjectTestFormData()
I updated the patch. Thanks
The last submitted patch, 5: 3177284-5.patch, failed testing. View results
I'll merge the patch to 8.x-2.x and 3.x and close this issue as Fixed.
8.x-2.x
3.x
Fixed
Issue #3177284 by binoli.addweb, yas: Add a test case for...
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
aadil.addweb commentedComment #3
aadil.addweb commentedComment #4
yas@binoliaddweb
Thank you for adding the test case.
Please use
K8sTestFormDataTrait::createProjectTestFormData().Comment #5
yas@binoliaddweb
I updated the patch. Thanks
Comment #7
yasI'll merge the patch to
8.x-2.xand3.xand close this issue asFixed.Comment #10
yas