Skip to content

Commit

Permalink
Merge pull request #198 from woocommerce/24-08/validation-self-test
Browse files Browse the repository at this point in the history
Add self-tests for the Validation test
  • Loading branch information
Luc45 authored Aug 29, 2024
2 parents 2a407bb + 1d8a0cb commit 178822d
Show file tree
Hide file tree
Showing 14 changed files with 248 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php return '[
[
{
"test_run_id": 123456,
"run_id": 123456,
"test_type": "validation",
"test_type_display": "Validation",
"wordpress_version": "6.0.0-normalized",
"woocommerce_version": "6.0.0-normalized",
"php_version": "7.4",
"max_php_version": "",
"min_php_version": "",
"additional_woo_plugins": [],
"additional_wp_plugins": [],
"test_log": "",
"status": "success",
"test_result_aws_url": "https:\\/\\/test-results-aws.com",
"test_result_aws_expiration": 1234567890,
"is_development": true,
"send_notifications": false,
"woo_extension": {
"id": 18619,
"host": "wccom",
"name": "Google Product Feed",
"type": "plugin"
},
"client": "qit_cli",
"event": "cli_development_extension_test",
"optional_features": {
"hpos": false,
"new_product_editor": false
},
"test_results_manager_url": "https:\\/\\/test-results-manager.com",
"test_results_manager_expiration": 1234567890,
"test_summary": "Errors: 0 Warnings: 0",
"debug_log": "",
"version": "Undefined",
"update_complete": true,
"ai_suggestion_status": "none",
"malware_whitelist_paths": [],
"workflow_id": "1234567890",
"runner": "normalized",
"test_result_json_extracted": "{EXTRACTED}"
},
{
"test_result_json": {
"headers": {
"Requires PHP": "7.4"
}
}
}
]
]';
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php return '[
[
{
"test_run_id": 123456,
"run_id": 123456,
"test_type": "validation",
"test_type_display": "Validation",
"wordpress_version": "6.0.0-normalized",
"woocommerce_version": "6.0.0-normalized",
"php_version": "7.4",
"max_php_version": "",
"min_php_version": "",
"additional_woo_plugins": [],
"additional_wp_plugins": [],
"test_log": "",
"status": "success",
"test_result_aws_url": "https:\\/\\/test-results-aws.com",
"test_result_aws_expiration": 1234567890,
"is_development": true,
"send_notifications": false,
"woo_extension": {
"id": 1822936,
"host": "wccom",
"name": "Bistro",
"type": "theme"
},
"client": "qit_cli",
"event": "cli_development_extension_test",
"optional_features": {
"hpos": false,
"new_product_editor": false
},
"test_results_manager_url": "https:\\/\\/test-results-manager.com",
"test_results_manager_expiration": 1234567890,
"test_summary": "Errors: 0 Warnings: 0",
"debug_log": "",
"version": "1.0.15",
"update_complete": true,
"ai_suggestion_status": "none",
"malware_whitelist_paths": [],
"workflow_id": "1234567890",
"runner": "normalized",
"test_result_json_extracted": "{EXTRACTED}"
},
{
"test_result_json": {
"headers": {
"Requires PHP": "7.4"
}
}
}
]
]';
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php return '[
[
{
"test_run_id": 123456,
"run_id": 123456,
"test_type": "validation",
"test_type_display": "Validation",
"wordpress_version": "6.0.0-normalized",
"woocommerce_version": "6.0.0-normalized",
"php_version": "7.4",
"max_php_version": "",
"min_php_version": "",
"additional_woo_plugins": [],
"additional_wp_plugins": [],
"test_log": "",
"status": "warning",
"test_result_aws_url": "https:\\/\\/test-results-aws.com",
"test_result_aws_expiration": 1234567890,
"is_development": true,
"send_notifications": false,
"woo_extension": {
"id": 18619,
"host": "wccom",
"name": "Google Product Feed",
"type": "plugin"
},
"client": "qit_cli",
"event": "cli_development_extension_test",
"optional_features": {
"hpos": false,
"new_product_editor": false
},
"test_results_manager_url": "https:\\/\\/test-results-manager.com",
"test_results_manager_expiration": 1234567890,
"test_summary": "Errors: 0 Warnings: 1",
"debug_log": "",
"version": "Undefined",
"update_complete": true,
"ai_suggestion_status": "none",
"malware_whitelist_paths": [],
"workflow_id": "1234567890",
"runner": "normalized",
"test_result_json_extracted": "{EXTRACTED}"
},
{
"test_result_json": {
"headers": {
"Requires PHP": false
}
}
}
]
]';
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php return '[
[
{
"test_run_id": 123456,
"run_id": 123456,
"test_type": "validation",
"test_type_display": "Validation",
"wordpress_version": "6.0.0-normalized",
"woocommerce_version": "6.0.0-normalized",
"php_version": "7.4",
"max_php_version": "",
"min_php_version": "",
"additional_woo_plugins": [],
"additional_wp_plugins": [],
"test_log": "",
"status": "warning",
"test_result_aws_url": "https:\\/\\/test-results-aws.com",
"test_result_aws_expiration": 1234567890,
"is_development": true,
"send_notifications": false,
"woo_extension": {
"id": 1822936,
"host": "wccom",
"name": "Bistro",
"type": "theme"
},
"client": "qit_cli",
"event": "cli_development_extension_test",
"optional_features": {
"hpos": false,
"new_product_editor": false
},
"test_results_manager_url": "https:\\/\\/test-results-manager.com",
"test_results_manager_expiration": 1234567890,
"test_summary": "Errors: 0 Warnings: 1",
"debug_log": "",
"version": "1.0.15",
"update_complete": true,
"ai_suggestion_status": "none",
"malware_whitelist_paths": [],
"workflow_id": "1234567890",
"runner": "normalized",
"test_result_json_extracted": "{EXTRACTED}"
},
{
"test_result_json": {
"headers": {
"Requires PHP": false
}
}
}
]
]';
2 changes: 2 additions & 0 deletions _tests/managed_tests/validation/main_plugin/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
return [];
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

/*
* Plugin name: Validation - Main Plugin
* Requires PHP: 7.4
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
8 changes: 8 additions & 0 deletions _tests/managed_tests/validation/main_theme/bistro/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Theme Name: Bistro
Theme URI: https://www.woocommerce.com/products/bistro/
Description: A storefront child theme for fresh goods and organic food stores.
Template: storefront
Version: 1.0.15
Requires PHP: 7.4
*/
2 changes: 2 additions & 0 deletions _tests/managed_tests/validation/main_theme/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
return [];
2 changes: 2 additions & 0 deletions _tests/managed_tests/validation/missing_plugin/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
return [];
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

/*
* Plugin name: Validation - Main Plugin
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Theme Name: Bistro
Theme URI: https://www.woocommerce.com/products/bistro/
Description: A storefront child theme for fresh goods and organic food stores.
Template: storefront
Version: 1.0.15
*/
2 changes: 2 additions & 0 deletions _tests/managed_tests/validation/missing_theme/env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
return [];

0 comments on commit 178822d

Please sign in to comment.