Sha256: 77e35d678a3f3392c81ab0240e723b33aaed5e75e4f962c81dff9ccfa7fc77a9

Contents?: true

Size: 1.94 KB

Versions: 37

Compression:

Stored size: 1.94 KB

Contents

Feature: Create a new Test Kitchen Driver project
  In order to make plugin development a snap
  As a user of Test Kitchen
  I want a command to run that will give me a driver gem project scaffold

  @spawn
  Scenario: Displaying help
    When I run `kitchen help driver create`
    Then the output should contain:
    """
    Usage:
      kitchen driver create [NAME]
    """
    And the exit status should be 0

  Scenario: Running with default values
    When I run `kitchen driver create qemu`
    Then a directory named "kitchen-qemu" should exist
    And the file "kitchen-qemu/CHANGELOG.md" should contain:
    """
    ## 0.1.0 / Unreleased
    """
    And the file "kitchen-qemu/Gemfile" should contain "gemspec"
    And the file "kitchen-qemu/Rakefile" should contain "task :stats"
    And the file "kitchen-qemu/README.md" should contain:
    """
    Kitchen::Qemu
    """
    And the file "kitchen-qemu/kitchen-qemu.gemspec" should contain:
    """
    require 'kitchen/driver/qemu_version'
    """
    And the file "kitchen-qemu/LICENSE" should contain:
    """
    Licensed under the Apache License, Version 2.0
    """
    And the file "kitchen-qemu/.gitignore" should contain:
    """
    Gemfile.lock
    """
    And the file "kitchen-qemu/.tailor" should contain:
    """
    config.file_set 'lib/**/*.rb'
    """
    And the file "kitchen-qemu/.travis.yml" should contain:
    """
    language: ruby
    """
    And a file named "kitchen-qemu/.cane" should exist
    And the file "kitchen-qemu/lib/kitchen/driver/qemu_version.rb" should contain:
    """
    QEMU_VERSION = "0.1.0.dev"
    """
    And the file "kitchen-qemu/lib/kitchen/driver/qemu.rb" should contain:
    """
    class Qemu < Kitchen::Driver::SSHBase
    """

  Scenario: Running with an alternate license
    When I successfully run `kitchen driver create foo --license=reserved`
    Then the file "kitchen-foo/LICENSE" should contain:
    """
    All rights reserved - Do Not Redistribute
    """

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
test-kitchen-1.18.0 features/kitchen_driver_create_command.feature
test-kitchen-1.17.0 features/kitchen_driver_create_command.feature
test-kitchen-1.16.0 features/kitchen_driver_create_command.feature
test-kitchen-1.15.0 features/kitchen_driver_create_command.feature
test-kitchen-1.14.2 features/kitchen_driver_create_command.feature
test-kitchen-1.14.1 features/kitchen_driver_create_command.feature
test-kitchen-1.14.0 features/kitchen_driver_create_command.feature
test-kitchen-1.13.2 features/kitchen_driver_create_command.feature
test-kitchen-1.13.1 features/kitchen_driver_create_command.feature
test-kitchen-1.13.0 features/kitchen_driver_create_command.feature
test-kitchen-1.12.0 features/kitchen_driver_create_command.feature
test-kitchen-1.11.1 features/kitchen_driver_create_command.feature
test-kitchen-1.11.0 features/kitchen_driver_create_command.feature
test-kitchen-1.10.2 features/kitchen_driver_create_command.feature
test-kitchen-1.10.2.dev features/kitchen_driver_create_command.feature
test-kitchen-1.10.0 features/kitchen_driver_create_command.feature
test-kitchen-1.9.2 features/kitchen_driver_create_command.feature
test-kitchen-1.9.1 features/kitchen_driver_create_command.feature
test-kitchen-1.9.0 features/kitchen_driver_create_command.feature
test-kitchen-1.8.0 features/kitchen_driver_create_command.feature