Sha256: 12a41e95ece548cb24cd0ae93173f6a292d12b5e3c12682108d7a42ae2593f88

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

#!/usr/bin/env bats

vagrant_up() {
  bundle exec vagrant up
}

vagrant_destroy() {
  bundle exec vagrant destroy -f
}

vagrant_ssh_list_rsync_dir() {
  bundle exec vagrant ssh -c "ls /vagrant; echo;"
}

teardown() {
  run vagrant_destroy
}

@test "current directory is rsynced to VM" {
  run vagrant_up
  [ $status = 0 ]

  run vagrant_ssh_list_rsync_dir
  echo $output
  [ $status = 0 ]
  [[ "$output" =~ "run_tests.sh" ]]

  run vagrant_destroy
  [ $status = 0 ]
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 functional-tests/rsync/test.bats