shipwright-io / build

Shipwright - a framework for building container images on Kubernetes
https://shipwright.io
Apache License 2.0
662 stars 114 forks source link

Write missing E2E test for Git URL rewrite feature #954

Open HeavyWombat opened 2 years ago

HeavyWombat commented 2 years ago

The Git URL rewrite feature is only covered by unit tests. However, the build controller is using the Git step and can set the flag for enabling Git URL rewriting so this needs to be tested in an E2E test as well.

The setup is as follows:

Idea: Use the HTTPS URL used in the unit test and build an E2E test around it with: Git URL rewrite enabled, HTTPS URL used as a source pointing to a private repository and a private key being specified.

adambkaplan commented 2 years ago

/kind cleanup

adambkaplan commented 2 years ago

Our current test framework doesn't have a mechanism that lets us update the build controller's configuration and roll out a new deployment. Tests with extra configurations also need to run serially so that the new configuration doesn't conflict with other features/tests.

Ginkgo v2 has first-class support for this: https://onsi.github.io/ginkgo/MIGRATING_TO_V2

qu1queee commented 2 years ago

From grooming, keeping this one here for more feedback. There seems to be a dependency here with https://github.com/shipwright-io/build/issues/874 . So we should prioritize on https://github.com/shipwright-io/build/issues/874.