Skip to content

Conversation

lindycoder
Copy link
Contributor

Any show command can have pagination so now they will all be run
in a page reader that abstracts the pagination

Fixes #178

@fbouliane
Copy link
Contributor

👍 nice job to refactor the pagereader.

self.shell_mock.should_receive("send_key").with_args("m", wait_for=("--More-- or (q)uit", "#"), include_last_line=True).once().ordered().and_return([
"line3",
"line4",
"--More-- or (q)uit"
Copy link
Contributor

Choose a reason for hiding this comment

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

Isnt there one more blank line before/after this prompt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the shell client never returns blank lines

@mat128
Copy link
Contributor

mat128 commented Nov 15, 2016

inline comment + failing tests, but good job on the PageReader

Any show command can have pagination so now they will all be run
in a page reader that abstracts the pagination

A test in the dell10g suite was fixed because it didn't reflect reality:
a dell10g won't show pagination

Fixes internap#178
@lindycoder
Copy link
Contributor Author

comments answered and texts fixed

Copy link
Contributor

@JoProvost JoProvost left a comment

Choose a reason for hiding this comment

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

Good job!

@mat128 mat128 merged commit bc0f5f8 into internap:master Nov 15, 2016
@lindycoder lindycoder deleted the use_page_reader branch November 15, 2016 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants