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

aws_kinesis_stream: shard_count state fix #2986

Merged
merged 1 commit into from
Aug 31, 2015
Merged

aws_kinesis_stream: shard_count state fix #2986

merged 1 commit into from
Aug 31, 2015

Conversation

tphummel
Copy link
Contributor

currently state always records shard_count as 1. this tests exposes
the issue in #2977

to run test:

export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
make testacc TEST=./builtin/providers/aws TESTARGS='-run=KinesisStream'

output:

--- FAIL: TestAccAWSKinesisStream_basic (74.28s)
    testing.go:136: Step 0 error: Check failed: Bad Stream Shard Count
             expected: 2
            got: 1

FAIL
exit status 1
FAIL    github.com/hashicorp/terraform/builtin/providers/aws    74.296s

using limit: 1 on DescribeStream will always return 1 shard no matter how many shards there actually are when we call `len()`. so i've removed the limit parameter to get the actual shard list returned

remove limits
@tphummel tphummel changed the title aws_kinesis_stream: test, assert shard_count aws_kinesis_stream: shard_count state fix Aug 15, 2015
@tphummel
Copy link
Contributor Author

I cleaned up my branch. I believe this is ready to go and would love any feedback. More detail around the problem/solution is in #2977. Thanks!

@tphummel
Copy link
Contributor Author

@catsby i know you are busy, but I would love to see this get into an upcoming release, assuming it is up to snuff. Any feedback or pointers would be greatly appreciated, I'm new to golang. Thank you!

@catsby
Copy link
Contributor

catsby commented Aug 31, 2015

Ah, I see the error in my ways 😦

Thanks for the patch! This checks out, I'm going to pull it it. Sorry for the delay

catsby added a commit that referenced this pull request Aug 31, 2015
aws_kinesis_stream: shard_count state fix
@catsby catsby merged commit 03aba6f into hashicorp:master Aug 31, 2015
@tphummel tphummel deleted the aws_kinesis_stream-shard_count branch August 31, 2015 14:46
@ghost
Copy link

ghost commented May 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants