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 /
mod /
forum /
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--
add_forum.feature
1.84
KB
-rwxrwxrwx
add_forum_inline.feature
1.48
KB
-rwxrwxrwx
advanced_search.feature
5.7
KB
-rwxrwxrwx
behat_mod_forum.php
20.8
KB
-rwxrwxrwx
completion_condition_number_di...
2.19
KB
-rwxrwxrwx
discussion_display.feature
5.29
KB
-rwxrwxrwx
discussion_lock.feature
2.3
KB
-rwxrwxrwx
discussion_navigation.feature
5.99
KB
-rwxrwxrwx
discussion_subscriptions.featu...
20.39
KB
-rwxrwxrwx
edit_post_student.feature
2.25
KB
-rwxrwxrwx
edit_post_teacher.feature
2.81
KB
-rwxrwxrwx
edit_tags.feature
3.17
KB
-rwxrwxrwx
favourite_discussion.feature
2.42
KB
-rwxrwxrwx
forum_display_word_count.featu...
3.2
KB
-rwxrwxrwx
forum_export.feature
2.67
KB
-rwxrwxrwx
forum_subscriptions.feature
3.79
KB
-rwxrwxrwx
forum_subscriptions_availabili...
4.71
KB
-rwxrwxrwx
forum_subscriptions_default.fe...
5.66
KB
-rwxrwxrwx
forum_subscriptions_management...
2.15
KB
-rwxrwxrwx
grade_forum.feature
7.57
KB
-rwxrwxrwx
grade_view_discussion.feature
2.73
KB
-rwxrwxrwx
groups_in_course_no_groups_in_...
2.31
KB
-rwxrwxrwx
inpage_reply.feature
2.03
KB
-rwxrwxrwx
move_discussion.feature
1.52
KB
-rwxrwxrwx
my_forum_posts.feature
1.7
KB
-rwxrwxrwx
no_groups_in_course.feature
3.51
KB
-rwxrwxrwx
portfolio_export.feature
1.8
KB
-rwxrwxrwx
post_to_multiple_groups.featur...
4.52
KB
-rwxrwxrwx
posts_ordering_blog.feature
3.3
KB
-rwxrwxrwx
posts_ordering_general.feature
3.46
KB
-rwxrwxrwx
private_replies.feature
2.65
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
recent_activity.feature
6.82
KB
-rwxrwxrwx
separate_group_discussions.fea...
12.91
KB
-rwxrwxrwx
separate_group_single_group_di...
3.22
KB
-rwxrwxrwx
single_forum_discussion.featur...
1.74
KB
-rwxrwxrwx
split_forum_discussion.feature
2.48
KB
-rwxrwxrwx
timed_discussions.feature
2.08
KB
-rwxrwxrwx
track_read_posts.feature
8.06
KB
-rwxrwxrwx
visible_group_discussions.feat...
12.43
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : discussion_subscriptions.feature
@mod @mod_forum Feature: A user can control their own subscription preferences for a discussion In order to receive notifications for things I am interested in As a user I need to choose my discussion subscriptions Background: Given the following "users" exist: | username | firstname | lastname | email | | student1 | Student | One | student.one@example.com | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | student1 | C1 | student | @javascript Scenario: An optional forum can have discussions subscribed to Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 0 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | | admin | Test forum name | Test post subject two | Test post message two | When I am on the "Test forum name" "forum activity" page logged in as student1 Then I can subscribe to this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can subscribe to this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can subscribe to this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can subscribe to this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I subscribe to this forum And I should see "Student One will be notified of new posts in 'Test forum name'" And I can unsubscribe from this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I unsubscribe from this forum And I should see "Student One will NOT be notified of new posts in 'Test forum name'" And I can subscribe to this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" @javascript Scenario: An automatic subscription forum can have discussions unsubscribed from Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 2 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | | admin | Test forum name | Test post subject two | Test post message two | When I am on the "Test forum name" "forum activity" page logged in as student1 Then I can unsubscribe from this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can unsubscribe from this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can unsubscribe from this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can unsubscribe from this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I unsubscribe from this forum And I should see "Student One will NOT be notified of new posts in 'Test forum name'" And I can subscribe to this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I subscribe to this forum And I should see "Student One will be notified of new posts in 'Test forum name'" And I can unsubscribe from this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" @javascript Scenario: A user does not lose their preferences when a forum is switch from optional to automatic Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 0 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | | admin | Test forum name | Test post subject two | Test post message two | And I am on the "Test forum name" "forum activity" page logged in as student1 And I can subscribe to this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can subscribe to this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I am on the "Test forum name" "forum activity" page logged in as admin And I navigate to "Edit settings" in current page administration And I set the following fields to these values: | Subscription mode | Auto subscription | And I press "Save and return to course" And I am on the "Test forum name" "forum activity" page logged in as student1 And I can unsubscribe from this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" When I unsubscribe from this forum Then I should see "Student One will NOT be notified of new posts in 'Test forum name'" And I can subscribe to this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" @javascript Scenario: A user does not lose their preferences when a forum is switch from optional to automatic Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 0 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | | admin | Test forum name | Test post subject two | Test post message two | And I am on the "Test forum name" "forum activity" page logged in as student1 And I can subscribe to this forum And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I click on "input[id^=subscription-toggle]" "css_element" in the "Test post subject one" "table_row" And I can subscribe to this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I am on the "Test forum name" "forum activity editing" page logged in as admin And I set the following fields to these values: | Subscription mode | Auto subscription | And I press "Save and return to course" And I am on the "Test forum name" "forum activity" page logged in as student1 And I can unsubscribe from this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject two" "table_row" When I unsubscribe from this forum And I should see "Student One will NOT be notified of new posts in 'Test forum name'" And I can subscribe to this forum And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" Scenario: An optional forum prompts a user to subscribe to a discussion when posting unless they have already chosen not to subscribe Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 0 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | | admin | Test forum name | Test post subject two | Test post message two | When I am on the "Test forum name" "forum activity" page logged in as student1 And I should see "Subscribe to this forum" And I reply "Test post subject one" post from "Test forum name" forum with: | Subject | Reply 1 to discussion 1 | | Message | Discussion contents 1, second message | | Discussion subscription | 1 | And I reply "Test post subject two" post from "Test forum name" forum with: | Subject | Reply 1 to discussion 1 | | Message | Discussion contents 1, second message | | Discussion subscription | 0 | And I am on the "Test forum name" "forum activity" page Then "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I follow "Test post subject one" And I follow "Reply" And the field "Discussion subscription" matches value "Send me notifications of new posts in this discussion" And I follow "Test forum name" And I follow "Test post subject two" And I follow "Reply" And the field "Discussion subscription" matches value "I don't want to be notified of new posts in this discussion" Scenario: An automatic forum prompts a user to subscribe to a discussion when posting unless they have already chosen not to subscribe Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 2 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | | admin | Test forum name | Test post subject two | Test post message two | When I am on the "Test forum name" "forum activity" page logged in as student1 And I should see "Unsubscribe from this forum" And I reply "Test post subject one" post from "Test forum name" forum with: | Subject | Reply 1 to discussion 1 | | Message | Discussion contents 1, second message | | Discussion subscription | 1 | And I reply "Test post subject two" post from "Test forum name" forum with: | Subject | Reply 1 to discussion 1 | | Message | Discussion contents 1, second message | | Discussion subscription | 0 | And I am on the "Test forum name" "forum activity" page Then "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And "Subscribe to this discussion" "checkbox" should exist in the "Test post subject two" "table_row" And I follow "Test post subject one" And I follow "Reply" And the field "Discussion subscription" matches value "Send me notifications of new posts in this discussion" And I am on the "Test forum name" "forum activity" page And I follow "Test post subject two" And I follow "Reply" And the field "Discussion subscription" matches value "I don't want to be notified of new posts in this discussion" Scenario: A guest should not be able to subscribe to a discussion Given the following "activities" exist: | activity | name | course | section | idnumber | type | | forum | Test forum name | Acceptance test site | 1 | forum1 | general | And the following forum discussions exist in course "Acceptance test site": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | When I am on the "Test forum name" "forum activity" page logged in as guest Then "Subscribe to this discussion" "checkbox" should not exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should not exist in the "Test post subject one" "table_row" And I follow "Test post subject one" And "Subscribe to this discussion" "checkbox" should not exist And "Unsubscribe from this discussion" "checkbox" should not exist Scenario: A user who is not logged in should not be able to subscribe to a discussion Given the following "activities" exist: | activity | name | course | section | idnumber | type | | forum | Test forum name | Acceptance test site | 1 | forum1 | general | And the following forum discussions exist in course "Acceptance test site": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | When I am on site homepage And I follow "Test forum name" Then "Subscribe to this discussion" "checkbox" should not exist in the "Test post subject one" "table_row" And "Unsubscribe from this discussion" "checkbox" should not exist in the "Test post subject one" "table_row" And I follow "Test post subject one" And "Subscribe to this discussion" "checkbox" should not exist And "Unsubscribe from this discussion" "checkbox" should not exist Scenario: A user can toggle their subscription preferences when viewing a discussion Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | forum1 | | name | Test forum name | | type | general | | forcesubscribe | 0 | And the following forum discussions exist in course "Course 1": | user | forum | name | message | | admin | Test forum name | Test post subject one | Test post message one | When I am on the "Test forum name" "forum activity" page logged in as student1 Then "Subscribe to this forum" "link" should exist in current page administration And I follow "Test post subject one" And "You are not subscribed to this discussion. Click to subscribe" "link" should exist And I follow "Test forum name" And I navigate to "Subscribe to this forum" in current page administration And I should see "Student One will be notified of new posts in 'Test forum name'" And "Unsubscribe from this forum" "link" should exist in current page administration And I follow "Test post subject one" And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist And I follow "You are subscribed to this discussion. Click to unsubscribe" And I should see "Student One will NOT be notified of new posts in 'Test post subject one' of 'Test forum name'" And I follow "Test post subject one" And "You are not subscribed to this discussion. Click to subscribe" "link" should exist And I follow "Test forum name" And I navigate to "Unsubscribe from this forum" in current page administration And I should see "Student One will NOT be notified of new posts in 'Test forum name'" And "Subscribe to this forum" "link" should exist in current page administration And I follow "Test post subject one" And "You are not subscribed to this discussion. Click to subscribe" "link" should exist And I follow "You are not subscribed to this discussion. Click to subscribe" And I should see "Student One will be notified of new posts in 'Test post subject one' of 'Test forum name'" And "Unsubscribe from this discussion" "checkbox" should exist in the "Test post subject one" "table_row" And I follow "Test forum name" And I navigate to "Subscribe to this forum" in current page administration And I should see "Student One will be notified of new posts in 'Test forum name'" And "Unsubscribe from this forum" "link" should exist in current page administration And I follow "Test post subject one" And "You are subscribed to this discussion. Click to unsubscribe" "link" should exist And I follow "Test forum name" And I navigate to "Unsubscribe from this forum" in current page administration And I should see "Student One will NOT be notified of new posts in 'Test forum name'" And "Subscribe to this forum" "link" should exist in current page administration And I follow "Test post subject one" And "You are not subscribed to this discussion. Click to subscribe" "link" should exist
Close