forked from opendevstack/ods-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
verify-ods-namespace-images_test.go
39 lines (32 loc) · 1.24 KB
/
verify-ods-namespace-images_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package ods_verify
import (
"testing"
"github.com/opendevstack/ods-core/tests/utils"
"github.com/opendevstack/ods-core/tests/validate"
)
func TestVerifyOdsNamespaceImages(t *testing.T) {
odsNamespace := validate.OdsCoreEnvVariableOrFail(t, validate.ODS_NAMESPACE)
validate.OdsProjectExistsOrFail(t, odsNamespace)
odsImageTag := validate.OdsCoreEnvVariableOrFail(t, validate.ODS_IMAGE_TAG)
resourcesInTest := utils.Resources{
Namespace: odsNamespace,
ImageTags: []utils.ImageTag{
{Name: "jenkins-webhook-proxy", Tag: odsImageTag},
{Name: "jenkins-master", Tag: odsImageTag},
{Name: "jenkins-agent-base", Tag: odsImageTag},
{Name: "jenkins-agent-golang", Tag: odsImageTag},
{Name: "jenkins-agent-maven", Tag: odsImageTag},
{Name: "jenkins-agent-nodejs12", Tag: odsImageTag},
{Name: "jenkins-agent-python", Tag: odsImageTag},
{Name: "jenkins-agent-scala", Tag: odsImageTag},
{Name: "ods-doc-gen-svc", Tag: odsImageTag},
{Name: "ods-provisioning-app", Tag: odsImageTag},
{Name: "sonarqube", Tag: odsImageTag},
},
BuildConfigs: []string{},
DeploymentConfigs: []string{},
Services: []string{}, // tested in its own test.
ImageStreams: []string{},
}
utils.CheckResources(resourcesInTest, t)
}