summaryrefslogtreecommitdiffstats
path: root/api/command_loadtest.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-04-25 05:39:02 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-04-25 08:39:02 -0400
commit1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da (patch)
tree863bff54a357d09accdab0484e64d13d747f1870 /api/command_loadtest.go
parenta9cde2b0f9092adc7bac91519edff128e63aedef (diff)
downloadchat-1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da.tar.gz
chat-1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da.tar.bz2
chat-1daa0d6b3e2d9adfb136bbe7554d3ad0fbd275da.zip
PLT-2298 fixing ephemeral message for loadtests (#2788)
* PLT-2298 fixing ephemeral message for loadtests * Fixing unit tests
Diffstat (limited to 'api/command_loadtest.go')
-rw-r--r--api/command_loadtest.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/api/command_loadtest.go b/api/command_loadtest.go
index 2738f4b51..b76187960 100644
--- a/api/command_loadtest.go
+++ b/api/command_loadtest.go
@@ -201,7 +201,7 @@ func (me *LoadTestProvider) SetupCommand(c *Context, channelId string, message s
doFuzz)
}
- return &model.CommandResponse{Text: "Creating enviroment...", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
+ return &model.CommandResponse{Text: "Created enviroment", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
func (me *LoadTestProvider) UsersCommand(c *Context, channelId string, message string) *model.CommandResponse {
@@ -231,7 +231,7 @@ func (me *LoadTestProvider) UsersCommand(c *Context, channelId string, message s
userCreator.Fuzzy = doFuzz
userCreator.CreateTestUsers(usersr)
- return &model.CommandResponse{Text: "Adding users...", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
+ return &model.CommandResponse{Text: "Added users", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
func (me *LoadTestProvider) ChannelsCommand(c *Context, channelId string, message string) *model.CommandResponse {
@@ -262,7 +262,7 @@ func (me *LoadTestProvider) ChannelsCommand(c *Context, channelId string, messag
channelCreator.Fuzzy = doFuzz
channelCreator.CreateTestChannels(channelsr)
- return &model.CommandResponse{Text: "Adding channels...", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
+ return &model.CommandResponse{Text: "Added channels", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
func (me *LoadTestProvider) PostsCommand(c *Context, channelId string, message string) *model.CommandResponse {
@@ -312,7 +312,7 @@ func (me *LoadTestProvider) PostsCommand(c *Context, channelId string, message s
testPoster.CreateRandomPost()
}
- return &model.CommandResponse{Text: "Adding posts...", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
+ return &model.CommandResponse{Text: "Added posts", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
func (me *LoadTestProvider) UrlCommand(c *Context, channelId string, message string) *model.CommandResponse {
@@ -361,7 +361,7 @@ func (me *LoadTestProvider) UrlCommand(c *Context, channelId string, message str
}
}
- return &model.CommandResponse{Text: "Loading data...", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
+ return &model.CommandResponse{Text: "Loaded data", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
func (me *LoadTestProvider) JsonCommand(c *Context, channelId string, message string) *model.CommandResponse {
@@ -397,7 +397,7 @@ func (me *LoadTestProvider) JsonCommand(c *Context, channelId string, message st
if _, err := CreatePost(c, post, false); err != nil {
return &model.CommandResponse{Text: "Unable to create post", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
- return &model.CommandResponse{Text: "Loading data...", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
+ return &model.CommandResponse{Text: "Loaded data", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
func parseRange(command string, cmd string) (utils.Range, bool) {