diff --git a/Makefile b/Makefile index 698a88e2..d5050fb9 100644 --- a/Makefile +++ b/Makefile @@ -82,9 +82,15 @@ test-license: ## Check if all files has the license .PHONY: generate-samples ## Generate the samples in the testdata generate-samples: + make install go run ./hack/samples/generate_samples.go -.PHONY: full-report ## Generate the full report for all images in the the testdata -full-report: +.PHONY: generate-testdata ## Generate the full testdata directory +generate-testdata: + make install go run ./hack/report/full.go + go run ./hack/samples/generate_samples.go + go run ./hack/report/full.go + + diff --git a/README.md b/README.md index d14dedfb..0e4c3d14 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ That would only return the bundles which contains `mybundlename` as part of its ## Testdata -The samples in `testdata/samples` which are generated by running `make generate-samples`. Also, to run a full report for all images in `testdata/reports` run `make full-report`. +The samples in `testdata/samples` which are generated by running `make generate-samples`. Also, to run `make generate-testdata` to re-generate all reports in the testdata. ## FAQ diff --git a/cmd/bundles/command.go b/cmd/bundles/command.go index cd2a4da4..704274c3 100644 --- a/cmd/bundles/command.go +++ b/cmd/bundles/command.go @@ -113,38 +113,23 @@ func indexRun(cmd *cobra.Command, args []string) error { log.Info("Starting audit...") reportData := index.Data{} reportData.Flags = flags - - // Create tmp dir to process the reportData - // Cleanup - command := exec.Command("rm", "-rf", "tmp") - _, _ = pkg.RunCommand(command) - command = exec.Command("mkdir", "tmp") - _, err := pkg.RunCommand(command) - if err != nil { - return err - } + pkg.GenerateTemporaryDirs() if err := extractIndexDB(); err != nil { return err } - reportData, err = getDataFromIndexDB(reportData) + reportData, err := getDataFromIndexDB(reportData) if err != nil { return err } - // Cleanup - command = exec.Command("rm", "-rf", "tmp") - _, _ = pkg.RunCommand(command) - - // Cleanup - command = exec.Command("rm", "-rf", "output") - _, _ = pkg.RunCommand(command) - log.Infof("Start to generate the reportData") if err := reportData.OutputReport(); err != nil { return err } + + pkg.CleanupTemporaryDirs() log.Infof("Operation completed.") return nil @@ -162,12 +147,6 @@ func extractIndexDB() error { return fmt.Errorf("unable to create container image %s : %s", flags.IndexImage, err) } - command = exec.Command("mkdir", "output") - _, err = pkg.RunCommand(command) - if err != nil { - return fmt.Errorf("unable to extract the image for index.db %s : %s", flags.IndexImage, err) - } - // Extract command = exec.Command("docker", "cp", fmt.Sprintf("%s:/database/index.db", catalogIndex), "./output/") _, err = pkg.RunCommand(command) diff --git a/cmd/channels/command.go b/cmd/channels/command.go index 628f68e8..2ff554a1 100644 --- a/cmd/channels/command.go +++ b/cmd/channels/command.go @@ -101,34 +101,23 @@ func indexRun(cmd *cobra.Command, args []string) error { log.Info("Starting audit...") reportData := channels.Data{} reportData.Flags = flags - - // Create tmp dir to process the report - // Cleanup - command := exec.Command("rm", "-rf", "tmp") - _, _ = pkg.RunCommand(command) - command = exec.Command("mkdir", "tmp") - _, err := pkg.RunCommand(command) - if err != nil { - return err - } + pkg.GenerateTemporaryDirs() if err := extractIndexDB(); err != nil { return err } - reportData, err = getDataFromIndexDB(reportData) + reportData, err := getDataFromIndexDB(reportData) if err != nil { return err } - // Cleanup - command = exec.Command("rm", "-rf", "tmp") - _, _ = pkg.RunCommand(command) - log.Infof("Start to generate the report") if err := reportData.OutputReport(); err != nil { return err } + + pkg.CleanupTemporaryDirs() log.Infof("Operation completed.") return nil diff --git a/cmd/packages/command.go b/cmd/packages/command.go index 1daca42e..0323f3de 100644 --- a/cmd/packages/command.go +++ b/cmd/packages/command.go @@ -114,34 +114,23 @@ func indexRun(cmd *cobra.Command, args []string) error { log.Info("Starting audit...") reportData := packages.Data{} reportData.Flags = flags - - // Create tmp dir to process the report - // Cleanup - command := exec.Command("rm", "-rf", "tmp") - _, _ = pkg.RunCommand(command) - command = exec.Command("mkdir", "tmp") - _, err := pkg.RunCommand(command) - if err != nil { - return err - } + pkg.GenerateTemporaryDirs() if err := extractIndexDB(); err != nil { return err } - reportData, err = getDataFromIndexDB(reportData) + reportData, err := getDataFromIndexDB(reportData) if err != nil { return err } - // Cleanup - command = exec.Command("rm", "-rf", "tmp") - _, _ = pkg.RunCommand(command) - log.Infof("Start to generate the report") if err := reportData.OutputReport(); err != nil { return err } + + pkg.CleanupTemporaryDirs() log.Infof("Operation completed.") return nil diff --git a/hack/backport/backport.go b/hack/backport/backport.go index 35b31b61..74e04e5e 100644 --- a/hack/backport/backport.go +++ b/hack/backport/backport.go @@ -28,12 +28,6 @@ import ( func main() { - command := exec.Command("make", "install") - _, err := pkg.RunCommand(command) - if err != nil { - log.Errorf("running command :%s", err) - } - currentPath, err := os.Getwd() if err != nil { log.Error(err) @@ -44,9 +38,9 @@ func main() { const testdataPath = "/testdata/" reportPath := filepath.Join(currentPath, testdataPath, "backport") - binPath := filepath.Join(currentPath, "bin", "audit") + binPath := filepath.Join(currentPath, "bin", "audit-tool") - command = exec.Command("rm", "-rf", reportPath) + command := exec.Command("rm", "-rf", reportPath) _, err = pkg.RunCommand(command) if err != nil { log.Errorf("running command :%s", err) diff --git a/hack/report/full.go b/hack/report/full.go index e14303cb..ceec29df 100644 --- a/hack/report/full.go +++ b/hack/report/full.go @@ -28,12 +28,6 @@ import ( func main() { - command := exec.Command("make", "install") - _, err := pkg.RunCommand(command) - if err != nil { - log.Errorf("running command :%s", err) - } - currentPath, err := os.Getwd() if err != nil { log.Error(err) @@ -44,9 +38,9 @@ func main() { const testdataPath = "/testdata/" reportPath := filepath.Join(currentPath, testdataPath, "reports") - binPath := filepath.Join(currentPath, "bin", "audit") + binPath := filepath.Join(currentPath, "bin", "audit-tool") - command = exec.Command("rm", "-rf", reportPath) + command := exec.Command("rm", "-rf", reportPath) _, err = pkg.RunCommand(command) if err != nil { log.Errorf("running command :%s", err) diff --git a/hack/samples/generate_samples.go b/hack/samples/generate_samples.go index 9a89147d..6fa66df7 100644 --- a/hack/samples/generate_samples.go +++ b/hack/samples/generate_samples.go @@ -27,12 +27,6 @@ import ( func main() { - command := exec.Command("make", "install") - _, err := pkg.RunCommand(command) - if err != nil { - log.Errorf("running command :%s", err) - } - currentPath, err := os.Getwd() if err != nil { log.Error(err) @@ -43,12 +37,12 @@ func main() { const testdataPath = "/testdata/samples/" samplesDir := filepath.Join(currentPath, testdataPath) - binPath := filepath.Join(currentPath, "bin", "audit") + binPath := filepath.Join(currentPath, "bin", "audit-tool") log.Infof("using the path: (%v)", samplesDir) log.Infof("using the bin: (%v)", binPath) - command = exec.Command("rm", "-rf", filepath.Join(samplesDir)) + command := exec.Command("rm", "-rf", filepath.Join(samplesDir)) _, err = pkg.RunCommand(command) if err != nil { log.Errorf("running command :%s", err) @@ -129,7 +123,7 @@ func main() { log.Infof("creating bundles testdata Sample json") command = exec.Command(binPath, "bundles", "--index-image=registry.redhat.io/redhat/certified-operator-index:v4.8", - "--limit=5", + "--limit=2", "--output=json", "--head-only", fmt.Sprintf("--output-path=%s", filepath.Join(samplesDir, "bundles", "json")), @@ -142,7 +136,7 @@ func main() { log.Infof("creating packages testdata Sample XLS") command = exec.Command(binPath, "packages", "--index-image=registry.redhat.io/redhat/certified-operator-index:v4.8", - "--limit=5", + "--limit=2", fmt.Sprintf("--output-path=%s", filepath.Join(samplesDir, "packages", "xls")), ) _, err = pkg.RunCommand(command) @@ -153,7 +147,7 @@ func main() { log.Infof("creating packages testdata Sample json") command = exec.Command(binPath, "packages", "--index-image=registry.redhat.io/redhat/certified-operator-index:v4.8", - "--limit=5", + "--limit=2", "--output=json", fmt.Sprintf("--output-path=%s", filepath.Join(samplesDir, "packages", "json")), ) diff --git a/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx b/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..b9f20872 Binary files /dev/null and b/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/pkg/helpers.go b/pkg/helpers.go index 3a3ad3dd..0fe46845 100644 --- a/pkg/helpers.go +++ b/pkg/helpers.go @@ -109,3 +109,31 @@ func GetReportName(imageName, typeName, typeFile string) string { return fmt.Sprintf("%s_%s_%s.%s", typeName, name, dt, typeFile) } + +func GenerateTemporaryDirs() { + command := exec.Command("rm", "-rf", "tmp") + _, _ = RunCommand(command) + + command = exec.Command("rm", "-rf", "./output/") + _, _ = RunCommand(command) + + command = exec.Command("mkdir", "./output/") + _, err := RunCommand(command) + if err != nil { + log.Fatal(err) + } + + command = exec.Command("mkdir", "tmp") + _, err = RunCommand(command) + if err != nil { + log.Fatal(err) + } +} + +func CleanupTemporaryDirs() { + command := exec.Command("rm", "-rf", "tmp") + _, _ = RunCommand(command) + + command = exec.Command("rm", "-rf", "./output/") + _, _ = RunCommand(command) +} diff --git a/pkg/reports/channels/data.go b/pkg/reports/channels/data.go index 4db4ca11..4c208056 100644 --- a/pkg/reports/channels/data.go +++ b/pkg/reports/channels/data.go @@ -116,7 +116,7 @@ func (d *Data) BuildChannelsQuery() (string, error) { } if len(d.Flags.Filter) > 0 { - like := "%" + d.Flags.Filter + "%" + like := "'%" + d.Flags.Filter + "%'" query = query.Where(fmt.Sprintf("name like %s", like)) } diff --git a/testdata/backport/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-06.xlsx b/testdata/backport/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-06.xlsx deleted file mode 100644 index a83de519..00000000 Binary files a/testdata/backport/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-06.xlsx and /dev/null differ diff --git a/testdata/backport/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-12.xlsx b/testdata/backport/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-12.xlsx new file mode 100644 index 00000000..af1bdea4 Binary files /dev/null and b/testdata/backport/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-12.xlsx differ diff --git a/testdata/backport/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-07.xlsx b/testdata/backport/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-07.xlsx deleted file mode 100644 index a3f4d472..00000000 Binary files a/testdata/backport/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/backport/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-12.xlsx b/testdata/backport/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-12.xlsx new file mode 100644 index 00000000..e582bb65 Binary files /dev/null and b/testdata/backport/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.5_2021-05-12.xlsx differ diff --git a/testdata/backport/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-06.xlsx b/testdata/backport/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-06.xlsx deleted file mode 100644 index f9b86fbd..00000000 Binary files a/testdata/backport/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-06.xlsx and /dev/null differ diff --git a/testdata/backport/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-11.xlsx b/testdata/backport/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-11.xlsx new file mode 100644 index 00000000..b565dac5 Binary files /dev/null and b/testdata/backport/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-11.xlsx differ diff --git a/testdata/backport/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-06.xlsx b/testdata/backport/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-06.xlsx deleted file mode 100644 index 8961a4d9..00000000 Binary files a/testdata/backport/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-06.xlsx and /dev/null differ diff --git a/testdata/backport/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-11.xlsx b/testdata/backport/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-11.xlsx new file mode 100644 index 00000000..13b5ee23 Binary files /dev/null and b/testdata/backport/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.5_2021-05-11.xlsx differ diff --git a/testdata/reports/operatorhubio_catalog/bundles_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx b/testdata/reports/operatorhubio_catalog/bundles_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx deleted file mode 100644 index e111a9d5..00000000 Binary files a/testdata/reports/operatorhubio_catalog/bundles_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/operatorhubio_catalog/bundles_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx b/testdata/reports/operatorhubio_catalog/bundles_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx new file mode 100644 index 00000000..4906230a Binary files /dev/null and b/testdata/reports/operatorhubio_catalog/bundles_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx differ diff --git a/testdata/reports/operatorhubio_catalog/channels_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx b/testdata/reports/operatorhubio_catalog/channels_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx deleted file mode 100644 index b6519fec..00000000 Binary files a/testdata/reports/operatorhubio_catalog/channels_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/operatorhubio_catalog/channels_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx b/testdata/reports/operatorhubio_catalog/channels_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx new file mode 100644 index 00000000..9681e4fe Binary files /dev/null and b/testdata/reports/operatorhubio_catalog/channels_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx differ diff --git a/testdata/reports/operatorhubio_catalog/packages_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx b/testdata/reports/operatorhubio_catalog/packages_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx deleted file mode 100644 index 25b30e1b..00000000 Binary files a/testdata/reports/operatorhubio_catalog/packages_quay.io_operatorhubio_catalog_latest_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/operatorhubio_catalog/packages_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx b/testdata/reports/operatorhubio_catalog/packages_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx new file mode 100644 index 00000000..1dec8b01 Binary files /dev/null and b/testdata/reports/operatorhubio_catalog/packages_quay.io_operatorhubio_catalog_latest_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 8c2c85f0..00000000 Binary files a/testdata/reports/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..46e13b74 Binary files /dev/null and b/testdata/reports/redhat_certified_operator_index/bundles_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_certified_operator_index/channels_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_certified_operator_index/channels_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index bdeb8c4d..00000000 Binary files a/testdata/reports/redhat_certified_operator_index/channels_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_certified_operator_index/channels_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_certified_operator_index/channels_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..7b30ced6 Binary files /dev/null and b/testdata/reports/redhat_certified_operator_index/channels_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 6304be61..00000000 Binary files a/testdata/reports/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..3a0b6421 Binary files /dev/null and b/testdata/reports/redhat_certified_operator_index/packages_registry.redhat.io_redhat_certified_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_community_operator_index/bundles_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_community_operator_index/bundles_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 4c3fbcc2..00000000 Binary files a/testdata/reports/redhat_community_operator_index/bundles_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_community_operator_index/bundles_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_community_operator_index/bundles_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..04ebb493 Binary files /dev/null and b/testdata/reports/redhat_community_operator_index/bundles_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_community_operator_index/channels_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_community_operator_index/channels_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index ceec38e4..00000000 Binary files a/testdata/reports/redhat_community_operator_index/channels_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_community_operator_index/channels_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_community_operator_index/channels_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..73877d12 Binary files /dev/null and b/testdata/reports/redhat_community_operator_index/channels_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_community_operator_index/packages_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_community_operator_index/packages_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 1f95d019..00000000 Binary files a/testdata/reports/redhat_community_operator_index/packages_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_community_operator_index/packages_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_community_operator_index/packages_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..d216038c Binary files /dev/null and b/testdata/reports/redhat_community_operator_index/packages_registry.redhat.io_redhat_community_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_redhat_marketplace_index/bundles_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_redhat_marketplace_index/bundles_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 25535cda..00000000 Binary files a/testdata/reports/redhat_redhat_marketplace_index/bundles_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_redhat_marketplace_index/bundles_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_redhat_marketplace_index/bundles_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..f6c68594 Binary files /dev/null and b/testdata/reports/redhat_redhat_marketplace_index/bundles_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_redhat_marketplace_index/channels_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_redhat_marketplace_index/channels_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 7a799aed..00000000 Binary files a/testdata/reports/redhat_redhat_marketplace_index/channels_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_redhat_marketplace_index/channels_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_redhat_marketplace_index/channels_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..af5decf3 Binary files /dev/null and b/testdata/reports/redhat_redhat_marketplace_index/channels_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_redhat_marketplace_index/packages_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_redhat_marketplace_index/packages_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 1ee547fd..00000000 Binary files a/testdata/reports/redhat_redhat_marketplace_index/packages_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_redhat_marketplace_index/packages_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_redhat_marketplace_index/packages_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..46d47fa4 Binary files /dev/null and b/testdata/reports/redhat_redhat_marketplace_index/packages_registry.redhat.io_redhat_redhat_marketplace_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index d03c00df..00000000 Binary files a/testdata/reports/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..9e12442a Binary files /dev/null and b/testdata/reports/redhat_redhat_operator_index/bundles_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_redhat_operator_index/channels_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_redhat_operator_index/channels_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index ebda35d9..00000000 Binary files a/testdata/reports/redhat_redhat_operator_index/channels_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_redhat_operator_index/channels_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_redhat_operator_index/channels_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..95e09baa Binary files /dev/null and b/testdata/reports/redhat_redhat_operator_index/channels_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/reports/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx b/testdata/reports/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx deleted file mode 100644 index 82c01da4..00000000 Binary files a/testdata/reports/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-07.xlsx and /dev/null differ diff --git a/testdata/reports/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx b/testdata/reports/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx new file mode 100644 index 00000000..3b09ad86 Binary files /dev/null and b/testdata/reports/redhat_redhat_operator_index/packages_registry.redhat.io_redhat_redhat_operator_index_v4.7_2021-05-12.xlsx differ diff --git a/testdata/samples/bundles/json/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json b/testdata/samples/bundles/json/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json deleted file mode 100644 index a025e50c..00000000 --- a/testdata/samples/bundles/json/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "Columns": [ - { - "packageName": "anzograph-operator", - "operatorBundleName": "anzograph-operator.v1.3.503", - "operatorBundleVersion": "1.3.5", - "certified": true, - "bundlePath": "registry.connect.redhat.com/cambridgesemantics/anzograph-operator-bundle@sha256:3d140982e5972dbcef2ce9d280ef8f578cc8f052e86807f8cad6a5b884e76a56", - "hasWebhook": false, - "hasV1beta1CRDs": "YES", - "buildAt": "2021-01-22T12:18:49.312327583Z", - "company": "Cambridge Semantics", - "bundleChannel": "stable", - "defaultChannel": "stable", - "maturity": "stable", - "emailMaintainers": [ - "frank@cambridgesemantics.com" - ], - "nameMaintainers": [ - "Frank Schwichtenberg" - ], - "links": [ - "https://github.com/cambridgesemantics/csi-k8s-operator-anzograph/blob/v1.3.5/README_openshift_marketplace.md" - ], - "capabilities": "Basic Install", - "categories": "Database, Big Data", - "validatorWarnings": [ - "(anzograph-operator.v1.3.503) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"anzographs.anzograph.clusters.cambridgesemantics.com\"] should be migrated" - ], - "invalidVersioning": "NO", - "invalidSkipRange": "NOT USED", - "supportsAllNamespaces": true, - "supportSingleNamespaces": true, - "supportsOwnNamespaces": true, - "ocpLabel": "v4.5,v4.6" - }, - { - "packageName": "appranix-cps", - "operatorBundleName": "appranix.v2.3.0", - "operatorBundleVersion": "2.3.0", - "certified": true, - "bundlePath": "registry.connect.redhat.com/appranix/apx-operator-bundle@sha256:0722fe603686fa004bc0047f4535435ab9005ef4e9fd96820d330c1c17908259", - "hasWebhook": false, - "hasV1beta1CRDs": "YES", - "buildAt": "2020-09-22T16:19:56.755841311Z", - "company": "Appranix, Inc", - "repository": "https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/appranix", - "bundleChannel": "stable", - "defaultChannel": "stable", - "maturity": "stable", - "emailMaintainers": [ - "support@appranix.com" - ], - "nameMaintainers": [ - "Appranix" - ], - "links": [ - "https://www.appranix.com/", - "https://twitter.com/AppranixOne/", - "https://www.linkedin.com/company/appranix/", - "https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/appranix" - ], - "capabilities": "Seamless Upgrades", - "categories": "Monitoring", - "validatorWarnings": [ - "(appranix.v2.3.0) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"backupstoragelocations.aps.appranix.com\" \"volumesnapshotlocations.aps.appranix.com\"] should be migrated" - ], - "scorecardErrors": [ - "backupstoragelocations.aps.appranix.com does not have a status descriptor", - "volumesnapshotlocations.aps.appranix.com does not have a status descriptor", - "objectStorage does not have a spec descriptor" - ], - "scorecardSuggestions": [ - "Add CRD validation for BackupStorageLocation/v1", - "Add CRD validation for VolumeSnapshotLocation/v1", - "Add a spec descriptor for objectStorage" - ], - "scorecardFailingTests": [ - "olm-status-descriptors", - "olm-spec-descriptors" - ], - "invalidVersioning": "NO", - "invalidSkipRange": "NOT USED", - "supportSingleNamespaces": true, - "supportsOwnNamespaces": true, - "ocpLabel": "v4.5,v4.6" - }, - { - "packageName": "appranix-cps", - "operatorBundleName": "appranix.v2.4.0", - "operatorBundleVersion": "2.4.0", - "certified": true, - "bundlePath": "registry.connect.redhat.com/appranix/apx-operator-bundle@sha256:98c5049335f381af9db41ca86d479ed66cfc3c661b50670722b863d6502f1d1c", - "hasWebhook": false, - "hasV1beta1CRDs": "YES", - "buildAt": "2020-09-22T19:05:04.137956552Z", - "company": "Appranix, Inc", - "repository": "https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/appranix", - "bundleChannel": "stable", - "defaultChannel": "stable", - "maturity": "stable", - "emailMaintainers": [ - "support@appranix.com" - ], - "nameMaintainers": [ - "Appranix" - ], - "links": [ - "https://www.appranix.com/", - "https://twitter.com/AppranixOne/", - "https://www.linkedin.com/company/appranix/", - "https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/appranix" - ], - "capabilities": "Seamless Upgrades", - "categories": "Monitoring", - "validatorWarnings": [ - "(appranix.v2.4.0) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"backupstoragelocations.aps.appranix.com\" \"volumesnapshotlocations.aps.appranix.com\"] should be migrated" - ], - "scorecardErrors": [ - "backupstoragelocations.aps.appranix.com does not have a status descriptor", - "volumesnapshotlocations.aps.appranix.com does not have a status descriptor", - "objectStorage does not have a spec descriptor" - ], - "scorecardSuggestions": [ - "Add a spec descriptor for objectStorage", - "Add CRD validation for BackupStorageLocation/v1", - "Add CRD validation for VolumeSnapshotLocation/v1" - ], - "scorecardFailingTests": [ - "olm-status-descriptors", - "olm-spec-descriptors" - ], - "invalidVersioning": "NO", - "invalidSkipRange": "NOT USED", - "replace": "appranix.v2.3.0", - "supportSingleNamespaces": true, - "supportsOwnNamespaces": true, - "ocpLabel": "v4.5,v4.6" - }, - { - "packageName": "anzo-operator", - "operatorBundleName": "anzo-operator.v1.1.103", - "operatorBundleVersion": "1.1.1", - "certified": true, - "bundlePath": "registry.connect.redhat.com/cambridgesemantics/anzo-operator-bundle@sha256:61d445e6076ea7206ed00900d9bf388d5e15691910e923a2312a8706be5a759f", - "hasWebhook": false, - "hasV1beta1CRDs": "YES", - "buildAt": "2021-01-22T12:25:07.977460331Z", - "company": "Cambridge Semantics", - "bundleChannel": "stable", - "defaultChannel": "stable", - "maturity": "stable", - "emailMaintainers": [ - "frank@cambridgesemantics.com" - ], - "nameMaintainers": [ - "Frank Schwichtenberg" - ], - "links": [ - "https://github.com/cambridgesemantics/csi-k8s-operator-anzo/blob/v1.1.1/README.md" - ], - "capabilities": "Basic Install", - "categories": "Big Data", - "validatorWarnings": [ - "(anzo-operator.v1.1.103) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"anzos.anzo.cambridgesemantics.com\"] should be migrated" - ], - "invalidVersioning": "NO", - "invalidSkipRange": "NOT USED", - "supportSingleNamespaces": true, - "supportsOwnNamespaces": true, - "ocpLabel": "v4.5,v4.6" - }, - { - "packageName": "akka-cluster-operator-certified", - "operatorBundleName": "akka-cluster-operator-certified.v1.0.0", - "operatorBundleVersion": "1.0.0", - "certified": true, - "bundlePath": "registry.connect.redhat.com/lightbend/akka-cluster-operator-certified-bundle@sha256:e7dc6a53e75a9416f0619998cb1ab12aef98f2e4cbd8f10bc4f60bfefa553e82", - "hasWebhook": false, - "hasV1beta1CRDs": "YES", - "buildAt": "2020-09-05T22:52:10.481848677Z", - "company": "Lightbend, Inc.", - "repository": "https://github.com/lightbend/akka-cluster-operator", - "bundleChannel": "beta", - "defaultChannel": "beta", - "maturity": "stable", - "emailMaintainers": [ - "info@lightbend.com" - ], - "nameMaintainers": [ - "Lightbend, Inc." - ], - "links": [ - "https://doc.akka.io/docs/akka/current/guide/introduction.html", - "https://doc.akka.io/docs/akka/current/common/cluster.html", - "https://github.com/lightbend/akka-java-cluster-openshift", - "https://developer.lightbend.com/guides/openshift-deployment/lagom/index.html" - ], - "capabilities": "Seamless Upgrades", - "categories": "Application Runtime", - "validatorWarnings": [ - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"akkaclusters.app.lightbend.com\"] should be migrated" - ], - "scorecardSuggestions": [ - "Add CRD validation for spec field `replicas` in AkkaCluster/v1alpha1", - "Add CRD validation for spec field `template` in AkkaCluster/v1alpha1" - ], - "invalidVersioning": "NO", - "invalidSkipRange": "NOT USED", - "supportsAllNamespaces": true, - "supportSingleNamespaces": true, - "supportsOwnNamespaces": true, - "ocpLabel": "v4.5,v4.6" - } - ], - "Flags": { - "image": "registry.redhat.io/redhat/certified-operator-index:v4.8", - "limit": 5, - "headOnly": true, - "disableScorecard": false, - "disableValidators": false, - "label": "", - "labelValue": "", - "filter": "", - "outputPath": "/Users/camilamacedo/go/src/github.com/operator-framework/audit-1/testdata/samples/bundles/json", - "outputFormat": "json" - } -} \ No newline at end of file diff --git a/testdata/samples/bundles/json/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json b/testdata/samples/bundles/json/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json new file mode 100644 index 00000000..7b5289d5 --- /dev/null +++ b/testdata/samples/bundles/json/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json @@ -0,0 +1,103 @@ +{ + "Columns": [ + { + "packageName": "anzograph-operator", + "operatorBundleName": "anzograph-operator.v1.3.503", + "operatorBundleVersion": "1.3.5", + "certified": true, + "bundlePath": "registry.connect.redhat.com/cambridgesemantics/anzograph-operator-bundle@sha256:3d140982e5972dbcef2ce9d280ef8f578cc8f052e86807f8cad6a5b884e76a56", + "hasWebhook": false, + "hasV1beta1CRDs": "YES", + "buildAt": "2021-01-22T12:18:49.312327583Z", + "company": "Cambridge Semantics", + "bundleChannel": "stable", + "defaultChannel": "stable", + "maturity": "stable", + "emailMaintainers": [ + "frank@cambridgesemantics.com" + ], + "nameMaintainers": [ + "Frank Schwichtenberg" + ], + "links": [ + "https://github.com/cambridgesemantics/csi-k8s-operator-anzograph/blob/v1.3.5/README_openshift_marketplace.md" + ], + "capabilities": "Basic Install", + "categories": "Database, Big Data", + "validatorWarnings": [ + "(anzograph-operator.v1.3.503) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", + "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"anzographs.anzograph.clusters.cambridgesemantics.com\"] should be migrated" + ], + "invalidVersioning": "NO", + "invalidSkipRange": "NOT USED", + "supportsAllNamespaces": true, + "supportSingleNamespaces": true, + "supportsOwnNamespaces": true, + "ocpLabel": "v4.5,v4.6" + }, + { + "packageName": "appranix-cps", + "operatorBundleName": "appranix.v2.3.0", + "operatorBundleVersion": "2.3.0", + "certified": true, + "bundlePath": "registry.connect.redhat.com/appranix/apx-operator-bundle@sha256:0722fe603686fa004bc0047f4535435ab9005ef4e9fd96820d330c1c17908259", + "hasWebhook": false, + "hasV1beta1CRDs": "YES", + "buildAt": "2020-09-22T16:19:56.755841311Z", + "company": "Appranix, Inc", + "repository": "https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/appranix", + "bundleChannel": "stable", + "defaultChannel": "stable", + "maturity": "stable", + "emailMaintainers": [ + "support@appranix.com" + ], + "nameMaintainers": [ + "Appranix" + ], + "links": [ + "https://www.appranix.com/", + "https://twitter.com/AppranixOne/", + "https://www.linkedin.com/company/appranix/", + "https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/appranix" + ], + "capabilities": "Seamless Upgrades", + "categories": "Monitoring", + "validatorWarnings": [ + "(appranix.v2.3.0) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", + "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"backupstoragelocations.aps.appranix.com\" \"volumesnapshotlocations.aps.appranix.com\"] should be migrated" + ], + "scorecardErrors": [ + "backupstoragelocations.aps.appranix.com does not have a status descriptor", + "volumesnapshotlocations.aps.appranix.com does not have a status descriptor", + "objectStorage does not have a spec descriptor" + ], + "scorecardSuggestions": [ + "Add CRD validation for BackupStorageLocation/v1", + "Add CRD validation for VolumeSnapshotLocation/v1", + "Add a spec descriptor for objectStorage" + ], + "scorecardFailingTests": [ + "olm-status-descriptors", + "olm-spec-descriptors" + ], + "invalidVersioning": "NO", + "invalidSkipRange": "NOT USED", + "supportSingleNamespaces": true, + "supportsOwnNamespaces": true, + "ocpLabel": "v4.5,v4.6" + } + ], + "Flags": { + "image": "registry.redhat.io/redhat/certified-operator-index:v4.8", + "limit": 2, + "headOnly": true, + "disableScorecard": false, + "disableValidators": false, + "label": "", + "labelValue": "", + "filter": "", + "outputPath": "/Users/camilamacedo/go/src/github.com/operator-framework/audit-1/testdata/samples/bundles/json", + "outputFormat": "json" + } +} \ No newline at end of file diff --git a/testdata/samples/bundles/xls/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx b/testdata/samples/bundles/xls/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx deleted file mode 100644 index 72974f39..00000000 Binary files a/testdata/samples/bundles/xls/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx and /dev/null differ diff --git a/testdata/samples/bundles/xls/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx b/testdata/samples/bundles/xls/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx new file mode 100644 index 00000000..2882f248 Binary files /dev/null and b/testdata/samples/bundles/xls/bundles_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx differ diff --git a/testdata/samples/channels/json/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json b/testdata/samples/channels/json/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json similarity index 100% rename from testdata/samples/channels/json/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json rename to testdata/samples/channels/json/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json diff --git a/testdata/samples/channels/xls/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx b/testdata/samples/channels/xls/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx deleted file mode 100644 index cb466d43..00000000 Binary files a/testdata/samples/channels/xls/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx and /dev/null differ diff --git a/testdata/samples/channels/xls/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx b/testdata/samples/channels/xls/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx new file mode 100644 index 00000000..2d7b1f76 Binary files /dev/null and b/testdata/samples/channels/xls/channels_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx differ diff --git a/testdata/samples/packages/json/package_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json b/testdata/samples/packages/json/package_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json similarity index 58% rename from testdata/samples/packages/json/package_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json rename to testdata/samples/packages/json/package_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json index ef80613d..7054bf6f 100644 --- a/testdata/samples/packages/json/package_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.json +++ b/testdata/samples/packages/json/package_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.json @@ -11,66 +11,66 @@ "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"kaudits.kaudit.alcide.com\"] should be migrated" ], "scorecardErrors": [ - "aks does not have a spec descriptor", + "Owned CRDs do not have resources specified", + "alcide does not have a spec descriptor", + "image does not have a spec descriptor", + "k8sAuditEnvironment does not have a spec descriptor", + "kauditPolicyFile does not have a spec descriptor", + "ingress does not have a spec descriptor", + "tls does not have a spec descriptor", "gke does not have a spec descriptor", "namespace does not have a spec descriptor", - "resources does not have a spec descriptor", - "aws does not have a spec descriptor", - "ingress does not have a spec descriptor", - "kauditPolicyFile does not have a spec descriptor", - "storage does not have a spec descriptor", + "prometheus does not have a spec descriptor", "vault does not have a spec descriptor", - "alcide does not have a spec descriptor", + "runOptions does not have a spec descriptor", + "storage does not have a spec descriptor", + "aks does not have a spec descriptor", + "aws does not have a spec descriptor", "clusterName does not have a spec descriptor", "k8s does not have a spec descriptor", - "runOptions does not have a spec descriptor", - "tls does not have a spec descriptor", - "image does not have a spec descriptor", - "k8sAuditEnvironment does not have a spec descriptor", - "prometheus does not have a spec descriptor", - "kaudits.kaudit.alcide.com does not have a status descriptor", - "Owned CRDs do not have resources specified" + "resources does not have a spec descriptor", + "kaudits.kaudit.alcide.com does not have a status descriptor" ], "scorecardSuggestions": [ "Add CRD validation for spec field `aws` in Kaudit/v1alpha1", "Add CRD validation for spec field `clusterName` in Kaudit/v1alpha1", - "Add CRD validation for spec field `tls` in Kaudit/v1alpha1", - "Add CRD validation for spec field `vault` in Kaudit/v1alpha1", "Add CRD validation for spec field `image` in Kaudit/v1alpha1", - "Add CRD validation for spec field `k8sAuditEnvironment` in Kaudit/v1alpha1", + "Add CRD validation for spec field `k8s` in Kaudit/v1alpha1", "Add CRD validation for spec field `namespace` in Kaudit/v1alpha1", "Add CRD validation for spec field `runOptions` in Kaudit/v1alpha1", - "Add CRD validation for spec field `storage` in Kaudit/v1alpha1", + "Add CRD validation for spec field `aks` in Kaudit/v1alpha1", "Add CRD validation for spec field `alcide` in Kaudit/v1alpha1", - "Add CRD validation for spec field `gke` in Kaudit/v1alpha1", "Add CRD validation for spec field `prometheus` in Kaudit/v1alpha1", + "Add CRD validation for spec field `tls` in Kaudit/v1alpha1", + "Add CRD validation for spec field `vault` in Kaudit/v1alpha1", + "Add CRD validation for spec field `gke` in Kaudit/v1alpha1", + "Add CRD validation for spec field `ingress` in Kaudit/v1alpha1", + "Add CRD validation for spec field `k8sAuditEnvironment` in Kaudit/v1alpha1", "Add CRD validation for spec field `kauditPolicyFile` in Kaudit/v1alpha1", "Add CRD validation for spec field `resources` in Kaudit/v1alpha1", - "Add CRD validation for spec field `aks` in Kaudit/v1alpha1", - "Add CRD validation for spec field `ingress` in Kaudit/v1alpha1", - "Add CRD validation for spec field `k8s` in Kaudit/v1alpha1", - "Add a spec descriptor for aks", + "Add CRD validation for spec field `storage` in Kaudit/v1alpha1", + "Add a spec descriptor for alcide", + "Add a spec descriptor for image", + "Add a spec descriptor for k8sAuditEnvironment", + "Add a spec descriptor for kauditPolicyFile", + "Add a spec descriptor for ingress", + "Add a spec descriptor for tls", "Add a spec descriptor for gke", "Add a spec descriptor for namespace", - "Add a spec descriptor for resources", - "Add a spec descriptor for aws", - "Add a spec descriptor for ingress", - "Add a spec descriptor for kauditPolicyFile", - "Add a spec descriptor for storage", + "Add a spec descriptor for prometheus", "Add a spec descriptor for vault", - "Add a spec descriptor for alcide", + "Add a spec descriptor for runOptions", + "Add a spec descriptor for storage", + "Add a spec descriptor for aks", + "Add a spec descriptor for aws", "Add a spec descriptor for clusterName", "Add a spec descriptor for k8s", - "Add a spec descriptor for runOptions", - "Add a spec descriptor for tls", - "Add a spec descriptor for image", - "Add a spec descriptor for k8sAuditEnvironment", - "Add a spec descriptor for prometheus" + "Add a spec descriptor for resources" ], "scorecardFailingTests": [ + "olm-crds-have-resources", "olm-spec-descriptors", - "olm-status-descriptors", - "olm-crds-have-resources" + "olm-status-descriptors" ], "hasSupportForAllNamespaces": true, "hasSupportForSingleNamespaces": true, @@ -100,18 +100,17 @@ ], "scorecardErrors": [ "anacondateameditions.anaconda.com does not have a status descriptor", - "Owned CRDs do not have resources specified", + "proxy does not have a spec descriptor", + "redis does not have a spec descriptor", "storage does not have a spec descriptor", "worker does not have a spec descriptor", "api does not have a spec descriptor", "dispatcher does not have a spec descriptor", "route does not have a spec descriptor", "postgres does not have a spec descriptor", - "proxy does not have a spec descriptor", - "redis does not have a spec descriptor" + "Owned CRDs do not have resources specified" ], "scorecardSuggestions": [ - "Add CRD validation for spec field `dispatcher` in AnacondaTeamEdition/v1beta1", "Add CRD validation for spec field `route` in AnacondaTeamEdition/v1beta1", "Add CRD validation for spec field `postgres` in AnacondaTeamEdition/v1beta1", "Add CRD validation for spec field `proxy` in AnacondaTeamEdition/v1beta1", @@ -119,134 +118,26 @@ "Add CRD validation for spec field `storage` in AnacondaTeamEdition/v1beta1", "Add CRD validation for spec field `worker` in AnacondaTeamEdition/v1beta1", "Add CRD validation for spec field `api` in AnacondaTeamEdition/v1beta1", + "Add CRD validation for spec field `dispatcher` in AnacondaTeamEdition/v1beta1", + "Add a spec descriptor for proxy", + "Add a spec descriptor for redis", "Add a spec descriptor for storage", "Add a spec descriptor for worker", "Add a spec descriptor for api", "Add a spec descriptor for dispatcher", "Add a spec descriptor for route", - "Add a spec descriptor for postgres", - "Add a spec descriptor for proxy", - "Add a spec descriptor for redis" - ], - "scorecardFailingTests": [ - "olm-status-descriptors", - "olm-crds-have-resources", - "olm-spec-descriptors" - ], - "hasSupportForAllNamespaces": true, - "hasSupportForSingleNamespaces": true, - "hasSupportForOwnNamespaces": true, - "buildAtDates": [ - "2020-09-24T13:57:07.140350464Z" - ], - "ocpLabel": [ - "v4.5,v4.6" - ], - "errors": null - }, - { - "packageName": "appdynamics-operator", - "hasV1beta1CRD": "YES", - "hasValidatorWarnings": true, - "hasScorecardFailingTests": true, - "hasScorecardSuggestions": true, - "validatorWarnings": [ - "(appdynamics-operator.v0.6.3) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"adams.appdynamics.com\" \"clusteragents.appdynamics.com\" \"infravizs.appdynamics.com\"] should be migrated" - ], - "scorecardErrors": [ - "adams.appdynamics.com does not have a status descriptor", - "clusteragents.appdynamics.com does not have a status descriptor", - "infravizs.appdynamics.com does not have a status descriptor", - "netVizPort does not have a spec descriptor", - "stdoutLogging does not have a spec descriptor", - "enableDockerViz does not have a spec descriptor", - "enableMasters does not have a spec descriptor" - ], - "scorecardSuggestions": [ - "Add a spec descriptor for netVizPort", - "Add a spec descriptor for stdoutLogging", - "Add a spec descriptor for enableDockerViz", - "Add a spec descriptor for enableMasters" + "Add a spec descriptor for postgres" ], "scorecardFailingTests": [ "olm-status-descriptors", - "olm-spec-descriptors" - ], - "hasSupportForAllNamespaces": true, - "hasSupportForSingleNamespaces": true, - "hasSupportForOwnNamespaces": true, - "buildAtDates": [ - "2020-11-04T10:19:30.592282909Z" - ], - "ocpLabel": [ - "v4.5,v4.6" - ], - "errors": null - }, - { - "packageName": "anchore-engine", - "hasV1beta1CRD": "YES", - "hasValidatorWarnings": true, - "hasScorecardFailingTests": true, - "hasScorecardSuggestions": true, - "validatorWarnings": [ - "(anchore-engine-operator.v0.1.11) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"anchoreengines.anchore.com\"] should be migrated" - ], - "scorecardErrors": [ - "Owned CRDs do not have resources specified", - "anchoreApi does not have a spec descriptor", - "anchoreCatalog does not have a spec descriptor", - "anchoreGlobal does not have a spec descriptor", - "anchorePolicyEngine does not have a spec descriptor", - "anchoreSimpleQueue does not have a spec descriptor", - "ingress does not have a spec descriptor", - "postgresql does not have a spec descriptor", - "anchoreAnalyzer does not have a spec descriptor", - "anchoreengines.anchore.com does not have a status descriptor" - ], - "scorecardSuggestions": [ - "Add a spec descriptor for anchoreApi", - "Add a spec descriptor for anchoreCatalog", - "Add a spec descriptor for anchoreGlobal", - "Add a spec descriptor for anchorePolicyEngine", - "Add a spec descriptor for anchoreSimpleQueue", - "Add a spec descriptor for ingress", - "Add a spec descriptor for postgresql", - "Add a spec descriptor for anchoreAnalyzer", - "Add CRD validation for AnchoreEngine/v1alpha1" - ], - "scorecardFailingTests": [ - "olm-crds-have-resources", "olm-spec-descriptors", - "olm-status-descriptors" + "olm-crds-have-resources" ], "hasSupportForAllNamespaces": true, "hasSupportForSingleNamespaces": true, "hasSupportForOwnNamespaces": true, "buildAtDates": [ - "2020-10-26T14:41:37.141641576Z" - ], - "ocpLabel": [ - "v4.5,v4.6" - ], - "errors": null - }, - { - "packageName": "anzo-operator", - "hasV1beta1CRD": "YES", - "hasValidatorWarnings": true, - "hasScorecardFailingTests": false, - "hasScorecardSuggestions": false, - "validatorWarnings": [ - "(anzo-operator.v1.1.103) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects.", - "apiextensions.k8s.io/v1beta1, kind=CustomResourceDefinitions was deprecated in Kubernetes v1.16 and will be removed in v1.22 in favor of v1: [\"anzos.anzo.cambridgesemantics.com\"] should be migrated" - ], - "hasSupportForSingleNamespaces": true, - "hasSupportForOwnNamespaces": true, - "buildAtDates": [ - "2021-01-22T12:25:07.977460331Z" + "2020-09-24T13:57:07.140350464Z" ], "ocpLabel": [ "v4.5,v4.6" @@ -256,7 +147,7 @@ ], "flags": { "index-image": "registry.redhat.io/redhat/certified-operator-index:v4.8", - "limit": 5, + "limit": 2, "filter": "", "label": "", "labelValue": "", diff --git a/testdata/samples/packages/xls/packages_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx b/testdata/samples/packages/xls/packages_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx deleted file mode 100644 index 4383fad2..00000000 Binary files a/testdata/samples/packages/xls/packages_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-06.xlsx and /dev/null differ diff --git a/testdata/samples/packages/xls/packages_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx b/testdata/samples/packages/xls/packages_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx new file mode 100644 index 00000000..54c3924b Binary files /dev/null and b/testdata/samples/packages/xls/packages_registry.redhat.io_redhat_certified_operator_index_v4.8_2021-05-12.xlsx differ