Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
9c17d3d7
Commit
9c17d3d7
authored
Mar 18, 2016
by
Piers Harding
Committed by
Aaron Wells
Jul 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1393536: move menus to admin menu
behatnotneeded Change-Id: I3fc255737f21e4b8f5bc2f06a457f9cdf97e1018
parent
63acb84d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
18 deletions
+65
-18
htdocs/auth/webservice/lang/en.utf8/auth.webservice.php
htdocs/auth/webservice/lang/en.utf8/auth.webservice.php
+3
-1
htdocs/auth/webservice/lib.php
htdocs/auth/webservice/lib.php
+13
-13
htdocs/lib/web.php
htdocs/lib/web.php
+39
-0
test/behat/features/admin/random_clicking.feature
test/behat/features/admin/random_clicking.feature
+7
-1
test/behat/features/admin/webservices_master_switch.feature
test/behat/features/admin/webservices_master_switch.feature
+1
-1
test/behat/features/admin/webservices_switch_dependencies.feature
...at/features/admin/webservices_switch_dependencies.feature
+1
-1
test/behat/features/artefact/blog/adding_journals_to_institution.feature
...ures/artefact/blog/adding_journals_to_institution.feature
+1
-0
test/behat/features/view/menu_navigation.feature
test/behat/features/view/menu_navigation.feature
+0
-1
No files found.
htdocs/auth/webservice/lang/en.utf8/auth.webservice.php
View file @
9c17d3d7
...
...
@@ -128,7 +128,7 @@ $string['missingimplofmeth'] = 'Missing implementation method of "%s"';
$string
[
'cannotfindimplfile'
]
=
'Cannot find file with external function implementation'
;
$string
[
'apptokens'
]
=
'Application connections'
;
$string
[
'connections'
]
=
'Connection
M
anager'
;
$string
[
'connections'
]
=
'Connection
m
anager'
;
$string
[
'servicetokens'
]
=
'Manage service access tokens'
;
$string
[
'tokens'
]
=
'Service access tokens'
;
$string
[
'users'
]
=
'Service users'
;
...
...
@@ -152,6 +152,7 @@ $string['oobinfo'] = 'The following is your verification code that will authoris
$string
[
'instructions'
]
=
'Instructions'
;
$string
[
'webservicelogs'
]
=
'Web services logs'
;
$string
[
'webservicelogsnav'
]
=
'Logs'
;
$string
[
'timetaken'
]
=
'Time taken'
;
$string
[
'timelogged'
]
=
'When'
;
$string
[
'info'
]
=
'Info'
;
...
...
@@ -194,6 +195,7 @@ $string['wsdoc'] = 'Web services documentation';
// testclient
$string
[
'testclient'
]
=
'Web services test client'
;
$string
[
'testclientnav'
]
=
'Test client'
;
$string
[
'tokenauth'
]
=
'Token'
;
$string
[
'userauth'
]
=
'User'
;
$string
[
'certauth'
]
=
'Certificate'
;
...
...
htdocs/auth/webservice/lib.php
View file @
9c17d3d7
...
...
@@ -94,33 +94,33 @@ class PluginAuthWebservice extends PluginAuth {
}
$map
=
array
(
'
configextensions/
webservices'
=>
array
(
'path'
=>
'
configextensions/
webservices'
,
'webservices'
=>
array
(
'path'
=>
'webservices'
,
'url'
=>
'webservice/admin/index.php'
,
'title'
=>
get_string
(
'webservice'
,
'auth.webservice'
),
'weight'
=>
5
0
,
'weight'
=>
7
0
,
),
'
configextensions/
webservices/oauthconfig'
=>
array
(
'path'
=>
'
configextensions/
webservices/oauthconfig'
,
'webservices/oauthconfig'
=>
array
(
'path'
=>
'webservices/oauthconfig'
,
'url'
=>
'webservice/admin/oauthv1sregister.php'
,
'title'
=>
get_string
(
'oauth'
,
'auth.webservice'
),
'weight'
=>
10
,
),
'
configextensions/
webservices/logs'
=>
array
(
'path'
=>
'
configextensions/
webservices/logs'
,
'webservices/logs'
=>
array
(
'path'
=>
'webservices/logs'
,
'url'
=>
'webservice/admin/webservicelogs.php'
,
'title'
=>
get_string
(
'webservicelogs'
,
'auth.webservice'
),
'title'
=>
get_string
(
'webservicelogs
nav
'
,
'auth.webservice'
),
'weight'
=>
20
,
),
'
configextensions/
webservices/testclient'
=>
array
(
'path'
=>
'
configextensions/
webservices/testclient'
,
'webservices/testclient'
=>
array
(
'path'
=>
'webservices/testclient'
,
'url'
=>
'webservice/testclient.php'
,
'title'
=>
get_string
(
'testclient'
,
'auth.webservice'
),
'title'
=>
get_string
(
'testclient
nav
'
,
'auth.webservice'
),
'weight'
=>
30
,
),
'
configextensions/
webservices/apps'
=>
array
(
'path'
=>
'
configextensions/
webservices/apps'
,
'webservices/apps'
=>
array
(
'path'
=>
'webservices/apps'
,
'url'
=>
'webservice/apptokens.php'
,
'title'
=>
get_string
(
'apptokens'
,
'auth.webservice'
),
'weight'
=>
40
,
...
...
htdocs/lib/web.php
View file @
9c17d3d7
...
...
@@ -2539,6 +2539,45 @@ function admin_nav() {
'title'
=>
get_string
(
'cleanurls'
,
'admin'
),
'weight'
=>
40
,
),
'webservices'
=>
array
(
'path'
=>
'webservices'
,
'url'
=>
'webservice/admin/index.php'
,
'title'
=>
get_string
(
'webservice'
,
'auth.webservice'
),
'accessibletitle'
=>
get_string
(
'webservice'
,
'auth.webservice'
),
'weight'
=>
70
,
'accesskey'
=>
'w'
,
),
'webservices/oauthconfig'
=>
array
(
'path'
=>
'webservices/oauthconfig'
,
'url'
=>
'webservice/admin/oauthv1sregister.php'
,
'title'
=>
get_string
(
'oauth'
,
'auth.webservice'
),
'weight'
=>
10
,
),
'webservices/logs'
=>
array
(
'path'
=>
'webservices/logs'
,
'url'
=>
'webservice/admin/webservicelogs.php'
,
'title'
=>
get_string
(
'webservicelogs'
,
'auth.webservice'
),
'weight'
=>
20
,
),
'webservices/testclient'
=>
array
(
'path'
=>
'webservices/testclient'
,
'url'
=>
'webservice/testclient.php'
,
'title'
=>
get_string
(
'testclient'
,
'auth.webservice'
),
'weight'
=>
30
,
),
'webservices/apps'
=>
array
(
'path'
=>
'webservices/apps'
,
'url'
=>
'webservice/apptokens.php'
,
'title'
=>
get_string
(
'apptokens'
,
'auth.webservice'
),
'weight'
=>
40
,
),
'webservices/connections'
=>
array
(
'path'
=>
'webservices/connections'
,
'url'
=>
'webservice/admin/connections.php'
,
'title'
=>
get_string
(
'connections'
,
'auth.webservice'
),
'weight'
=>
50
,
),
);
// Add the menu items for skins, if that feature is enabled
...
...
test/behat/features/admin/random_clicking.feature
View file @
9c17d3d7
...
...
@@ -102,7 +102,13 @@ Scenario: Clicking randomly around Mahara (Bug: 1426983)
And
I choose
"HTML filters"
in
"Extensions"
And
I choose
"Allowed iframe sources"
in
"Extensions"
And
I choose
"Clean URLs"
in
"Extensions"
And
I choose
"Web services"
in
"Extensions"
# Checking Web services Menu and submenu
And
I choose
"Web services"
in
"Web services"
And
I choose
"OAuth"
in
"Web services"
And
I choose
"Logs"
in
"Web services"
And
I choose
"Test client"
in
"Web services"
And
I choose
"Application connections"
in
"Web services"
And
I choose
"Connection manager"
in
"Web services"
# The test should be completed once if Return to site works successfully
And
I follow
"Return to site"
And
I should see
"Admin User"
\ No newline at end of file
test/behat/features/admin/webservices_master_switch.feature
View file @
9c17d3d7
...
...
@@ -13,7 +13,7 @@ Given the following "users" exist:
Scenario
:
Turning master switch on
Given
I log in as
"admin"
with password
"Kupuhipa1"
And
I follow
"Administration"
And
I choose
"Web services"
in
"
Extension
s"
And
I choose
"Web services"
in
"
Web service
s"
# Turning the master switch on
And I enable the switch "Use web services
:
"
When
I go to
"/webservice/testclient.php"
...
...
test/behat/features/admin/webservices_switch_dependencies.feature
View file @
9c17d3d7
...
...
@@ -7,7 +7,7 @@ So I can benefit from the mahara/moodle cross over.
Scenario
:
Turning Master swtiches and protocol switches on checking test client page is accessible (Bug 1431540)
Given
I log in as
"admin"
with password
"Kupuhipa1"
And
I follow
"Administration"
And
I choose
"Web services"
in
"
Extension
s"
And
I choose
"Web services"
in
"
Web service
s"
# Turning the master switch on
And I enable the switch "Use web services
:
"
# Turning the master switch off so the protocols are disabled
...
...
test/behat/features/artefact/blog/adding_journals_to_institution.feature
View file @
9c17d3d7
...
...
@@ -117,6 +117,7 @@ Scenario: Newly created user can get a copy of the journal (Bug 1472467)
And
I set the field
"Site journal 1"
to
"1"
And
I select
"Others will get their own copy of your journal"
from
"Block copy permission"
And
I press
"Save"
And
I scroll to the id
"main-nav"
And
I follow
"Share page"
And
I select
"Registered users"
from
"accesslist[0][searchtype]"
And
I follow
"Advanced options"
...
...
test/behat/features/view/menu_navigation.feature
View file @
9c17d3d7
...
...
@@ -129,7 +129,6 @@ Scenario: Checking menu items are available as Admin User (Bug 1467368)
And
I should see
"HTML filters"
in the
"#sub-nav"
"css_element"
And
I should see
"Allowed iframe sources"
in the
"#sub-nav"
"css_element"
And
I should see
"Clean URLs"
in the
"#sub-nav"
"css_element"
And
I should see
"Web services"
in the
"#sub-nav"
"css_element"
Scenario
:
Checking menu items are available as Institution Administrator (Bug 1467368)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment