Skip to content

Commit 72f4da7

Browse files
author
Jon Skeet
committed
Add Docker tests for build-library
1 parent bd0a716 commit 72f4da7

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

  • tools/Google.Cloud.Tools.ReleaseManager.IntegrationTests/ContainerCommands/DockerTests
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
command: build-library
2+
args:
3+
- '--repo-root=/test/repo'
4+
- '--library-id=Google.Test.V1'
5+
commonFiles:
6+
- source: test-apis.json
7+
target: repo/generator-input/apis.json
8+
- source: test-state.json
9+
target: repo/generator-input/pipeline-state.json
10+
- source: Google.Test.V1
11+
target: repo/apis/Google.Test.V1
12+
- source: Google.Test.V2
13+
target: repo/apis/Google.Test.V2
14+
- source: Broken.cs
15+
target: repo/apis/Google.Test.V1/Google.Test.V1/Broken.cs
16+
repoFiles:
17+
- source: global.json
18+
target: repo/global.json
19+
- source: build.sh
20+
target: repo/build.sh
21+
- source: toolversions.sh
22+
target: repo/toolversions.sh
23+
expectedExitCode: 1
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
command: build-library
2+
args:
3+
- '--repo-root=/test/repo'
4+
- '--library-id=Google.Test.V1'
5+
commonFiles:
6+
- source: test-apis.json
7+
target: repo/generator-input/apis.json
8+
- source: test-state.json
9+
target: repo/generator-input/pipeline-state.json
10+
- source: Google.Test.V1
11+
target: repo/apis/Google.Test.V1
12+
- source: Google.Test.V2
13+
target: repo/apis/Google.Test.V2
14+
repoFiles:
15+
- source: global.json
16+
target: repo/global.json
17+
- source: build.sh
18+
target: repo/build.sh
19+
- source: toolversions.sh
20+
target: repo/toolversions.sh
21+
fileExpectations:
22+
present:
23+
- repo/apis/Google.Test.V1/Google.Test.V1/bin
24+
absent:
25+
- repo/apis/Google.Test.V2/Google.Test.V2/bin

0 commit comments

Comments
 (0)