vagrant-1cloud 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f6889921ec904e732a25283dba81fa6f070e0f4
4
- data.tar.gz: 71e271cd078332c2da511d981591141d57458ea3
3
+ metadata.gz: 6d355cc94439530bc8d7229ad5584cd05309335f
4
+ data.tar.gz: 5050686ab5ff8f6d04cd582182285f32d60f33cc
5
5
  SHA512:
6
- metadata.gz: d481c4f971e4cbb7a0a3cff0ac03366ea84bf37b9c5b6686b853cf5e165eaca88bd8ba92a5a3b059d3cb0d1b8d2c5eef2b00fa86aa6f5ff274008edb46aab613
7
- data.tar.gz: 71932f7f87085e9420a8dbc5c51769dd981b0a43f21c326b3cabde5f290a0849fc460480e25948ca88ae226eafb618daee45ecb5394b4efabaea5dbb3d9cea9c
6
+ metadata.gz: 11a818a144cda0f648c99147630cc421b9349c56b42873d6e5027fc52f467645fddf15f782e35f9fe0d6f36d20a9936c125ab7ebd458fdc2a8f02675d9fba2d4
7
+ data.tar.gz: 3783c11d2efa7370a2c329be0bba612d092336c1502cd4b6febfebb09d210b43d28ccfba8ab6c0d384784517c68e2ea958018ad0220cb29d12b208f02cce3ecc
data/build.sh CHANGED
@@ -29,25 +29,4 @@ fi
29
29
 
30
30
  echo "${PLUGIN_NAME} plugin was built and released successfully."
31
31
  docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
32
-
33
- sleep 120
34
-
35
- BUILDER_ID=$(docker run -it -d --rm --label ${PLUGIN_NAME} docker.avtodoria.dev:5043/test/vagrant)
36
- docker exec -i ${BUILDER_ID} bash -c "vagrant plugin install ${PLUGIN_NAME} --plugin-version ${PLUGIN_VERSION}"
37
- if [ $? -ne 0 ]; then
38
- echo "${PLUGIN_NAME} plugin was not installed successfully!"
39
- docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
40
- exit 2
41
- fi
42
-
43
- docker cp ${DIR}/test/Vagrantfile ${BUILDER_ID}:/tmp/
44
- RESULT=$(docker exec -i ${BUILDER_ID} bash -c "cd /tmp/ && vagrant up --provider=${PROVIDER}" 2>&1)
45
- if [[ ! ${RESULT} =~ "The response JSON from the API" ]]; then
46
- echo "${PLUGIN_NAME} plugin does not work correctly!"
47
- docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
48
- exit 3
49
- fi
50
-
51
- echo "${PLUGIN_NAME} plugin was tested successfully."
52
- docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
53
32
  exit 0
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module OneCloud
3
- VERSION = '1.1.9'
3
+ VERSION = '1.1.10'
4
4
  end
5
5
  end
data/test.sh ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env bash
2
+
3
+ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4
+ PROVIDER="onecloud"
5
+ PLUGIN_NAME="vagrant-1cloud"
6
+ PLUGIN_VERSION=$(cat ${DIR}/lib/${PLUGIN_NAME}/version.rb | grep VERSION | awk -F= '{gsub(" ","");gsub("'\''","");print $2}')
7
+
8
+ docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
9
+
10
+ docker pull docker.avtodoria.dev:5043/test/vagrant
11
+ BUILDER_ID=$(docker run -it -d --rm --label ${PLUGIN_NAME} docker.avtodoria.dev:5043/test/vagrant)
12
+ docker exec -i ${BUILDER_ID} bash -c "vagrant plugin install ${PLUGIN_NAME} --plugin-version ${PLUGIN_VERSION}"
13
+ if [ $? -ne 0 ]; then
14
+ echo "${PLUGIN_NAME} plugin was not installed successfully!"
15
+ docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
16
+ exit 1
17
+ fi
18
+
19
+ docker cp ${DIR}/test/Vagrantfile ${BUILDER_ID}:/tmp/
20
+ RESULT=$(docker exec -i ${BUILDER_ID} bash -c "cd /tmp/ && vagrant up --provider=${PROVIDER}" 2>&1)
21
+ if [[ ! ${RESULT} =~ "The response JSON from the API" ]]; then
22
+ echo "${PLUGIN_NAME} plugin does not work correctly!"
23
+ docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
24
+ exit 2
25
+ fi
26
+
27
+ echo "${PLUGIN_NAME} plugin was tested successfully."
28
+ docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
29
+ exit 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-1cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bulat Yusupov
@@ -90,6 +90,7 @@ files:
90
90
  - lib/vagrant-1cloud/provider.rb
91
91
  - lib/vagrant-1cloud/version.rb
92
92
  - locales/en.yml
93
+ - test.sh
93
94
  - test/Vagrantfile
94
95
  - test/scripts/provision.sh
95
96
  - test/test.sh