ey_cloud_server 1.4.61 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODliZWU4ZDUzNjk1NTExYzdiMTJiMjE3MzUxOGI2Y2VjYmUwNzg4ZQ==
4
+ ZmFkNjBkYjY1OTNhZjQwNjMxNjUxMmNmOTRmOWQyZDMxMDJlNTUzYQ==
5
5
  data.tar.gz: !binary |-
6
- OWI2Nzg4YWI5ZDFhNGZiNDcwOGM3ZGFmYTE5OTE4NzM2YzMyOGY3Zg==
6
+ YTA0NTBmMTAxYzk5ZmE5YjQ0MzViYjE4NWE2YjRjZGM5YWYxZDNiNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzQxNzY3OTE3YWViZTZlMmFkNTc5ZWJiMWZiYTYyN2FmMDNkYTQyYjk5ZWQ4
10
- MGVhOGRmNzVjZDVkMGFjYzFkN2UxMjdlODk3MDczNDVhMjI1MjFjOTg2YmUy
11
- ZDRmY2I3YmU2OTk3N2E1MmU2ODc4NjBiMTQzNWNjNzcyYjNhYjI=
9
+ ZmRlZTQ1YThjMWU0N2RkMzVlNmFkNGY3YThmMDJhMzRjZTE4MzU4ZGJjOTAx
10
+ NzM5MDc4OGZmNTMxNzM1OGI1ZTk4NDgxZjY5MTIwYmZmMTI1NmNjNjc0NmFl
11
+ OTI3OWFmMjdiZGE0N2QwZmEyNjljYzQ0NTg0MjBmZWI3NTBiOWU=
12
12
  data.tar.gz: !binary |-
13
- YTRlZjdjYmE2ODk5NTQ0YzE1ODkwOTAwYWM1OWZhMDRiMDhhZmYxZWYxZmQ3
14
- ZTkwZWY0ZGRkZTE2MDZlNjU4ZGNlZWRmMzBjNTVmMGUyZmNlOWE2NDZjZjll
15
- NDZmYTI4N2ZjZTdjNWE5MDA4NjAwMGE4NjUwODdlODZiODgzMzc=
13
+ MTdlZDkwYmQ1ZmNiYTJmY2U0YWMzMmQ2YjZmNzA5NWEzYTVlNTA4ODM1ZGZj
14
+ ZTBkN2EwZmVlODczYTAxMjYwNzA3OTk3ODcxODlkOTQwZjYwZDNhNjE4Mjk2
15
+ YThjMTZiNjBmMmY3NTE5Yjg0NjI2YjRkOGQwMDg0YmQ4OTY3ZGM=
@@ -1,3 +1,6 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
1
4
  require File.dirname(__FILE__) + "/../../lib/ey-flex"
2
5
  require File.dirname(__FILE__) + "/../../lib/ey_backup"
3
6
  require 'fakeweb'
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module CloudServer
3
- VERSION = '1.4.61'
3
+ VERSION = '1.5.0'
4
4
  end
5
5
  end
@@ -0,0 +1,11 @@
1
+ ---
2
+ tmp_dir:
3
+ data_json:
4
+ mysql_user: jenkins
5
+ mysql_password: jenkins
6
+ mysql_host: localhost
7
+ postgresql_user: postgres
8
+ postgresql_password: postgres
9
+ postgresql_host: localhost
10
+ aws_secret_id: 'abcd123.id'
11
+ aws_secret_key: 'abcd123.key'
data/spec/helpers.rb CHANGED
@@ -18,7 +18,7 @@ module Helpers
18
18
  FakeWeb.register_uri(:post, "http://example.org/api/environments", :body => JSON.generate({
19
19
  @mock_environment_name => {:id => 1}
20
20
  }))
21
-
21
+
22
22
  create_or_clean_dir(tmp_dir)
23
23
  create_or_clean_dir(log_dir)
24
24
 
@@ -29,7 +29,7 @@ module Helpers
29
29
  # end
30
30
  stub_configs
31
31
  end
32
-
32
+
33
33
  def create_or_clean_dir(dir)
34
34
  FileUtils.mkdir_p(dir)
35
35
  Dir.glob("#{dir}/*").each do |f|
@@ -48,6 +48,9 @@ module Helpers
48
48
  end
49
49
 
50
50
  def import_gpg
51
+ # GPG v2.1+ dropped support for the --secret-keyring option (https://lists.gnupg.org/pipermail/gnupg-devel/2014-December/029296.html)
52
+ # This means that we need to import private keys too
53
+ system("gpg --import #{PRIVATE_KEY_PATH}") || raise("Could not import public key")
51
54
  system("gpg --import #{PUBLIC_KEY_PATH}") || raise("Could not import public key")
52
55
  end
53
56
 
@@ -91,7 +94,7 @@ module Helpers
91
94
  def backup_config_file
92
95
  "#{tmp_dir}/spec_backups.yml"
93
96
  end
94
-
97
+
95
98
  def mk_tmp
96
99
  FileUtils.mkdir_p("/tmp")
97
100
  end
@@ -113,7 +116,7 @@ module Helpers
113
116
  write_database_config('mysql', mysql_user, mysql_password, mysql_host, created_mysql_dbs.values, region)
114
117
  db_name
115
118
  end
116
-
119
+
117
120
  def drop_mysql_database(db_name)
