Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-19 12:09:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-19 12:09:06 +0300
commit9450a63064cd1572f030628dbf155f5c047f28c7 (patch)
tree62c938f6ceb8dd16f3af49cd86312c52bf6538fe /spec/requests/api/internal
parent4a69e105ab22c23edcdabb37fbdaf2554b088a6d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/internal')
-rw-r--r--spec/requests/api/internal/kubernetes_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/requests/api/internal/kubernetes_spec.rb b/spec/requests/api/internal/kubernetes_spec.rb
index 56d6f538026..54e34d6952b 100644
--- a/spec/requests/api/internal/kubernetes_spec.rb
+++ b/spec/requests/api/internal/kubernetes_spec.rb
@@ -147,6 +147,14 @@ RSpec.describe API::Internal::Kubernetes, feature_category: :kubernetes_manageme
projects: [
{ id: project.full_path, default_namespace: 'staging' }
]
+ },
+ user_access: {
+ groups: [
+ { id: group.full_path }
+ ],
+ projects: [
+ { id: project.full_path }
+ ]
}
}
end
@@ -160,6 +168,8 @@ RSpec.describe API::Internal::Kubernetes, feature_category: :kubernetes_manageme
expect(response).to have_gitlab_http_status(:no_content)
expect(agent.ci_access_authorized_groups).to contain_exactly(group)
expect(agent.ci_access_authorized_projects).to contain_exactly(project)
+ expect(agent.user_access_authorized_groups).to contain_exactly(group)
+ expect(agent.user_access_authorized_projects).to contain_exactly(project)
end
end