fog-google 1.15.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/scripts/setup_creds.sh +10 -0
- data/.github/workflows/integration.yml +225 -0
- data/.github/workflows/stale.yml +1 -1
- data/.github/workflows/unit.yml +26 -0
- data/CHANGELOG.md +14 -0
- data/README.md +10 -9
- data/fog-google.gemspec +11 -2
- data/lib/fog/compute/google/models/address.rb +0 -0
- data/lib/fog/compute/google/models/addresses.rb +0 -0
- data/lib/fog/compute/google/models/network.rb +1 -1
- data/lib/fog/compute/google/models/region.rb +0 -0
- data/lib/fog/compute/google/models/regions.rb +0 -0
- data/lib/fog/compute/google/models/servers.rb +4 -1
- data/lib/fog/compute/google/models/subnetwork.rb +0 -0
- data/lib/fog/compute/google/requests/get_region.rb +0 -0
- data/lib/fog/compute/google/requests/insert_network.rb +1 -11
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/models/file.rb +10 -1
- data/lib/fog/storage/google_json/models/files.rb +2 -2
- data/lib/fog/storage/google_json/real.rb +4 -4
- data/lib/fog/storage/google_json/requests/get_object_url.rb +2 -2
- data/test/helpers/integration_test_helper.rb +2 -2
- data/test/helpers/test_helper.rb +7 -3
- data/test/integration/compute/core_compute/test_servers.rb +2 -2
- data/test/integration/compute/core_networking/test_networks.rb +0 -11
- data/test/integration/factories/networks_factory.rb +4 -6
- metadata +97 -27
- data/.github/workflows/ruby.yml +0 -34
- data/ci/.gitignore +0 -1
- data/ci/README.md +0 -65
- data/ci/build-head-pipeline.yml +0 -173
- data/ci/credentials.yml.template +0 -28
- data/ci/docker-image/Dockerfile +0 -18
- data/ci/integration-pipeline.yml +0 -226
- data/ci/pipeline-dev.yml +0 -58
- data/ci/tasks/run-int.sh +0 -53
- data/ci/tasks/run-int.yml +0 -18
- data/ci/tasks/utils.sh +0 -10
data/ci/integration-pipeline.yml
DELETED
@@ -1,226 +0,0 @@
|
|
1
|
-
jobs:
|
2
|
-
- name: integration-compute-core_compute
|
3
|
-
serial: true
|
4
|
-
plan:
|
5
|
-
- get: fog-google-src
|
6
|
-
resource: pull-request
|
7
|
-
version: every
|
8
|
-
trigger: true
|
9
|
-
- put: pull-request
|
10
|
-
params: {path: fog-google-src, status: pending}
|
11
|
-
|
12
|
-
- task: run-integration-tests
|
13
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
14
|
-
params:
|
15
|
-
rake_task: test:compute-core_compute
|
16
|
-
codecov_token: {{codecov_token}}
|
17
|
-
google_project: {{google_project}}
|
18
|
-
google_json_key_data: {{google_json_key_data}}
|
19
|
-
on_failure:
|
20
|
-
put: pull-request
|
21
|
-
params:
|
22
|
-
path: fog-google-src
|
23
|
-
status: failure
|
24
|
-
|
25
|
-
- name: integration-compute-core_networking
|
26
|
-
serial: true
|
27
|
-
plan:
|
28
|
-
- get: fog-google-src
|
29
|
-
resource: pull-request
|
30
|
-
version: every
|
31
|
-
trigger: true
|
32
|
-
- put: pull-request
|
33
|
-
params: {path: fog-google-src, status: pending}
|
34
|
-
|
35
|
-
- task: run-integration-tests
|
36
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
37
|
-
params:
|
38
|
-
rake_task: test:compute-core_networking
|
39
|
-
codecov_token: {{codecov_token}}
|
40
|
-
google_project: {{google_project}}
|
41
|
-
google_json_key_data: {{google_json_key_data}}
|
42
|
-
on_failure:
|
43
|
-
put: pull-request
|
44
|
-
params:
|
45
|
-
path: fog-google-src
|
46
|
-
status: failure
|
47
|
-
|
48
|
-
- name: integration-compute-instance_groups
|
49
|
-
serial: true
|
50
|
-
plan:
|
51
|
-
- get: fog-google-src
|
52
|
-
resource: pull-request
|
53
|
-
version: every
|
54
|
-
trigger: true
|
55
|
-
- put: pull-request
|
56
|
-
params: {path: fog-google-src, status: pending}
|
57
|
-
|
58
|
-
- task: run-integration-tests
|
59
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
60
|
-
params:
|
61
|
-
rake_task: test:compute-instance_groups
|
62
|
-
codecov_token: {{codecov_token}}
|
63
|
-
google_project: {{google_project}}
|
64
|
-
google_json_key_data: {{google_json_key_data}}
|
65
|
-
on_failure:
|
66
|
-
put: pull-request
|
67
|
-
params:
|
68
|
-
path: fog-google-src
|
69
|
-
status: failure
|
70
|
-
|
71
|
-
- name: integration-compute-loadbalancing
|
72
|
-
serial: true
|
73
|
-
plan:
|
74
|
-
- get: fog-google-src
|
75
|
-
resource: pull-request
|
76
|
-
version: every
|
77
|
-
trigger: true
|
78
|
-
- put: pull-request
|
79
|
-
params: {path: fog-google-src, status: pending}
|
80
|
-
|
81
|
-
- task: run-integration-tests
|
82
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
83
|
-
params:
|
84
|
-
rake_task: test:compute-loadbalancing
|
85
|
-
codecov_token: {{codecov_token}}
|
86
|
-
google_project: {{google_project}}
|
87
|
-
google_json_key_data: {{google_json_key_data}}
|
88
|
-
on_failure:
|
89
|
-
put: pull-request
|
90
|
-
params:
|
91
|
-
path: fog-google-src
|
92
|
-
status: failure
|
93
|
-
|
94
|
-
- name: integration-tests-monitoring
|
95
|
-
serial: true
|
96
|
-
plan:
|
97
|
-
- get: fog-google-src
|
98
|
-
resource: pull-request
|
99
|
-
version: every
|
100
|
-
trigger: true
|
101
|
-
- put: pull-request
|
102
|
-
params: {path: fog-google-src, status: pending}
|
103
|
-
|
104
|
-
- task: run-integration-tests
|
105
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
106
|
-
params:
|
107
|
-
rake_task: test:monitoring
|
108
|
-
codecov_token: {{codecov_token}}
|
109
|
-
google_project: {{google_project}}
|
110
|
-
google_json_key_data: {{google_json_key_data}}
|
111
|
-
on_failure:
|
112
|
-
put: pull-request
|
113
|
-
params:
|
114
|
-
path: fog-google-src
|
115
|
-
status: failure
|
116
|
-
|
117
|
-
- name: integration-tests-pubsub
|
118
|
-
serial: true
|
119
|
-
plan:
|
120
|
-
- get: fog-google-src
|
121
|
-
resource: pull-request
|
122
|
-
version: every
|
123
|
-
trigger: true
|
124
|
-
- put: pull-request
|
125
|
-
params: {path: fog-google-src, status: pending}
|
126
|
-
|
127
|
-
- task: run-integration-tests
|
128
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
129
|
-
params:
|
130
|
-
rake_task: test:pubsub
|
131
|
-
codecov_token: {{codecov_token}}
|
132
|
-
google_project: {{google_project}}
|
133
|
-
google_json_key_data: {{google_json_key_data}}
|
134
|
-
on_failure:
|
135
|
-
put: pull-request
|
136
|
-
params:
|
137
|
-
path: fog-google-src
|
138
|
-
status: failure
|
139
|
-
|
140
|
-
- name: integration-sqlv2
|
141
|
-
serial: true
|
142
|
-
plan:
|
143
|
-
- get: fog-google-src
|
144
|
-
resource: pull-request
|
145
|
-
version: every
|
146
|
-
trigger: true
|
147
|
-
- put: pull-request
|
148
|
-
params: {path: fog-google-src, status: pending}
|
149
|
-
|
150
|
-
- task: run-integration-tests
|
151
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
152
|
-
params:
|
153
|
-
rake_task: test:sql-sqlv2
|
154
|
-
codecov_token: {{codecov_token}}
|
155
|
-
google_project: {{google_project}}
|
156
|
-
google_json_key_data: {{google_json_key_data}}
|
157
|
-
on_failure:
|
158
|
-
put: pull-request
|
159
|
-
params:
|
160
|
-
path: fog-google-src
|
161
|
-
status: failure
|
162
|
-
|
163
|
-
- name: integration-tests-storage
|
164
|
-
serial: true
|
165
|
-
plan:
|
166
|
-
- get: fog-google-src
|
167
|
-
resource: pull-request
|
168
|
-
version: every
|
169
|
-
trigger: true
|
170
|
-
- put: pull-request
|
171
|
-
params: {path: fog-google-src, status: pending}
|
172
|
-
|
173
|
-
- task: run-integration-tests
|
174
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
175
|
-
params:
|
176
|
-
rake_task: test:storage
|
177
|
-
codecov_token: {{codecov_token}}
|
178
|
-
google_project: {{google_project}}
|
179
|
-
google_json_key_data: {{google_json_key_data}}
|
180
|
-
on_failure:
|
181
|
-
put: pull-request
|
182
|
-
params:
|
183
|
-
path: fog-google-src
|
184
|
-
status: failure
|
185
|
-
|
186
|
-
- name: github-pr-aggregator
|
187
|
-
plan:
|
188
|
-
- get: fog-google-src
|
189
|
-
resource: pull-request
|
190
|
-
passed: [integration-tests-storage,
|
191
|
-
integration-tests-pubsub,
|
192
|
-
integration-tests-monitoring,
|
193
|
-
integration-sqlv2,
|
194
|
-
integration-compute-core_compute,
|
195
|
-
integration-compute-core_networking,
|
196
|
-
integration-compute-instance_groups,
|
197
|
-
integration-compute-loadbalancing]
|
198
|
-
trigger: true
|
199
|
-
on_success:
|
200
|
-
put: pull-request
|
201
|
-
params:
|
202
|
-
path: fog-google-src
|
203
|
-
status: success
|
204
|
-
on_failure:
|
205
|
-
put: pull-request
|
206
|
-
params:
|
207
|
-
path: fog-google-src
|
208
|
-
status: failure
|
209
|
-
|
210
|
-
resources:
|
211
|
-
- name: pull-request
|
212
|
-
type: pull-request
|
213
|
-
source:
|
214
|
-
access_token: {{github_access_token}}
|
215
|
-
private_key: {{github_private_key}}
|
216
|
-
label: integrate
|
217
|
-
repo: fog/fog-google
|
218
|
-
|
219
|
-
resource_types:
|
220
|
-
# This is a third party resource.
|
221
|
-
# The referenced docker-image is maintained externally
|
222
|
-
# https://github.com/jtarchie/pullrequest-resource
|
223
|
-
- name: pull-request
|
224
|
-
type: docker-image
|
225
|
-
source:
|
226
|
-
repository: jtarchie/pr
|
data/ci/pipeline-dev.yml
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
jobs:
|
2
|
-
- name: integration-tests-monitoring
|
3
|
-
serial: true
|
4
|
-
plan:
|
5
|
-
- get: fog-google-src
|
6
|
-
resource: pull-request
|
7
|
-
version: every
|
8
|
-
trigger: true
|
9
|
-
- put: pull-request
|
10
|
-
params: {path: fog-google-src, status: pending}
|
11
|
-
|
12
|
-
- task: run-integration-tests
|
13
|
-
file: fog-google-src/ci/tasks/run-int.yml
|
14
|
-
params:
|
15
|
-
rake_task: test:monitoring
|
16
|
-
codecov_token: {{codecov_token}}
|
17
|
-
google_project: {{google_project}}
|
18
|
-
google_json_key_data: {{google_json_key_data}}
|
19
|
-
on_failure:
|
20
|
-
put: pull-request
|
21
|
-
params:
|
22
|
-
path: fog-google-src
|
23
|
-
status: failure
|
24
|
-
|
25
|
-
- name: github-pr-aggregator
|
26
|
-
plan:
|
27
|
-
- get: fog-google-src
|
28
|
-
resource: pull-request
|
29
|
-
passed: [integration-tests-monitoring]
|
30
|
-
trigger: true
|
31
|
-
on_success:
|
32
|
-
put: pull-request
|
33
|
-
params:
|
34
|
-
path: fog-google-src
|
35
|
-
status: success
|
36
|
-
on_failure:
|
37
|
-
put: pull-request
|
38
|
-
params:
|
39
|
-
path: fog-google-src
|
40
|
-
status: failure
|
41
|
-
|
42
|
-
resources:
|
43
|
-
- name: pull-request
|
44
|
-
type: pull-request
|
45
|
-
source:
|
46
|
-
access_token: {{github_access_token}}
|
47
|
-
private_key: {{github_private_key}}
|
48
|
-
label: integrate-dev
|
49
|
-
repo: fog/fog-google
|
50
|
-
|
51
|
-
resource_types:
|
52
|
-
# This is a third party resource.
|
53
|
-
# The referenced docker-image is maintained externally
|
54
|
-
# https://github.com/jtarchie/pullrequest-resource
|
55
|
-
- name: pull-request
|
56
|
-
type: docker-image
|
57
|
-
source:
|
58
|
-
repository: jtarchie/pr
|
data/ci/tasks/run-int.sh
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
set -e
|
4
|
-
|
5
|
-
my_dir="$( cd $(dirname $0) && pwd )"
|
6
|
-
release_dir="$( cd ${my_dir} && cd ../.. && pwd )"
|
7
|
-
workspace_dir="$( cd ${release_dir} && cd ../../../.. && pwd )"
|
8
|
-
|
9
|
-
pushd ${release_dir} > /dev/null
|
10
|
-
|
11
|
-
source ci/tasks/utils.sh
|
12
|
-
|
13
|
-
popd > /dev/null
|
14
|
-
|
15
|
-
check_param google_project
|
16
|
-
check_param google_json_key_data
|
17
|
-
check_param rake_task
|
18
|
-
check_param codecov_token
|
19
|
-
|
20
|
-
echo $google_json_key_data > `pwd`/service_account_key.json
|
21
|
-
|
22
|
-
cat >~/.fog <<EOL
|
23
|
-
test:
|
24
|
-
google_project: ${google_project}
|
25
|
-
google_json_key_location: `pwd`/service_account_key.json
|
26
|
-
EOL
|
27
|
-
|
28
|
-
pushd ${release_dir} > /dev/null
|
29
|
-
|
30
|
-
echo "Ruby version:"
|
31
|
-
ruby --version
|
32
|
-
|
33
|
-
echo "Bundler version:"
|
34
|
-
bundler --version
|
35
|
-
|
36
|
-
echo "Exporting bundler options..."
|
37
|
-
|
38
|
-
# Setting via local config options as BUNDLE_PATH appears to not work
|
39
|
-
# see https://github.com/rails/spring/issues/339
|
40
|
-
bundle config --local path ../../bundle
|
41
|
-
bundle config --local bin ../../bundle/bin
|
42
|
-
|
43
|
-
echo "Checking dependencies..."
|
44
|
-
# Check if dependencies are satisfied, otherwise kick off bundle install
|
45
|
-
bundle check || bundle install --jobs=3 --retry=3
|
46
|
-
|
47
|
-
echo "Dependencies resolved to:"
|
48
|
-
bundle list
|
49
|
-
|
50
|
-
echo "Starting test run..."
|
51
|
-
FOG_MOCK=false COVERAGE=true CODECOV_TOKEN=${codecov_token} rake ${rake_task}
|
52
|
-
|
53
|
-
popd > /dev/null
|
data/ci/tasks/run-int.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
---
|
2
|
-
platform: linux
|
3
|
-
image_resource:
|
4
|
-
type: docker-image
|
5
|
-
source: {repository: rubyfog/fog-google}
|
6
|
-
inputs:
|
7
|
-
- name: fog-google-src
|
8
|
-
path: src/fog-google
|
9
|
-
run:
|
10
|
-
path: src/fog-google/ci/tasks/run-int.sh
|
11
|
-
caches:
|
12
|
-
- path: bundle
|
13
|
-
params:
|
14
|
-
rake_task: replace-me
|
15
|
-
codecov_token: replace-me
|
16
|
-
google_project: replace-me
|
17
|
-
google_json_key_data: |
|
18
|
-
replace-me
|