Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2025-07-22 21:16:37 +00:00
parent 4e2a247255
commit 6d61802bb7
56 changed files with 705 additions and 469 deletions

View File

@ -39,8 +39,8 @@ module QA
# @param [Hash] resource
# @return [Array<String, Hash>] results
def delete_permanently(resource)
# We need to get the path_with_namespace of the project again since marking it for deletion changes the name
resource = get_resource(resource) if @type.include?('project')
# Get the path of the project or group again since marking it for deletion changes the name
resource = get_resource(resource) if @type.include?('project') || @type.include?('group')
return unless resource
path = resource_path(resource)

View File

@ -262,12 +262,15 @@ module QA
end
def get_full_path(resource, type)
# We need to get the full path of the project again since marking it for deletion changes the name
if type == 'project'
# Get the full path of the project or group again since marking it for deletion changes the name
if type == 'project' || type == 'group'
response = get_resource(resource['api_path'])
if success?(response&.code)
if success?(response&.code) && type == 'project'
project = parse_body(response)
project[:path_with_namespace]
elsif success?(response&.code) && type == 'group'
group = parse_body(response)
group[:full_path]
end
else
resource['info'].split("'").last