Skip to content

Commit 407cbd5

Browse files
committed
Relocate bosh-windows-acceptance-tests to acceptance_test
1 parent 974659b commit 407cbd5

File tree

6 files changed

+35
-63
lines changed

6 files changed

+35
-63
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rake publish:gcp # Publish an image to GCP
3838
bundle exec rspec
3939
```
4040

41-
Acceptance testing for stemcells should be done with [bosh-windows-acceptance-tests](https://github.com/cloudfoundry/bosh-windows-acceptance-tests)
41+
Acceptance testing for stemcells is done via [acceptance_test](acceptance_test)
4242

4343
## Relocated Documentation
4444
- azure-light-stemcell.md

acceptance_test/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bosh-windows-acceptance-tests
1+
# Acceptance Tests
22

33
This repo houses tests used to verify Windows Stemcells function as expected.
44

@@ -49,12 +49,15 @@ The timeout for BOSH commands can be overridden with the BWATS_BOSH_TIMEOUT envi
4949

5050

5151
# Internals of the release and what it does
52-
This release has a few tests that verify if the features are installed on stemcell or not. There are few jobs on the BWATS release at [assets/bwats-release/jobs path](https://github.com/cloudfoundry/bosh-windows-acceptance-tests/tree/master/assets/bwats-release/jobs.
5352

54-
When ginkgo tests are run, these jobs are installed on the stemcells and the tests in each job are run against it. As part of running BWATs there are several deployments done, to avoid conficts on same stemcell.
53+
This release has a few tests that verify if the features are installed on stemcell or not. There are few jobs on the
54+
BWATS release at [jobs](assets/bwats-release/jobs).
5555

56-
The bulk of our assertions are run as part of the check-system job.
57-
**This is where you will likely want to make changes**, e.g. to add test coverage around our expectations of happy-path stemcell behavior.
56+
When ginkgo tests are run, these jobs are installed on the stemcells and the tests in each job are run against it. As
57+
part of running BWATs there are several deployments done, to avoid conficts on same stemcell.
58+
59+
The bulk of our assertions are run as part of the check-system job. **This is where you will likely want to make changes
60+
**, e.g. to add test coverage around our expectations of happy-path stemcell behavior.
5861

5962
The relevant call chain is:
6063

acceptance_test/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/cloudfoundry/bosh-windows-acceptance-tests/acceptance_test
1+
module github.com/cloudfoundry/bosh-windows-stemcell-builder/acceptance_test
22

33
go 1.23.0
44

ci/pipelines/stemcells-windows.yml

Lines changed: 23 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -155,20 +155,6 @@ resources:
155155
type: git
156156
source:
157157
uri: https://github.com/cloudfoundry/windows-utilities-release.git
158-
- name: bosh-windows-acceptance-tests-src-out
159-
type: git
160-
source:
161-
branch: windows-2019
162-
uri: https://github.com/cloudfoundry/bosh-windows-acceptance-tests.git
163-
username: bosh-admin-bot
164-
password: ((github_public_repo_token))
165-
- name: bosh-windows-acceptance-tests
166-
type: git
167-
source:
168-
branch: windows-2019
169-
uri: https://github.com/cloudfoundry/bosh-windows-acceptance-tests.git
170-
username: bosh-admin-bot
171-
password: ((github_public_repo_token))
172158
- name: govmomi
173159
type: git
174160
source:
@@ -617,7 +603,6 @@ jobs:
617603
- get: bosh-windows-stemcell-builder-ci-image
618604
- get: bosh-windows-stemcell-builder-ci
619605
- get: stemcell-builder
620-
- get: bosh-windows-acceptance-tests
621606
- get: golang-release
622607
- get: ovftool
623608
- get: version
@@ -639,42 +624,33 @@ jobs:
639624
- task: unit-test-on-windows
640625
file: bosh-windows-stemcell-builder-ci/ci/tasks/test-units-stembuild-windows/task.yml
641626
tags: [windows-nimbus]
627+
- task: build-test
628+
config:
629+
image_resource:
630+
type: registry-image
631+
source:
632+
repository: bosh/integration
633+
username: ((docker.username))
634+
password: ((docker.password))
635+
inputs:
636+
- name: stemcell-builder
637+
platform: linux
638+
run:
639+
path: bash
640+
args:
641+
- "-c"
642+
- |
643+
set -eu -o pipefail
644+
set -x
645+
cd stemcell-builder/acceptance_test
646+
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest run ./...
647+
go test -c
648+
go run github.com/onsi/ginkgo/v2/ginkgo run --dry-run -v
649+
642650
- put: stemcell-builder
643651
params:
644652
rebase: true
645653
repository: stemcell-builder
646-
- task: bump-bosh-windows-acceptance-tests-deps
647-
file: golang-release/ci/tasks/shared/bump-deps.yml
648-
input_mapping:
649-
input_repo: bosh-windows-acceptance-tests
650-
output_mapping:
651-
output_repo: bosh-windows-acceptance-tests-src-out
652-
- task: build-test
653-
config:
654-
image_resource:
655-
type: registry-image
656-
source:
657-
repository: bosh/integration
658-
username: ((docker.username))
659-
password: ((docker.password))
660-
inputs:
661-
- name: bosh-windows-acceptance-tests
662-
platform: linux
663-
run:
664-
path: bash
665-
args:
666-
- "-c"
667-
- |
668-
set -eu -o pipefail
669-
set -x
670-
cd bosh-windows-acceptance-tests/acceptance_test
671-
go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest run ./...
672-
go test -c
673-
go run github.com/onsi/ginkgo/v2/ginkgo run --dry-run -v
674-
- put: bosh-windows-acceptance-tests-src-out
675-
params:
676-
repository: bosh-windows-acceptance-tests-src-out
677-
rebase: true
678654

679655
- name: test-bosh-psmodules
680656
serial: true
@@ -1141,7 +1117,6 @@ jobs:
11411117
steps:
11421118
- get: bosh-windows-stemcell-builder-ci
11431119
- get: bosh-windows-stemcell-builder-ci-image
1144-
- get: bosh-windows-acceptance-tests
11451120
- get: stemcell-builder
11461121
passed: [create-stembuild-linux-stemcell]
11471122
- get: stembuild-untested-linux
@@ -1310,7 +1285,6 @@ jobs:
13101285
steps:
13111286
- get: bosh-windows-stemcell-builder-ci
13121287
- get: bosh-windows-stemcell-builder-ci-image
1313-
- get: bosh-windows-acceptance-tests
13141288
- get: stemcell-builder
13151289
passed: [create-stembuild-windows-stemcell]
13161290
- get: stembuild-untested-windows
@@ -1504,7 +1478,6 @@ jobs:
15041478
passed: [create-aws]
15051479
- get: packer-output-ami
15061480
passed: [create-aws]
1507-
- get: bosh-windows-acceptance-tests
15081481
- get: bosh-agent-release
15091482
passed: [create-aws]
15101483
- task: run-bwats-aws-stemcell
@@ -1674,7 +1647,6 @@ jobs:
16741647
passed: [create-aws-govcloud]
16751648
- get: packer-output-govcloud-ami
16761649
passed: [create-aws-govcloud]
1677-
- get: bosh-windows-acceptance-tests
16781650
- get: bosh-agent-release
16791651
passed: [create-aws-govcloud]
16801652
- task: run-bwats-aws-govcloud-stemcell
@@ -1836,7 +1808,6 @@ jobs:
18361808
resource: azure-build-number
18371809
passed: [create-azure]
18381810
trigger: true
1839-
- get: bosh-windows-acceptance-tests
18401811
- get: bosh-agent-release
18411812
passed: [create-azure]
18421813
- task: download-heavy
@@ -2015,7 +1986,6 @@ jobs:
20151986
trigger: true
20161987
- get: main-version
20171988
passed: [create-gcp]
2018-
- get: bosh-windows-acceptance-tests
20191989
- get: bosh-agent-release
20201990
passed: [create-gcp]
20211991
- put: goose-lock
@@ -2188,7 +2158,6 @@ jobs:
21882158
- get: govcloud-ami
21892159
passed: [promote]
21902160
resource: packer-output-govcloud-ami
2191-
- get: bosh-windows-acceptance-tests
21922161
- get: bosh-agent-release
21932162
passed: [promote]
21942163
- get: blobstore-dav-cli

ci/tasks/run-bwats/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [ "$SECURITY_COMPLIANCE_APPLIED" != "true" ] ; then
2727
SECURITY_COMPLIANCE_APPLIED="false"
2828
fi
2929

30-
pushd bosh-windows-acceptance-tests/acceptance_test
30+
pushd stemcell-builder/acceptance_test
3131
export CONFIG_JSON=config.json
3232
cat > "${CONFIG_JSON}" <<-END_OF_CONFIG
3333
{

ci/tasks/run-bwats/task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ platform: linux
33

44
inputs:
55
- name: bosh-windows-stemcell-builder-ci
6-
- name: bosh-windows-acceptance-tests
6+
- name: stemcell-builder
77
- name: stemcell
88

99
run:

0 commit comments

Comments
 (0)