Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
backup /
util /
ui /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
backup_courses.feature
2.67
KB
-rwxrwxrwx
behat_backup.php
17.75
KB
-rwxrwxrwx
duplicate_activities.feature
1.77
KB
-rwxrwxrwx
import_contentbank_content.fea...
1.85
KB
-rwxrwxrwx
import_course.feature
1.59
KB
-rwxrwxrwx
import_groups.feature
2.02
KB
-rwxrwxrwx
restore_moodle2_courses.featur...
10.97
KB
-rwxrwxrwx
restore_moodle2_courses_settin...
5.44
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : restore_moodle2_courses.feature
@core @core_backup Feature: Restore Moodle 2 course backups In order to continue using my stored course contents As a teacher and an admin I need to restore them inside other Moodle courses or in new courses Background: Given the following "courses" exist: | fullname | shortname | category | format | numsections | coursedisplay | | Course 1 | C1 | 0 | topics | 15 | 1 | | Course 2 | C2 | 0 | topics | 5 | 0 | | Course 3 | C3 | 0 | topics | 2 | 0 | | Course 4 | C4 | 0 | topics | 20 | 0 | And the following "activities" exist: | activity | course | idnumber | name | intro | section | externalurl | | assign | C3 | assign1 | Test assign name | Assign description | 1 | | | data | C3 | data1 | Test database name | Database description | 2 | | | forum | C1 | 0001 | Test forum name | | 1 | | | url | C1 | url1 | Test URL name | Test URL description | 3 | http://www.moodle.org | And the following "blocks" exist: | blockname | contextlevel | reference | pagetypepattern | defaultregion | | activity_modules | Course | C1 | course-view-* | side-pre | And I log in as "admin" And I am on "Course 1" course homepage with editing mode on @javascript Scenario: Restore a course in another existing course When I backup "Course 1" course using this options: | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into "Course 2" course using this options: Then I should see "Course 2" And I should see "Activities" in the "Activities" "block" And I should see "Test forum name" @javascript Scenario: Restore a course in a new course When I backup "Course 1" course using this options: | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into a new course using this options: | Schema | Course name | Course 1 restored in a new course | Then I should see "Course 1 restored in a new course" And I should see "Activities" in the "Activities" "block" And I should see "Test forum name" And I should see "Topic 15" And I should not see "Topic 16" And I navigate to "Edit settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Topics format" And I press "Cancel" @javascript Scenario: Restore a backup into the same course When I backup "Course 3" course using this options: | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into "Course 2" course using this options: | Schema | Test database name | 0 | | Schema | Section 2 | 0 | Then I should see "Course 2" And I should see "Test assign name" And I should not see "Test database name" @javascript Scenario: Restore a backup into the same course removing it's contents before that When I backup "Course 1" course using this options: | Confirmation | Filename | test_backup.mbz | And the following "activity" exists: | activity | forum | | course | C1 | | section | 1 | | name | Test forum post backup name | And I am on "Course 1" course homepage And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Section 3 | 0 | Then I should see "Course 1" And I should not see "Section 3" And I should not see "Test forum post backup name" And I should see "Activities" in the "Activities" "block" And I should see "Test forum name" @javascript Scenario: Restore a backup into a new course changing the course format afterwards Given I backup "Course 1" course using this options: | Confirmation | Filename | test_backup.mbz | When I restore "test_backup.mbz" backup into a new course using this options: Then I should see "Topic 1" And I should see "Test forum name" And I navigate to "Edit settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Topics format" And I set the following fields to these values: | id_startdate_day | 1 | | id_startdate_month | January | | id_startdate_year | 2020 | | id_format | Weekly format | | id_enddate_enabled | 0 | And I press "Save and display" And I should see "1 January - 7 January" And I should see "Test forum name" And I navigate to "Edit settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Weekly format" And I set the following fields to these values: | id_format | Social format | And I press "Save and display" And I should see "An open forum for chatting about anything you want to" And I navigate to "Edit settings" in current page administration And I expand all fieldsets And the field "id_format" matches value "Social format" And I press "Cancel" @javascript Scenario: Restore a backup in an existing course retaining the backup course settings Given I hide section "3" And I hide section "7" When I backup "Course 1" course using this options: | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into "Course 2" course using this options: | Schema | Overwrite course configuration | Yes | And I navigate to "Edit settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course layout" matches value "Show one section per page" And the field "Course short name" matches value "C1_1" And I press "Cancel" And section "3" should be visible And section "7" should be hidden And section "15" should be visible And I should see "Topic 15" And I should not see "Topic 16" And I should see "Test URL name" in the "Topic 3" "section" And I should see "Test forum name" in the "Topic 1" "section" @javascript Scenario: Restore a backup in an existing course keeping the target course settings Given I hide section "3" And I hide section "7" When I backup "Course 1" course using this options: | Confirmation | Filename | test_backup.mbz | And I restore "test_backup.mbz" backup into "Course 2" course using this options: | Schema | Overwrite course configuration | No | And I navigate to "Edit settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course short name" matches value "C2" And the field "Course layout" matches value "Show all sections on one page" And I press "Cancel" And section "3" should be visible And section "7" should be hidden And section "15" should be visible And I should see "Topic 15" And I should not see "Topic 16" And I should see "Test URL name" in the "Topic 3" "section" And I should see "Test forum name" in the "Topic 1" "section" @javascript Scenario: Restore a backup in an existing course deleting contents and retaining the backup course settings Given I hide section "3" And I hide section "7" When I backup "Course 1" course using this options: | Initial | Include enrolled users | 0 | | Confirmation | Filename | test_backup.mbz | And I am on "Course 2" course homepage And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Overwrite course configuration | Yes | And I navigate to "Edit settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course layout" matches value "Show one section per page" And the field "Course short name" matches value "C1_1" And I press "Cancel" And section "3" should be hidden And section "7" should be hidden And section "15" should be visible And I should see "Topic 15" And I should not see "Topic 16" And I should see "Test URL name" in the "Topic 3" "section" And I should see "Test forum name" in the "Topic 1" "section" @javascript Scenario: Restore a backup in an existing course deleting contents and keeping the current course settings Given I hide section "3" And I hide section "7" When I backup "Course 1" course using this options: | Initial | Include enrolled users | 0 | | Confirmation | Filename | test_backup.mbz | And I am on "Course 2" course homepage And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Overwrite course configuration | No | And I navigate to "Edit settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course short name" matches value "C2" And the field "Course layout" matches value "Show all sections on one page" And I press "Cancel" And section "3" should be hidden And section "7" should be hidden And section "15" should be visible And I should see "Topic 15" And I should not see "Topic 16" And I should see "Test URL name" in the "Topic 3" "section" And I should see "Test forum name" in the "Topic 1" "section" @javascript Scenario: Restore a backup in an existing course deleting contents decreasing the number of sections Given I hide section "3" And I hide section "7" When I backup "Course 1" course using this options: | Initial | Include enrolled users | 0 | | Confirmation | Filename | test_backup.mbz | And I am on "Course 4" course homepage And I navigate to "Restore" in current page administration And I merge "test_backup.mbz" backup into the current course after deleting it's contents using this options: | Schema | Overwrite course configuration | No | And I navigate to "Edit settings" in current page administration And I expand all fieldsets Then the field "id_format" matches value "Topics format" And the field "Course short name" matches value "C4" And the field "Course layout" matches value "Show all sections on one page" And I press "Cancel" And section "3" should be hidden And section "7" should be hidden And section "15" should be visible And I should see "Topic 15" And I should not see "Topic 16" And I should see "Test URL name" in the "Topic 3" "section" And I should see "Test forum name" in the "Topic 1" "section"
Close