Skip to content
Browse files

[CLI] Add test for exact match over regex at start of token.

Closes #316
  • Loading branch information...
1 parent c8a379b commit 4382d8a5da4869594733dee655e38e553112c802 @fnichol fnichol committed Jan 12, 2014
Showing with 21 additions and 0 deletions.
  1. +21 −0 features/kitchen_list_command.feature
View
21 features/kitchen_list_command.feature
@@ -73,6 +73,27 @@ Feature: Listing Test Kitchen instances
"""
+ Scenario: Listing a full instance name returns an exact match, not fuzzy matches at start
+ Given a file named ".kitchen.yml" with:
+ """
+ ---
+ driver: dummy
+ provisioner: chef_solo
+
+ platforms:
+ - name: ubuntu-12.04
+
+ suites:
+ - name: gdb01-master
+ - name: logdb01-master
+ """
+ When I successfully run `kitchen list gdb01-master-ubuntu-1204 --bare`
+ Then the output should contain exactly:
+ """
+ gdb01-master-ubuntu-1204
+
+ """
+
Scenario: Listing a full instance with regex returns all regex matches
When I successfully run `kitchen list 'foobar-centos-64.*' --bare`
Then the output should contain exactly:

0 comments on commit 4382d8a

Please sign in to comment.
Something went wrong with that request. Please try again.