Skip to content

Commit

Permalink
fix: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psturc committed Jul 29, 2024
1 parent 1144cf8 commit f6e28a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/rhtap-demo/rhtap-demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ var _ = framework.RhtapDemoSuiteDescribe(func() {

fw := &framework.Framework{}
var kubeadminClient *framework.ControllerHub
AfterEach(framework.ReportFailure(&fw))
var token, ssourl, apiurl string
var TestScenarios []e2eConfig.TestSpec

Expand Down Expand Up @@ -287,7 +286,7 @@ var _ = framework.RhtapDemoSuiteDescribe(func() {
}
managedNamespace = userNamespace + "-managed"
componentObj := appservice.ComponentSpec{
ComponentName: componentSpec.Name,
ComponentName: utils.GetGeneratedNamespace(componentSpec.Name),
Application: appTest.ApplicationName,
Source: appservice.ComponentSource{
ComponentSourceUnion: appservice.ComponentSourceUnion{
Expand Down Expand Up @@ -330,7 +329,7 @@ var _ = framework.RhtapDemoSuiteDescribe(func() {
})
AfterAll(func() {
if !CurrentSpecReport().Failed() {
Expect(kubeadminClient.CommonController.DeleteNamespace(managedNamespace)).To(Succeed())
kubeadminClient.CommonController.DeleteNamespace(managedNamespace)
if componentSpec.Language == "Java" {
Expect(kubeadminClient.JvmbuildserviceController.DeleteJBSConfig(constants.JBSConfigName, userNamespace)).To(Succeed())
}
Expand All @@ -341,7 +340,7 @@ var _ = framework.RhtapDemoSuiteDescribe(func() {
if err != nil {
Expect(err.Error()).To(ContainSubstring("Reference does not exist"))
}
Expect(kubeadminClient.CommonController.Github.DeleteRef(componentRepositoryName, componentNewBaseBranch)).To(Succeed())
kubeadminClient.CommonController.Github.DeleteRef(componentRepositoryName, componentNewBaseBranch)
})
When(fmt.Sprintf("component %s (private: %t) is created from git source %s", componentSpec.Name, componentSpec.Private, componentSpec.GitSourceUrl), Label(upstreamKonfluxTestLabel), func() {

Expand Down

0 comments on commit f6e28a7

Please sign in to comment.