@@ -151,6 +240,10 @@ To add the Package Registry as a source for .NET:
## Publish a NuGet package
Prerequisite:
- Set up the [source](#https://docs.gitlab.com/ee/user/packages/nuget_repository/#add-the-package-registry-as-a-source-for-nuget-packages) with a [project-level endpoint](#use-the-gitlab-endpoint-for-nuget-packages).
When publishing packages:
- The Package Registry on GitLab.com can store up to 500 MB of content.
...
...
@@ -164,9 +257,10 @@ When publishing packages:
### Publish a package with the NuGet CLI
Prerequisite:
Prerequisites:
-[A NuGet package created with NuGet CLI](https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package).
- Set a [project-level endpoint](#use-the-gitlab-endpoint-for-nuget-packages).
it_behaves_like'handling nuget metadata requests with package name and package version',anonymous_requests_example_name: 'rejects nuget packages access',anonymous_requests_status: :unauthorizeddo
RSpec.shared_examples'handling nuget service requests'do
RSpec.shared_examples'handling nuget service requests'do|anonymous_requests_example_name: 'process nuget service index request',anonymous_requests_status: :success|
it_behaves_like'rejects nuget access with unknown project id'
it_behaves_like'rejects nuget access with unknown target id'
it_behaves_like'rejects nuget access with invalid project id'
it_behaves_like'rejects nuget access with invalid target id'
end
end
RSpec.shared_examples'handling nuget metadata requests with package name and package version'do
RSpec.shared_examples'handling nuget metadata requests with package name and package version'do|anonymous_requests_example_name: 'process nuget metadata request at package name and package version level',anonymous_requests_status: :success|