File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -736,6 +736,7 @@ class CurrentUser(GitlabObject):
736
736
class ApplicationSettings (GitlabObject ):
737
737
_url = '/application/settings'
738
738
_id_in_update_url = False
739
+ getRequiresId = False
739
740
optionalUpdateAttrs = ['after_sign_out_path' ,
740
741
'container_registry_token_expire_delay' ,
741
742
'default_branch_protection' ,
@@ -794,6 +795,7 @@ class KeyManager(BaseManager):
794
795
class NotificationSettings (GitlabObject ):
795
796
_url = '/notification_settings'
796
797
_id_in_update_url = False
798
+ getRequiresId = False
797
799
optionalUpdateAttrs = ['level' ,
798
800
'notification_email' ,
799
801
'new_note' ,
@@ -2022,6 +2024,7 @@ class ProjectService(GitlabObject):
2022
2024
canCreate = False
2023
2025
_id_in_update_url = False
2024
2026
_id_in_delete_url = False
2027
+ getRequiresId = False
2025
2028
requiredUrlAttrs = ['project_id' , 'service_name' ]
2026
2029
2027
2030
_service_attrs = {
Original file line number Diff line number Diff line change 290
290
settings = gl .notificationsettings .get ()
291
291
assert (settings .level == gitlab .NOTIFICATION_LEVEL_WATCH )
292
292
293
+ # services
294
+ service = admin_project .services .get (service_name = 'asana' )
295
+ service .active = True
296
+ service .api_key = 'whatever'
297
+ service .save ()
298
+ service = admin_project .services .get (service_name = 'asana' )
299
+ assert (service .active == True )
300
+
293
301
# snippets
294
302
snippets = gl .snippets .list ()
295
303
assert (len (snippets ) == 0 )
You can’t perform that action at this time.
0 commit comments