github.com/redhat-appstudio/e2e-tests@v0.0.0-20240520140907-9709f6f59323/tests/spi/var.go (about) 1 package spi 2 3 import "github.com/redhat-appstudio/service-provider-integration-operator/api/v1beta1" 4 5 type AccessCheckTest struct { 6 TestName string 7 Accessibility v1beta1.SPIAccessCheckAccessibility 8 RepoURL string 9 RepoType v1beta1.SPIRepoType 10 ServiceProvider v1beta1.ServiceProviderType 11 } 12 13 type ServiceAccountTest struct { 14 TestName string 15 IsImagePullSecret bool 16 IsManagedServiceAccount bool 17 } 18 19 var ( 20 AccessCheckTests = []AccessCheckTest{ 21 { 22 TestName: "public GitHub repository", 23 Accessibility: v1beta1.SPIAccessCheckAccessibilityPublic, 24 RepoURL: "https://github.com/devfile-samples/devfile-sample-code-with-quarkus", 25 RepoType: v1beta1.SPIRepoTypeGit, 26 ServiceProvider: v1beta1.ServiceProviderTypeGitHub, 27 }, 28 { 29 TestName: "private GitHub repository", 30 Accessibility: v1beta1.SPIAccessCheckAccessibilityPrivate, 31 RepoURL: GithubPrivateRepoURL, 32 RepoType: v1beta1.SPIRepoTypeGit, 33 ServiceProvider: v1beta1.ServiceProviderTypeGitHub, 34 }, 35 } 36 37 ServiceAccountTests = []ServiceAccountTest{ 38 { 39 TestName: "link a secret to an existing service account", 40 IsImagePullSecret: false, 41 IsManagedServiceAccount: false, 42 }, 43 { 44 TestName: "link a secret to an existing service account as image pull secret", 45 IsImagePullSecret: true, 46 IsManagedServiceAccount: false, 47 }, 48 { 49 TestName: "link a secret to a managed service account", 50 IsImagePullSecret: false, 51 IsManagedServiceAccount: true, 52 }, 53 } 54 )