Skip to content

Commit

Permalink
refactor: Split specs in integration test for operator (#554)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak committed May 7, 2021
1 parent e65f26b commit e38b345
Show file tree
Hide file tree
Showing 5 changed files with 359 additions and 183 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Expand Up @@ -109,6 +109,9 @@ jobs:
kubectl describe node
- name: Run integration tests
run: |
kubectl apply -f deploy/crd/vulnerabilityreports.crd.yaml \
-f deploy/crd/configauditreports.crd.yaml \
-f deploy/crd/ciskubebenchreports.crd.yaml
kubectl apply -f deploy/static/01-starboard-operator.ns.yaml \
-f deploy/static/02-starboard-operator.sa.yaml \
-f deploy/static/03-starboard-operator.clusterrole.yaml \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Expand Up @@ -68,6 +68,9 @@ jobs:
kubectl describe node
- name: Run integration tests
run: |
kubectl apply -f deploy/crd/vulnerabilityreports.crd.yaml \
-f deploy/crd/configauditreports.crd.yaml \
-f deploy/crd/ciskubebenchreports.crd.yaml
kubectl apply -f deploy/static/01-starboard-operator.ns.yaml \
-f deploy/static/02-starboard-operator.sa.yaml \
-f deploy/static/03-starboard-operator.clusterrole.yaml \
Expand Down
4 changes: 4 additions & 0 deletions itest/helper/helper.go
Expand Up @@ -30,6 +30,10 @@ func (b *PodBuilder) WithName(name string) *PodBuilder {
return b
}

func (b *PodBuilder) WithRandomName(prefix string) *PodBuilder {
return b.WithName(prefix + "-" + rand.String(5))
}

func (b *PodBuilder) WithNamespace(namespace string) *PodBuilder {
b.namespace = namespace
return b
Expand Down

0 comments on commit e38b345

Please sign in to comment.