Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mattermost-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
sysadmin
mattermost
mattermost-server
Commits
809779a8
Commit
809779a8
authored
Mar 16, 2016
by
Joram Wilander
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2451 from mattermost/PLT-2344
PLT-2344 support 3 versions back
parents
08a12ac4
64f9b7ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
15 deletions
+22
-15
api/command_loadtest_test.go
api/command_loadtest_test.go
+17
-15
model/version.go
model/version.go
+5
-0
No files found.
api/command_loadtest_test.go
View file @
809779a8
...
...
@@ -201,21 +201,23 @@ func TestLoadTestUrlCommands(t *testing.T) {
t
.
Fatal
(
"/loadtest url for README.md should've executed"
)
}
command
=
"/loadtest url test-emoticons1.md"
if
r
:=
Client
.
Must
(
Client
.
Command
(
channel
.
Id
,
command
,
false
))
.
Data
.
(
*
model
.
CommandResponse
);
r
.
Text
!=
"Loading data..."
{
t
.
Fatal
(
"/loadtest url for test-emoticons.md should've executed"
)
}
command
=
"/loadtest url test-emoticons1"
if
r
:=
Client
.
Must
(
Client
.
Command
(
channel
.
Id
,
command
,
false
))
.
Data
.
(
*
model
.
CommandResponse
);
r
.
Text
!=
"Loading data..."
{
t
.
Fatal
(
"/loadtest url for test-emoticons should've executed"
)
}
posts
:=
Client
.
Must
(
Client
.
GetPosts
(
channel
.
Id
,
0
,
5
,
""
))
.
Data
.
(
*
model
.
PostList
)
// note that this may make more than 3 posts if files are too long to fit in an individual post
if
len
(
posts
.
Order
)
<
3
{
t
.
Fatal
(
"/loadtest url made too few posts, perhaps there needs to be a delay before GetPosts in the test?"
)
}
// Removing these tests since they break compatibilty with previous release branches because the url pulls from github master
// command = "/loadtest url test-emoticons1.md"
// if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." {
// t.Fatal("/loadtest url for test-emoticons.md should've executed")
// }
// command = "/loadtest url test-emoticons1"
// if r := Client.Must(Client.Command(channel.Id, command, false)).Data.(*model.CommandResponse); r.Text != "Loading data..." {
// t.Fatal("/loadtest url for test-emoticons should've executed")
// }
// posts := Client.Must(Client.GetPosts(channel.Id, 0, 5, "")).Data.(*model.PostList)
// // note that this may make more than 3 posts if files are too long to fit in an individual post
// if len(posts.Order) < 3 {
// t.Fatal("/loadtest url made too few posts, perhaps there needs to be a delay before GetPosts in the test?")
// }
time
.
Sleep
(
2
*
time
.
Second
)
}
model/version.go
View file @
809779a8
...
...
@@ -118,5 +118,10 @@ func IsPreviousVersionsSupported(versionToCheck string) bool {
return
true
}
// Current - 3 Supported
if
versionsWithoutHotFixes
[
3
]
==
versionToCheckStr
{
return
true
}
return
false
}
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