generated from mattermost/mattermost-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-244]: Fixed issue "Status sync job exits if an error happens for …
…a single user" by added additional logging (#245) * [MI-2664]:Fixed issue #244 on ms calender to add additional logging (#2) * [MI-2664]:Fixed issue #244 on ms calender to add additional logging * [MI-2664]:Added comment for skipping user * [MI-2664]:Fixed unit test cases * [MI-2664]:Fix lint errors * [MI-2664]:Added conditional logging * [MI-2664]:Added constants for limit * [MI-2664]:Fixed review comments * [MI-2664]:Fixed review comments * [MI-2687]:Fixed review comments given by mattermost team on issue#244 of mscalender plugin (#3) * [MI-2687]:Fixed review comments given by mattermost team on issue #244 of mscalender plugin * [MI-2687]:Fixed unit test cases * [MI-2687]:Fixed review fixes * [MI-2705]:Added summary for status sync job (#4) * [MI-2705]:Added summary for status sync job * [MI-2705]:Fixed review comments * Fixed lint errors (#243) * [MI-2705]:Fixed review comments * [MI-2705]:Fixed review comments --------- Co-authored-by: Manoj Malik <[email protected]> * [MM-244]:Fixed lint errors * [MM-244]:Added a check for summary to be nill * [MM-244]:Added addtional check for user error * [MM-244]:Fixed lint errors * [MM-244]:Fixed review comments --------- Co-authored-by: Manoj Malik <[email protected]>
- Loading branch information
1 parent
c3f7cdd
commit 347546a
Showing
5 changed files
with
110 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,13 +155,13 @@ func TestSyncStatusAll(t *testing.T) { | |
} | ||
|
||
if tc.shouldLogError { | ||
logger.EXPECT().Warnf("Error getting availability for %s. err=%s", "[email protected]", tc.apiError.Message).Times(1) | ||
logger.EXPECT().Warnf("Error getting availability for %s. err=%s", "user_mm_id", tc.apiError.Message).Times(1) | ||
} else { | ||
logger.EXPECT().Warnf(gomock.Any()).Times(0) | ||
} | ||
|
||
m := New(env, "") | ||
res, err := m.SyncAll() | ||
res, _, err := m.SyncAll() | ||
require.Nil(t, err) | ||
require.NotEmpty(t, res) | ||
}) | ||
|
@@ -223,7 +223,7 @@ func TestSyncStatusUserConfig(t *testing.T) { | |
tc.runAssertions(env.Dependencies, client) | ||
|
||
mscalendar := New(env, "") | ||
_, err := mscalendar.SyncAll() | ||
_, _, err := mscalendar.SyncAll() | ||
require.Nil(t, err) | ||
}) | ||
} | ||
|
@@ -315,13 +315,13 @@ func TestReminders(t *testing.T) { | |
} | ||
|
||
if tc.shouldLogError { | ||
logger.EXPECT().Warnf("Error getting availability for %s. err=%s", "[email protected]", tc.apiError.Message).Times(1) | ||
logger.EXPECT().Warnf("Error getting availability for %s. err=%s", "user_mm_id", tc.apiError.Message).Times(1) | ||
} else { | ||
logger.EXPECT().Warnf(gomock.Any()).Times(0) | ||
} | ||
|
||
m := New(env, "") | ||
res, err := m.SyncAll() | ||
res, _, err := m.SyncAll() | ||
require.Nil(t, err) | ||
require.NotEmpty(t, res) | ||
}) | ||
|
Oops, something went wrong.