first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
@core @core_cache
Feature: Display cache information in performance info
In order to investigate performance problems with caching
As an administrator
I need to be able to see cache information in perfinfo
Background:
Given the following config values are set as admin:
| perfdebug | 15 |
And the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
Scenario: Cache performance info displays
When I am on the "C1" "Course" page logged in as "admin"
# Confirm that the first cache info table is visible by checking an arbitrary row.
Then I should see "default_application" in the "core/databasemeta" "table_row"
# Don't specify the exact size as it may vary.
And I should see "KB" in the "core/databasemeta" "table_row"
# Confirm that the second cache info table is visible.
And I should see "default_application" in the "cachestore_file" "table_row"
+27
View File
@@ -0,0 +1,27 @@
@core @core_cache @javascript
Feature: Verify the breadcrumbs in different cache site administration pages
Whenever I navigate to caching configuration page in site administration
As an admin
The breadcrumbs should be visible
Background:
Given I log in as "admin"
Scenario: Verify the breadcrumbs in caching configuration, add assistance, edit mappings and edit sharings page as an admin
Given I navigate to "Plugins > Caching > Configuration" in site administration
And "Configuration" "text" should exist in the ".breadcrumb" "css_element"
And "Caching" "link" should exist in the ".breadcrumb" "css_element"
When I click on "Add instance" "link"
Then "Add cache store" "text" should exist in the ".breadcrumb" "css_element"
And "Configuration" "link" should exist in the ".breadcrumb" "css_element"
And "Caching" "link" should exist in the ".breadcrumb" "css_element"
And I press "Cancel"
And I click on "Edit mappings" "link"
And "Edit definition mapping" "text" should exist in the ".breadcrumb" "css_element"
And "Configuration" "link" should exist in the ".breadcrumb" "css_element"
And "Caching" "link" should exist in the ".breadcrumb" "css_element"
And I press "Cancel"
And I click on "Edit sharing" "link"
And "Edit definition sharing" "text" should exist in the ".breadcrumb" "css_element"
And "Configuration" "link" should exist in the ".breadcrumb" "css_element"
And "Caching" "link" should exist in the ".breadcrumb" "css_element"
+35
View File
@@ -0,0 +1,35 @@
@core @core_cache
Feature: Display usage information for cache
In order to investigate performance problems with caching
As an administrator
I need to be able to monitor the size of items in the cache
Background:
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
Scenario: Cache performance info displays
When I am on the "C1" "Course" page logged in as "admin"
And I navigate to "Plugins > Caching > Cache usage" in site administration
# Check one row of the summary table. The actual total is currently 3.6MB so it's likely to
# continue to be in the MB range.
Then "default_application" row "Plugin" column of "usage_summary" table should contain "cachestore_file"
And "default_application" row "Estimated total" column of "usage_summary" table should contain "MB"
And "default_application" row "Actual usage (if known)" column of "usage_summary" table should contain "MB"
# And one row of the main table. The totals are fixed to use the MB unit.
And "core/config" row "Store name" column of "usage_main" table should contain "default_application"
And "core/config" row "Plugin" column of "usage_main" table should contain "cachestore_file"
And "core/config" row "Estimated total" column of "usage_main" table should contain "MB"
Scenario: Sample option works
When I am on the "C1" "Course" page logged in as "admin"
And I navigate to "Plugins > Caching > Cache usage" in site administration
And I set the field "samples" to "1000"
And I press "Update"
Then the field "samples" matches value "1000"
And "usage_summary" "table" should exist
And "usage_main" "table" should exist