118
121
  command = %Q{mysql -u#{mysql_user} -h#{mysql_host} #{mysql_password_option} -e "drop database if exists #{db_name};"}
119
122
  puts "*** MySQL Drop Command: #{command}"
@@ -194,7 +197,7 @@ module Helpers
194
197
  spec_config['tmp_dir'] || File.dirname("./tmp/")
195
198
  end
196
199
  end
197
-
200
+
198
201
  def log_dir
199
202
  if spec_config['log_dir'].nil?
200
203
  File.dirname(__FILE__) + "/log/"
@@ -299,7 +302,7 @@ module Helpers
299
302
  def stdout
300
303
  EY::Backup.logger.stdout.string
301
304
  end
302
-
305
+
303
306
  def stderr
304
307
  EY::Backup.logger.stderr.string
305
308
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  require File.dirname(__FILE__) + "/../lib/ey-flex"
2
2
 
3
+ require 'simplecov'
4
+ SimpleCov.start
5
+
3
6
  require 'fakeweb'
4
7
  require 'fakefs/safe'
5
8
  require 'randexp'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_cloud_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.61
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - EngineYard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.5.5
19
+ version: 2.6.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 1.5.5
26
+ version: 2.6.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: open4
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,20 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - ! '>='
66
66
  - !ruby/object:Gem::Version
67
- version: '1.16'
68
- - - <
69
- - !ruby/object:Gem::Version
70
- version: '3.0'
67
+ version: 3.3.1
71
68
  type: :runtime
72
69
  prerelease: false
73
70
  version_requirements: !ruby/object:Gem::Requirement
74
71
  requirements:
75
72
  - - ! '>='
76
73
  - !ruby/object:Gem::Version
77
- version: '1.16'
78
- - - <
79
- - !ruby/object:Gem::Version
80
- version: '3.0'
74
+ version: 3.3.1
81
75
  - !ruby/object:Gem::Dependency
82
76
  name: fog-aws
83
77
  requirement: !ruby/object:Gem::Requirement
@@ -96,16 +90,16 @@ dependencies:
96
90
  name: ey_enzyme
97
91
  requirement: !ruby/object:Gem::Requirement
98
92
  requirements:
99
- - - ! '>='
93
+ - - ~>
100
94
  - !ruby/object:Gem::Version
101
- version: 1.1.10
95
+ version: 2.0.7pre1
102
96
  type: :runtime
103
97
  prerelease: false
104
98
  version_requirements: !ruby/object:Gem::Requirement
105
99
  requirements:
106
- - - ! '>='
100
+ - - ~>
107
101
  - !ruby/object:Gem::Version
108
- version: 1.1.10
102
+ version: 2.0.7pre1
109
103
  - !ruby/object:Gem::Dependency
110
104
  name: ey_instance_api_client
111
105
  requirement: !ruby/object:Gem::Requirement
@@ -218,6 +212,20 @@ dependencies:
218
212
  - - ~>
219
213
  - !ruby/object:Gem::Version
220
214
  version: 1.13.7
215
+ - !ruby/object:Gem::Dependency
216
+ name: simplecov
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ~>
220
+ - !ruby/object:Gem::Version
221
+ version: 0.16.1
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ~>
227
+ - !ruby/object:Gem::Version
228
+ version: 0.16.1
221
229
  description: Miscellaneous EY server utilities
222
230
  email:
223
231
  - engineering@engineyard.com
@@ -267,7 +275,7 @@ files:
267
275
  - lib/ey_cloud_server/version.rb
268
276
  - spec/bucket_minder_spec.rb
269
277
  - spec/config-example.yml
270
- - spec/config.yml
278
+ - spec/config.yml.ci
271
279
  - spec/ey_api_spec.rb
272
280
  - spec/ey_backup/backend_spec.rb
273
281
  - spec/ey_backup/backup_spec.rb
@@ -279,7 +287,6 @@ files:
279
287
  - spec/gpg.public
280
288
  - spec/gpg.sekrit
281
289
  - spec/helpers.rb
282
- - spec/log/ey_flex_postgresql_db_thecae.sizes
283
290
  - spec/snapshot_minder_spec.rb
284
291
  - spec/spec_helper.rb
285
292
  homepage: http://developer.engineyard.com
@@ -301,14 +308,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
308
  version: '0'
302
309
  requirements: []
303
310
  rubyforge_project:
304
- rubygems_version: 2.4.5
311
+ rubygems_version: 2.6.14
305
312
  signing_key:
306
313
  specification_version: 4
307
314
  summary: Server side components for Engine Yard's cloud
308
315
  test_files:
309
316
  - spec/bucket_minder_spec.rb
310
317
  - spec/config-example.yml
311
- - spec/config.yml
318
+ - spec/config.yml.ci
312
319
  - spec/ey_api_spec.rb
313
320
  - spec/ey_backup/backend_spec.rb
314
321
  - spec/ey_backup/backup_spec.rb
@@ -320,7 +327,6 @@ test_files:
320
327
  - spec/gpg.public
321
328
  - spec/gpg.sekrit
322
329
  - spec/helpers.rb
323
- - spec/log/ey_flex_postgresql_db_thecae.sizes
324
330
  - spec/snapshot_minder_spec.rb
325
331
  - spec/spec_helper.rb
326
332
  - features/downloading_a_mysql_backup.feature
data/spec/config.yml DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- tmp_dir:
3
- log_dir:
4
- data_json:
5
- mysql_user: root
6
- mysql_password:
7
- mysql_host: localhost
8
- postgresql_user: postgres
9
- postgresql_password: grew152
10
- postgresql_host: localhost
11
- aws_secret_id: 'AKIAIDNXVLT3THIWYMNQ'
12
- aws_secret_key: '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'
@@ -1 +0,0 @@
1
- 2017-08-29 15:44:07 -0400 1.7 KB