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

Add test of dashboard PR#7 #8

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Conversation

keigohtr
Copy link
Member

What is this PR for?

Add test of dashboard PR#7
rekcurd/dashboard#7

This PR includes

  • Check existence of dumped files

What type of PR is it?

Feature

What is the issue?

N/A

How should this be tested?

Run unit test.

python -m unittest tests/drucker_dashboard/test_kubernetes.py

# Check Kubernetes dump files
aobj = Application.query.filter_by(
kubernetes_id=kobj.kubernetes_id).one_or_none()
if aobj is not None:
Copy link
Member

Choose a reason for hiding this comment

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

Can't we assert aobj is not None here?

Copy link
Member Author

Choose a reason for hiding this comment

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

No we can't.
I have noticed that this aobj is always None.
So we can remove this # Check Kubernetes dump files section.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, let's remove this section!

@keigohtr
Copy link
Member Author

@yoquankara
Thank you for the comment. I have removed an unnecessary section!

Copy link
Member

@yoquankara yoquankara left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@keigohtr keigohtr merged commit 6aeb2f1 into master Aug 28, 2018
@keigohtr keigohtr deleted the feature/test-dump-kubernetes-yaml branch August 28, 2018 03:14
@keigohtr keigohtr mentioned this pull request Aug 29, 2018
5 tasks
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.

2 participants