Sascha Andres
ade6044441
MM-19135 Migrate tests from "model/channel_member_test.go" to… ( #12651 )
2019-10-15 11:48:06 +03:00
Lev
7239f8da60
Bumped Jira plugin version to 2.2.2 ( #12770 )
...
* Bumped the Jira plugin to v2.2.0
* Bumped Jira plugin version to 2.2.1
* Bumped Jira plugin version to 2.2.2
* Bumped Jira plugin version to v2.2.2
2019-10-14 20:36:56 -07:00
Ibrahim Serdar Acikgoz
d5fa1297a9
services/filestore: migrate s3store_test to testify ( #12685 )
...
* services/filestore: migrate s3store_test to testify
* services/filestore: s3_store_test.go polished
2019-10-14 21:25:44 +02:00
Santosh Desani
dc05e81012
[MM-18277] Refactor plugin/health_check.go to use structured l… ( #12734 )
2019-10-14 12:00:23 -06:00
Scott Bishel
06866952b6
MM-16861: Support Guest Authentication via AD/LDAP ( #12690 )
...
* Add config settings for LDAPSettings GuestFilter
* make error unique
* Update model/config.go
Co-Authored-By: Martin Kraft <martin@upspin.org >
* add LdapSetting isempty_guest_attribute to diagnostics.go
2019-10-14 11:38:17 -06:00
Nikhil Ranjan
c5dcd85bc8
Converting to structured logging the file store/sqlstore/upgrade.go ( #12628 )
...
* Converting to structured logging the file store/sqlstore/upgrade.go
* changes as per review
2019-10-14 12:55:50 +02:00
Shodiq Muhammad
6f4f06f8d4
change t.Fatal to assertions in model/outgoing_webhook_test.go ( #12693 )
...
* change t.Fatal to assertions in model/outgoing_webhook_test.go
* user assert NotNilf and Nilf, remove backticks
2019-10-13 21:39:30 +02:00
George Felix
b860355f30
Convert model/channel_test.go validation calls into assert/require calls ( #12605 )
...
* Convert model/channel_test.go t.Fatal calls into assert/require calls
* Removed blank spaces
* Changes based on suggestions coming from related task https://github.com/mattermost/mattermost-server/pull/12602#pullrequestreview-296859312
2019-10-13 21:38:58 +02:00
Jairo Junior
babbe087ff
Convert app/import_test.go t.Fatal calls into assert/require calls ( #12228 )
2019-10-13 21:38:28 +02:00
Mike Vanbuskirk
705090999b
migrate t.Fatal to require.Fail ( #12530 )
...
* migrate t.Fatal to require.Fail
* remove nested if/else logic in tests, use bool
* correct bool eval on plugin tests
2019-10-13 21:38:06 +02:00
Vitalii Ananichev
2f5949d05e
Migrate tests from "model/cluster_stats_test.go" to use testify ( #12580 )
2019-10-13 21:37:41 +02:00
Michael Kochell
467141ab69
[MM-19004] Change assertion in client4/system_test.go to be less flaky ( #12586 )
...
* avoid swallowing errors from websocket_client.SendMessage
* Revert "avoid swallowing errors from websocket_client.SendMessage"
This reverts commit 5f223e0996f59f31792607c8a4fbf63bf42040ee.
* test against app.TotalWebsocketConnections instead of hardcoding assertion
2019-10-13 20:37:34 +02:00
Karan Nadagoudar
fa8e57d91a
[MM-19122] Migrate tests from "model/user_access_token_test.go" to use testify ( #12581 )
...
* Migrated to testify/require and testify/assert.
2019-10-12 12:09:27 +03:00
TPaschalis
946a5c1417
Mm 19027 ( #12498 )
...
* Migrate tests from model/websocket_request_test.go to use testifyy
* Migrate tests from model/websocket_request_test.go to use testify
* Update model/websocket_request_test.go
Co-Authored-By: Miguel de la Cruz <mgdelacroix@gmail.com >
* Update model/websocket_request_test.go
Co-Authored-By: Miguel de la Cruz <mgdelacroix@gmail.com >
2019-10-11 23:00:23 +02:00
Marc Argent
97496d4e29
Migrate tests from model/search_params_test.go to use testify ( #12650 )
2019-10-11 19:54:04 +02:00
WonChul Heo
68fc1b6e5e
Migrate assert ( #12643 )
2019-10-11 16:25:31 +02:00
Ogundele Olumide
867027117e
MM-18281 Refactor "app/server_app_adapters.go" to use structured logging ( #12503 )
...
* chore: refactor to use structured logging
- remove the unsed fmt package
- convert the fmt.sprintt to the structured logging
* implement requested changes from iomodo
* implement feedback from willfrog
2019-10-11 16:24:54 +02:00
Jesús Espino
c58c08283e
Fixing guest invites acceptance ( #12698 )
2019-10-11 16:20:55 +02:00
Witold Konior
38519e349f
[MM-19356] Migrate tests from "store/storetest/system_store.go" ( #12719 )
...
* [MM-19356] Migrate tests from "store/storetest/system_store.go" to use testify
* retest
2019-10-11 15:45:10 +02:00
Lev
8dff860472
Bumped GitLab plugin version to 1.0.1 ( #12406 )
2019-10-11 06:09:38 -07:00
Sai Sandeep Mutyala
bda129f36e
Migrated tests from model/user_test.go to use testify ( #12681 )
2019-10-11 15:08:49 +02:00
Raghubendra Singh
f167a39abe
Update command_test.go ( #12654 )
2019-10-11 15:08:18 +02:00
Kashif Jamal Soofi
955242e404
Migrate test from user_search_test.go to use testify ( #12648 )
2019-10-11 15:07:51 +02:00
Simon Frey
60def7a488
Replace t.Fatal for the testify require.Equal function ( #12646 )
2019-10-11 15:07:17 +02:00
May
4cbbf7768d
Migrate tests from "model/preference_test.go" to use testify ( #12640 )
...
* Update preference_test
* Update preference_test.go to use require package
* remove nil check for json decoder
2019-10-11 15:06:41 +02:00
Romain Maneschi
f7a8d63cd0
testify model/user_terms_of_Service test ( #12639 )
2019-10-11 15:06:11 +02:00
Karan Nadagoudar
b56ce0e67a
Migrated t.fatal to testify/require. ( #12625 )
2019-10-11 15:05:36 +02:00
Sheshagiri Rao Mallipedhi
94a77e2ddb
Migrate tests from "model/authorize_test.go" to use testify ( #12606 )
...
* refactor tests, move to testify tests
* replace t.Fatal with require from testify
2019-10-11 15:05:09 +02:00
Sheshagiri Rao Mallipedhi
77dc6a9544
refactor tests, move to testify tests ( #12604 )
2019-10-11 15:04:16 +02:00
Karan Nadagoudar
8f93d3b6f0
[MM-19140] Migrate tests from "model/command_test.go" to use testify. ( #12584 )
...
* Migrate t.Fatal to testify.
* Migrate t.Fatal to testify.
* Code refactor.
* Test case fix.
2019-10-11 15:03:46 +02:00
Sahil Sharma
b7e2fdeb37
Migrates tests for "model/initial_load_test.go" to use testify ( #12582 )
2019-10-11 15:00:58 +02:00
Vitalii Ananichev
ea5d002ca7
Migrate tests from "model/audits_test.go" to use testify ( #12576 )
2019-10-11 15:00:16 +02:00
Matt Hartenbower
3dfcbccc15
Migrate tests from "config/main_test.go" to use testify ( #12533 )
...
Resolves MM-19021
2019-10-11 14:59:42 +02:00
TPaschalis
23d495beca
Migrate tests from model/compliance_test.go to use testify ( #12497 )
2019-10-11 14:59:11 +02:00
Ítalo Vietro
40ff87637d
Update test to use testify framework ( #12583 )
...
* Update test to use testify framework
* Add require.NotNil to avoid a nil err var
* Add missing test var
2019-10-11 14:09:21 +02:00
Aliaksandr Kantsevoi
b8dc5e3620
Migrate tests from "model/saml_test.go" to use testify #12551 ( #12555 )
2019-10-11 14:08:58 +02:00
Aliaksandr Kantsevoi
197e336ddc
Migrate tests from "model/emoji_search_test.go" to use testify #12423 ( #12508 )
2019-10-11 14:08:34 +02:00
Clément Collin
7f8a894592
[MM-19007] Migrate tests from "app/job_test.go" to use testify ( #12433 )
...
* [MM-19007] Migrate tests from "app/job_test.go" to use testify
- Use 'require' and 'assert' methods instead of 't.Fatal'
* [MM-19007] Change 'assert' to 'require' to keep 't.Fatal' behavior
2019-10-11 14:08:07 +02:00
Jason Blais
52c4b8f9c9
Add missing guest account config setting diagnostics ( #12692 )
2019-10-11 13:27:55 +02:00
Alfian Dhimas Nur Marita
f70d660225
use testify's assert on modeltestlib tests ( #12676 )
2019-10-11 11:58:19 +02:00
Alfian Dhimas Nur Marita
def68212a8
use testify's assert on model/license's tests ( #12679 )
2019-10-11 11:57:14 +02:00
Alfian Dhimas Nur Marita
68b5c5896b
use testify's assert on channel_search's tests ( #12677 )
2019-10-10 21:55:07 +02:00
Jesse Hallam
25b340ecb7
Revert "Do not count deleted channels when checking max channel limit ( #12021 )" ( #12730 )
...
This reverts commit d6700e3b40 .
2019-10-10 16:16:25 -03:00
Ali Farooq
72965d864a
MM-18881 - Attempting to configure uninstalled plugins gets st… ( #12687 )
...
* MM-18881 - Attempting to configure uninstalled plugins gets stuck at Loading... without timeout.
* Added a test
* Closing websocketclient
2019-10-10 15:01:39 -04:00
Scott Bishel
3f6f44f34c
MM-16860 Support Guest Authentication via SAML ( #12622 )
...
* add GuestAttribute setting
* Add Constant
* add isdefault_guest_attribute to diagnostics.go
* revert changes to go.mod
* revert changes to LdapInterface.go
* revert changes to LdapInterface.go
* revert changes to LdapInterface.go
2019-10-10 11:37:57 -06:00
Eli Yukelzon
34b4bbcb46
MM-18623 - invalid reply-count displayed ( #12364 )
...
* fixed thread creator, fixed default behaviour of fetching posts
* handle reply-count in getPostThread code path
2019-10-10 17:14:44 +03:00
Kevin Grandjean
1635eb6006
MM-19138 - Adjust test to use require. ( #12585 )
...
* Adjust test to use require.
* Use assert instead of require.
2019-10-10 09:27:36 -04:00
Abado Jack Mtulla
7a0d9149eb
Migrate app/import_functions_test.go to testify ( #12495 )
...
- Use 'require' and 'assert' methods instead of 't.Fatal'
2019-10-10 14:54:40 +03:00
Ali Farooq
7b6b54c341
MM-18540 - Demo plugin crashes on server shutdown ( #12371 )
...
* MM-18540 - Demo plugin crashes on server shutdown
* MM-18540 - Removed unncessary lock statements
* Added comments, logging a warning if PluginsEnv is updated while shutting down plugins
* Don't clean up PluginsEnv if another Env is detected
* Changing warn to debug
* Revert "Changing warn to debug"
This reverts commit 46f20ab21eeabb01d07f53e02d850cd6d9b2b837.
2019-10-09 17:19:01 -04:00
Hector
c02b489302
Mm 19006 ( #12616 )
...
* Refactor to use structured logging
* Properly formatted with gofmt
* migrate tests to use testify
* fix: swap expected and actual
2019-10-09 15:43:13 -04:00