operator-framework / operator-registry

Operator Registry runs in a Kubernetes or OpenShift cluster to provide operator catalog data to Operator Lifecycle Manager.
Apache License 2.0
212 stars 248 forks source link

GRPC deprecation utests #1163

Closed grokspawn closed 12 months ago

grokspawn commented 1 year ago

In order to make the new deprecation schema available over the GRPC API, we performed testing manually. In order to remain robust we need to include unit tests to exercise

  1. [x] declcfg.ConvertToModel
    • deprecation with no Package string
    • deprecations against bundles/channels/packages not in current DeclarativeConfig
    • more than 1 deprecation against same package
    • PackageScopedReference with unsupported schema/empty
    • duplicate PackageScopedReference (same target)
  2. [x] declcfg.WriteFS with deprecations
  3. [x] model.(*Deprecation)Validate() empty deprecation message
  4. [x] api.GetBundle, api.GetChannel, api.GetPackage with deprecations (FBC w/deps starts GRPC server and we can get these)
grokspawn commented 12 months ago

Closed wrong issue. Whoops!