Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
4d233717
Commit
4d233717
authored
Feb 16, 2016
by
Kamil Trzcinski
Committed by
James Edwards-Jones
Jan 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final fixes
parent
361047a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
config/gitlab.yml.example
config/gitlab.yml.example
+2
-2
features/steps/project/pages.rb
features/steps/project/pages.rb
+11
-11
No files found.
config/gitlab.yml.example
View file @
4d233717
...
@@ -165,8 +165,8 @@ production: &base
...
@@ -165,8 +165,8 @@ production: &base
host: example.com
host: example.com
port: 80 # Set to 443 if you serve the pages with HTTPS
port: 80 # Set to 443 if you serve the pages with HTTPS
https: false # Set to true if you serve the pages with HTTPS
https: false # Set to true if you serve the pages with HTTPS
# external_http: "1.1.1.1:80" #
if defined notifies the GitLab pages do support Custom Domain
s
# external_http: "1.1.1.1:80" #
If defined, enables custom domain support in GitLab Page
s
# external_https: "1.1.1.1:443" #
if defined notifies the GitLab pages do support Custom Domains with Certificat
es
# external_https: "1.1.1.1:443" #
If defined, enables custom domain and certificate support in GitLab Pag
es
## Mattermost
## Mattermost
## For enabling Add to Mattermost button
## For enabling Add to Mattermost button
...
...
features/steps/project/pages.rb
View file @
4d233717
...
@@ -4,14 +4,14 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps
...
@@ -4,14 +4,14 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps
include
SharedProject
include
SharedProject
step
'pages are enabled'
do
step
'pages are enabled'
do
Gitlab
.
config
.
pages
.
stub
(
:enabled
).
and_return
(
true
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:enabled
).
and_return
(
true
)
Gitlab
.
config
.
pages
.
stub
(
:host
).
and_return
(
'example.com'
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:host
).
and_return
(
'example.com'
)
Gitlab
.
config
.
pages
.
stub
(
:port
).
and_return
(
80
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:port
).
and_return
(
80
)
Gitlab
.
config
.
pages
.
stub
(
:https
).
and_return
(
false
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:https
).
and_return
(
false
)
end
end
step
'pages are disabled'
do
step
'pages are disabled'
do
Gitlab
.
config
.
pages
.
stub
(
:enabled
).
and_return
(
false
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:enabled
).
and_return
(
false
)
end
end
step
'I visit the Project Pages'
do
step
'I visit the Project Pages'
do
...
@@ -48,18 +48,18 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps
...
@@ -48,18 +48,18 @@ class Spinach::Features::ProjectPages < Spinach::FeatureSteps
end
end
step
'support for external domains is disabled'
do
step
'support for external domains is disabled'
do
Gitlab
.
config
.
pages
.
stub
(
:external_http
).
and_return
(
nil
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:external_http
).
and_return
(
nil
)
Gitlab
.
config
.
pages
.
stub
(
:external_https
).
and_return
(
nil
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:external_https
).
and_return
(
nil
)
end
end
step
'pages are exposed on external HTTP address'
do
step
'pages are exposed on external HTTP address'
do
Gitlab
.
config
.
pages
.
stub
(
:external_http
).
and_return
(
'1.1.1.1:80'
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:external_http
).
and_return
(
'1.1.1.1:80'
)
Gitlab
.
config
.
pages
.
stub
(
:external_https
).
and_return
(
nil
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:external_https
).
and_return
(
nil
)
end
end
step
'pages are exposed on external HTTPS address'
do
step
'pages are exposed on external HTTPS address'
do
Gitlab
.
config
.
pages
.
stub
(
:external_http
).
and_return
(
'1.1.1.1:80'
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:external_http
).
and_return
(
'1.1.1.1:80'
)
Gitlab
.
config
.
pages
.
stub
(
:external_https
).
and_return
(
'1.1.1.1:443'
)
allow
(
Gitlab
.
config
.
pages
).
to
receive
(
:external_https
).
and_return
(
'1.1.1.1:443'
)
end
end
step
'I should be able to add a New Domain'
do
step
'I should be able to add a New Domain'
do
...
...
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