Contents

Git cloning

@announce @git_quick

In order to manage application and configuration code using Git As an Administrator I want to clone Git Repositories

Background:

  • Given a default Git repository in "ckbk/scratch/myapp"

Scenario: Clone from a Git repository

  • Given Explanation: Next we step up two levels to escape Aruba's working folder
  • And the Git repository "./../../features/data/repositories/cookbooks/hosts/.git"
  • When I clone the remote Git repository branch "master" to "ckbk/scratch/myapp/cookbooks/hosts"
  • Then the local Git repository exists

Scenario: Clone a single Repository from a Git URI

  • Given the Git URI "git://github.com/cookbooks/"
  • When I clone the Repository "hosts" branch "master" to "ckbk/scratch/myapp/cookbooks/hosts2"
  • Then the local Git repository exists

Scenario: Clone multiple Repositories from a Git URI

  • Given the Git URI "git://github.com/cookbooks/"
  • When I clone the Repositories:
    repobranchtagrefdestination
    hosts37s.0.1.0ckbk/scratch/myapp/cookbooks/hosts3
    users37sckbk/scratch/myapp/cookbooks/users
    xmlmasterb7a11ea4ebckbk/scratch/myapp/cookbooks/xml
  • And these local Repositories exist:
    repo
    ckbk/scratch/myapp/cookbooks/hosts3
    ckbk/scratch/myapp/cookbooks/users
    ckbk/scratch/myapp/cookbooks/xml

Source: features/git_examples/git_clone.feature at commit efec2546, Cuken (Apache-2.0 license).