GoogleCloudPlatform / GoogleCloudPlatform/java-docs-samples

container-registry: API deprecation

Abierto
#10,180 0 comentarios 0 reacciones 0 asignados Ver en GitHub
priority: p2 samples triage me type: bug
Lenguaje dominante
Java
Estrellas
1.9k
Forks
2.9k
Merge medio
3 d 3 h
PR fusionados (30 d)
17

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.