@@ -180,7 +180,7 @@ func commonSetup(t *testing.T, gitCloneUrl string, namespace string) *testArgs {
180
180
var ok bool
181
181
ta .gitClone , ok = obj .(* tektonpipeline.Task )
182
182
if ! ok {
183
- debugAndFailTest (ta , fmt .Sprintf ("%s did not produce a task: %#v" , gitCloneTaskUrl , obj ))
183
+ debugAndFailTest (ta , fmt .Sprintf ("%s did not produce a task: %#v" , v1alpha1 . KonfluxGitDefinition , obj ))
184
184
}
185
185
ta .gitClone , err = tektonClient .TektonV1 ().Tasks (ta .ns ).Create (context .TODO (), ta .gitClone , metav1.CreateOptions {})
186
186
if err != nil {
@@ -244,7 +244,7 @@ func commonSetup(t *testing.T, gitCloneUrl string, namespace string) *testArgs {
244
244
return ta
245
245
}
246
246
func setupE2E (t * testing.T , namespace string ) * testArgs {
247
- ta := commonSetup (t , gitCloneTaskUrl , namespace )
247
+ ta := commonSetup (t , v1alpha1 . KonfluxGitDefinition , namespace )
248
248
err := wait .PollUntilContextTimeout (context .TODO (), 1 * time .Second , 1 * time .Minute , true , func (ctx context.Context ) (done bool , err error ) {
249
249
_ , err = kubeClient .CoreV1 ().ServiceAccounts (ta .ns ).Get (context .TODO (), "pipeline" , metav1.GetOptions {})
250
250
if err != nil {
@@ -993,7 +993,7 @@ type MavenRepoDetails struct {
993
993
994
994
func setupMinikube (t * testing.T , namespace string ) * testArgs {
995
995
996
- ta := commonSetup (t , gitCloneTaskUrl , namespace )
996
+ ta := commonSetup (t , v1alpha1 . KonfluxGitDefinition , namespace )
997
997
//go through and limit all deployments
998
998
//we have very little memory, we need some limits to make sure minikube can actually run
999
999
//limit every deployment to 100mb
0 commit comments