-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unit test and cmdset for asyncos
- The prompt specified in issue #3327 works - Creating a cmdset in order to get a YAML simulation file
- Loading branch information
1 parent
912451c
commit ac37ada
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version | ||
showconfig | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require_relative 'model_helper' | ||
|
||
describe 'model/AsyncOS' do | ||
before(:each) do | ||
init_model_helper | ||
@node = Oxidized::Node.new(name: 'example.com', | ||
input: 'ssh', | ||
model: 'asyncos') | ||
end | ||
|
||
it 'matches different prompts' do | ||
_('(mail.example.com)> ').must_match AsyncOS.prompt | ||
_('mail.example.com> ').must_match AsyncOS.prompt | ||
# Devices running in cluster mode (see issue #3327) | ||
_('(Machine hostname) ').must_match AsyncOS.prompt | ||
end | ||
end |