Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing request, Exception : ComputeEnvironments and MaxResults cannot both be set #563

Open
gorogoroyasu opened this issue Jun 14, 2022 · 0 comments

Comments

@gorogoroyasu
Copy link

An error occurred when I executed batch related specs.
Details and how I fixed are shown below.

Environment

ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
awspec (1.26.0)
aws-sdk-batch (1.62.0) # latest maybe: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch.html

Code

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant