File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -736,6 +736,7 @@ class CurrentUser(GitlabObject):
736736class ApplicationSettings (GitlabObject ):
737737 _url = '/application/settings'
738738 _id_in_update_url = False
739+ getRequiresId = False
739740 optionalUpdateAttrs = ['after_sign_out_path' ,
740741 'container_registry_token_expire_delay' ,
741742 'default_branch_protection' ,
@@ -794,6 +795,7 @@ class KeyManager(BaseManager):
794795class NotificationSettings (GitlabObject ):
795796 _url = '/notification_settings'
796797 _id_in_update_url = False
798+ getRequiresId = False
797799 optionalUpdateAttrs = ['level' ,
798800 'notification_email' ,
799801 'new_note' ,
@@ -2022,6 +2024,7 @@ class ProjectService(GitlabObject):
20222024 canCreate = False
20232025 _id_in_update_url = False
20242026 _id_in_delete_url = False
2027+ getRequiresId = False
20252028 requiredUrlAttrs = ['project_id' , 'service_name' ]
20262029
20272030 _service_attrs = {
Original file line number Diff line number Diff line change 290290settings = gl .notificationsettings .get ()
291291assert (settings .level == gitlab .NOTIFICATION_LEVEL_WATCH )
292292
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+
293301# snippets
294302snippets = gl .snippets .list ()
295303assert (len (snippets ) == 0 )
You can’t perform that action at this time.
0 commit comments