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

Fix the online status in OpsWorks #2970

Merged
merged 1 commit into from May 7, 2020

Conversation

rigaspapas
Copy link
Contributor

When an instance is running, OpsWorks reports its status as "online" 1, while EC2 reports it as "running". Until now, moto copied the EC2 instance's status as is. This commit introduces the converts the running status to online when returned by OpsWorks.

@coveralls
Copy link

coveralls commented May 6, 2020

Coverage Status

Coverage decreased (-0.05%) to 94.174% when pulling 4abd88f on rigaspapas:opsworks-online-status into ff23489 on spulec:master.

Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rigaspapas, thanks for your PR!

Would you mind adding a test case for this? Happy to merge after that

When an instance is running, OpsWorks reports its status as "online"
[1], while EC2 reports it as "running". Until now, moto copied the EC2
instance's status as is. This commit introduces the converts the running
status to online when returned by OpsWorks.

[1]: https://docs.aws.amazon.com/cli/latest/reference/opsworks/describe-instances.html
@rigaspapas
Copy link
Contributor Author

Hi @bblommers, I extended the existing tests so the instance status is also checked. I force-pushed to my branch.

Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @rigaspapas!

@bblommers bblommers merged commit f1f7ddb into getmoto:master May 7, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants