GoogleCloudPlatform / GoogleCloudPlatform/java-docs-samples

container-registry: API deprecation

Open
#10,180 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 samples triage me type: bug
Dominant language
Java
Stars
1.9k
Forks
2.9k
Avg merge
3d 3h
Merged PRs (30d)
17

Description

The container-registry samples are currently returning errors in testing (e.g. #10129)

```
[ERROR] PERMISSION_DENIED: note creation is not allowed for note kind VULNERABILITY
```

Failing tests (10/10 `@Tests` for this doc set)

* testFindVulnerabilitiesForImage
* testCreateOccurrence
* testOccurrencesForImage
* testDeleteOccurrence
* testPollDiscoveryOccurrenceFinished
* testFindHighSeverityVulnerabilitiesForImage
* testOccurrencesForNote
* testCreateNote
* testDeleteNote
* testPubSub

This API has been deprecated; example docs page cited in samples https://cloud.google.com/container-registry/docs/container-analysis#supported_metadata_types

However, they're still referenced in active docs: https://cloud.google.com/artifact-analysis/docs/create-notes-occurrences#artifact-analysis-create-note-java

A temporary workaround to unblock #10129 is to skip these tests

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.