Граф коммитов

1472 Коммитов

Автор SHA1 Сообщение Дата
Sascha Andres
ade6044441 MM-19135 Migrate tests from "model/channel_member_test.go" to… (#12651) 2019-10-15 11:48:06 +03: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
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
Vitalii Ananichev
2f5949d05e Migrate tests from "model/cluster_stats_test.go" to use testify (#12580) 2019-10-13 21:37:41 +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
Sai Sandeep Mutyala
bda129f36e Migrated tests from model/user_test.go to use testify (#12681) 2019-10-11 15:08:49 +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
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
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
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
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
Pijus Kamandulis
4de508ec51 MM-19238 Migrate tests from 'model/team_test.go' to use testify (#12645)
* MM-19238 Migrate tests from 'model/team_test.go' to use testify

* MM-19238 Fixed CR issues
2019-10-09 11:06:12 -07:00
Shodiq Muhammad
d1e46cd216 change t.Fatal to assert.Equal in model/status_test.go (#12680) 2019-10-09 13:11:40 -04:00
Sheshagiri Rao Mallipedhi
894b124bc6 Migrate tests from "model/analytics_row_test.go" to use testify (#12601) 2019-10-08 09:36:15 -05:00
Vitalii Ananichev
13b28b7a20 MM-19132 Migrate tests from "model/channel_view_test.go" to us… (#12579)
* Migrate tests from "model/channel_view_test.go" to use testify

* Replace require to assert
2019-10-08 09:22:06 -05:00
Martin Kraft
598f7c7255 MM-17767: Remove ExperimentalLdapGroupSync config. (#12388) 2019-10-08 08:03:39 -04:00
boonwj
e5ea44afcb [MM-19158] Migrate to testify in model/cluster_message_test.go (#12615) 2019-10-08 09:02:50 +02:00
Aliaksandr Kantsevoi
041c914de7 Migrate tests from "model/switch_request_test.go" to use testi… (#12554) 2019-10-08 08:27:53 +02:00
Victor Hugo Avelar Ossorio
bb203bad4a MM-19163 - Refactored team search tests to testify (#12607) 2019-10-07 09:27:53 -04:00
Clément Collin
2ef5712a08 [MM-19120] Migrate tests from "model/security_bulletin_test.go… (#12567) 2019-10-07 07:54:51 +02:00
Deepak Sah
6c55f79ca7 [MM-19119] Migrate tests from "model/access_test.go" to use testify (#12611)
* Changed tests to use require

* Removed redundant messages
2019-10-06 21:22:30 +02:00
Karan Nadagoudar
cbb25838a6 [MM-19165] Migrate tests from "model/utils_test.go" to use tes… (#12610) 2019-10-05 08:01:50 +02:00
Vitalii Ananichev
51b5776fd0 MM-19133 Migrate tests from "model/terms_of_service_test.go" t… (#12578) 2019-10-04 19:03:07 +02:00
Sheshagiri Rao Mallipedhi
8e86ec969e refactor tests in model/reaction_test.go and move to testify t… (#12603) 2019-10-04 18:43:27 +02:00
George Felix
f97ed668ba Migrated tests from "model/incoming_webhook_test.go" to use testify (#12602)
* Replaced test assertions with testify

* Changes based on suggestions https://github.com/mattermost/mattermost-server/pull/12602#pullrequestreview-296859312

* Unused variable replaced with blank identifier
2019-10-04 17:36:26 +02:00
SezalAgrawal
e1fae73e85 [MM-19123] Migrate tests from "model/push_notification_test.go" to use testify (#12557)
* [MM-19123] Migrate tests from model/push_notification_test.go to use testify

* [MM-19123] Re-arranged the import package
2019-10-04 15:30:04 +01:00
Sascha Andres
aa4a7e71dd MM-19117 Migrate tests from "model/system_test.go" to use testify #12550 (#12574) 2019-10-04 14:18:14 +02:00
Nicholas Lim
928b07f940 change model/suggest_command_test.go to use assert (#12575)
Merging! happy hacktoberfest! 🥇
2019-10-04 11:07:01 +02:00
Agniva De Sarker
20ff7032a6 Fixed some ineffective assignments (#12543) 2019-10-03 15:45:27 +03:00
SezalAgrawal
eebe1fc290 [MM-19118] Migrate tests from "model/websocket_message_test.go… (#12577)
* [MM-19118] Migrate tests from model/websocket_message_test.go to use testify

* [MM-19118] Ran go fmt on websocket_message_test.go file
2019-10-03 02:48:37 -06:00
Nilesh Kevlani
1f6cf84bb2 Replaced t.Fatal with require.Equal (#12536) 2019-10-03 00:25:36 +03:00
Scott Bishel
cee19b0332 MM-18013 Allow configuration of SAML crypto hashing algorithms (#12362)
* MM-18013 Add SAML Algorithms to config.

* set defaults to current values, add validation for settings

* update to use simplier config entry
2019-09-27 12:13:31 -06:00