require "awspec"
describe batch_compute_environment('MY-BATCH-NAME') do
it { should exist }
end
Error
batch_compute_environment 'MY-BATCH-NAME' is expected to exist
Failure/Error: it { should exist }
Aws::Batch::Errors::ClientException:
Error executing request, Exception : ComputeEnvironments and MaxResults cannot both be set
Same error occurred when I execute batch_job_queue and batch_job_definition.
How I Fixed
Remove , max_results: 1 from this line.
After fixing this line, I succeeded in testing batch_compute_environment.
Caution
I have no idea about the side effect of this change.
An error occurred when I executed
batch
related specs. Details and how I fixed are shown below.Environment
Code
Error
Same error occurred when I execute
batch_job_queue
andbatch_job_definition
.How I Fixed
Remove
, max_results: 1
from this line. After fixing this line, I succeeded in testing batch_compute_environment.Caution
I have no idea about the side effect of this change.