github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/tests/upgrade/verify/verifyUsers.go (about)

     1  package verify
     2  
     3  import (
     4  	. "github.com/onsi/gomega"
     5  	"github.com/redhat-appstudio/e2e-tests/pkg/framework"
     6  	sandbox "github.com/redhat-appstudio/e2e-tests/pkg/sandbox"
     7  	utils "github.com/redhat-appstudio/e2e-tests/tests/upgrade/utils"
     8  )
     9  
    10  func VerifyAppStudioProvisionedSpace(fw *framework.Framework) {
    11  }
    12  
    13  func VerifyAppStudioProvisionedUser(fw *framework.Framework) {
    14  	_, err := fw.SandboxController.CheckUserCreated(utils.AppStudioProvisionedUser)
    15  	Expect(err).NotTo(HaveOccurred())
    16  }
    17  
    18  func VerifyAppStudioDeactivatedUser(fw *framework.Framework) {
    19  	_, err := fw.SandboxController.CheckUserCreatedWithSignUp(utils.DeactivatedUser, sandbox.GetUserSignupSpecsDeactivated(utils.DeactivatedUser))
    20  	Expect(err).NotTo(HaveOccurred())
    21  }
    22  
    23  func VerifyAppStudioBannedUser(fw *framework.Framework) {
    24  	_, err := fw.SandboxController.CheckUserCreatedWithSignUp(utils.BannedUser, sandbox.GetUserSignupSpecsBanned(utils.BannedUser))
    25  	Expect(err).NotTo(HaveOccurred())
    26  }