summaryrefslogtreecommitdiff
path: root/test/it.bats
blob: d594049f40f8fb1e75e072b3e319238ad71728d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bats
# vim: set filetype=sh:

load utils

@test "Happy day" {
  mkzip my-webapp
  install_artifact "my-webapp"
  install_artifact "my-webapp" 1.0

  cd $BATS_TMPDIR
  cd appstore
  mkdir -p client server
  cd client

  appstore init "localhost" "$BATS_TMPDIR/appstore/server" "mysetup"
  cd mysetup

  # Making assertions easier.
  git config user.name "Test Case"
  git config user.email tester@example.org

  echo "app-1,maven,org.example:app-a:1.0-SNAPSHOT,1.0-SNAPSHOT,enabled" >> apps.csv
  git commit -m "o Adding app-1." -a
  git push cloud master
  eq "ssh://localhost$BATS_TMPDIR/appstore/server/mysetup" `git config remote.cloud.url`
  eq 1 2
}