File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ type TestRunCreateOptions struct {
117
117
// executed by this TestRun.
118
118
Verbose * bool `jsonapi:"attr,verbose,omitempty"`
119
119
120
+ // Parallelism controls the number of parallel operations to execute within a single test run.
121
+ Parallelism * int `jsonapi:"attr,parallelism,omitempty"`
122
+
120
123
// Variables allows you to specify terraform input variables for
121
124
// a particular run, prioritized over variables defined on the workspace.
122
125
Variables []* RunVariable `jsonapi:"attr,variables,omitempty"`
Original file line number Diff line number Diff line change @@ -140,6 +140,18 @@ func TestTestRunsCreate(t *testing.T) {
140
140
_ , err := client .TestRuns .Create (ctx , options )
141
141
require .NoError (t , err )
142
142
})
143
+
144
+ p := 10
145
+ t .Run ("with a custom parallelism version" , func (t * testing.T ) {
146
+ options := TestRunCreateOptions {
147
+ ConfigurationVersion : cvTest ,
148
+ RegistryModule : rmTest ,
149
+ Parallelism : & p ,
150
+ }
151
+ _ , err := client .TestRuns .Create (ctx , options )
152
+ require .NoError (t , err )
153
+ })
154
+
143
155
t .Run ("without a configuration version" , func (t * testing.T ) {
144
156
options := TestRunCreateOptions {
145
157
RegistryModule : rmTest ,
You can’t perform that action at this time.
0 commit comments