@@ -64,15 +64,15 @@ public void testAddSystemHook() throws GitLabApiException {
6464 assertTrue (hook .getPushEvents ());
6565 assertFalse (hook .getTagPushEvents ());
6666 assertFalse (hook .getMergeRequestsEvents ());
67- assertFalse (hook .getRepositoryUpdateEvents ());
67+ assertTrue (hook .getRepositoryUpdateEvents ());
6868 assertTrue (hook .getEnableSslVerification ());
6969
7070 gitLabApi .getSystemHooksApi ().deleteSystemHook (hook );
7171
7272 hook .withPushEvents (false )
7373 .withTagPushEvents (true )
7474 .withMergeRequestsEvents (true )
75- .withRepositoryUpdateEvents (true )
75+ .withRepositoryUpdateEvents (false )
7676 .withEnableSslVerification (false );
7777
7878 SystemHook updatedHook = gitLabApi .getSystemHooksApi ().addSystemHook (TEST_HOOK_URL , TEST_SECRET_TOKEN , hook );
@@ -81,10 +81,10 @@ public void testAddSystemHook() throws GitLabApiException {
8181 assertFalse (hook .getPushEvents ());
8282 assertTrue (hook .getTagPushEvents ());
8383 assertTrue (hook .getMergeRequestsEvents ());
84- assertTrue (hook .getRepositoryUpdateEvents ());
84+ assertFalse (hook .getRepositoryUpdateEvents ());
8585 assertFalse (hook .getEnableSslVerification ());
8686
87- gitLabApi .getSystemHooksApi ().deleteSystemHook (hook );
87+ gitLabApi .getSystemHooksApi ().deleteSystemHook (updatedHook );
8888
8989 }
9090
0 commit comments