fog-google 1.19.0 → 1.24.1
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 +4 -4
- data/.github/workflows/integration-compute-core.yml +54 -0
- data/.github/workflows/integration-compute-instance_groups.yml +55 -0
- data/.github/workflows/integration-compute-loadbalancing.yml +54 -0
- data/.github/workflows/integration-compute-networking.yml +53 -0
- data/.github/workflows/integration-monitoring.yml +54 -0
- data/.github/workflows/integration-pubsub.yml +54 -0
- data/.github/workflows/integration-sql.yml +54 -0
- data/.github/workflows/integration-storage.yml +55 -0
- data/.github/workflows/stale.yml +2 -2
- data/.github/workflows/unit.yml +7 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.md +112 -0
- data/README.md +3 -3
- data/examples/create_instance.rb +1 -1
- data/examples/create_instance_and_attach_disk_later.rb +86 -0
- data/examples/create_instance_with_attached_disk.rb +1 -1
- data/examples/get_list_images.rb +1 -1
- data/examples/load-balance.rb +1 -1
- data/examples/metadata.rb +1 -1
- data/examples/network.rb +1 -1
- data/fog-google.gemspec +12 -10
- data/lib/fog/compute/google/models/addresses.rb +17 -8
- data/lib/fog/compute/google/models/disk_types.rb +17 -7
- data/lib/fog/compute/google/models/disks.rb +23 -8
- data/lib/fog/compute/google/models/firewalls.rb +11 -2
- data/lib/fog/compute/google/models/forwarding_rules.rb +16 -10
- data/lib/fog/compute/google/models/global_addresses.rb +11 -2
- data/lib/fog/compute/google/models/global_forwarding_rules.rb +11 -2
- data/lib/fog/compute/google/models/http_health_checks.rb +12 -3
- data/lib/fog/compute/google/models/images.rb +15 -8
- data/lib/fog/compute/google/models/instance_group_managers.rb +17 -9
- data/lib/fog/compute/google/models/instance_groups.rb +16 -8
- data/lib/fog/compute/google/models/instance_templates.rb +12 -3
- data/lib/fog/compute/google/models/machine_types.rb +17 -8
- data/lib/fog/compute/google/models/networks.rb +12 -3
- data/lib/fog/compute/google/models/operations.rb +22 -8
- data/lib/fog/compute/google/models/regions.rb +12 -3
- data/lib/fog/compute/google/models/routes.rb +12 -3
- data/lib/fog/compute/google/models/server.rb +4 -4
- data/lib/fog/compute/google/models/servers.rb +23 -9
- data/lib/fog/compute/google/models/ssl_certificates.rb +12 -3
- data/lib/fog/compute/google/models/subnetworks.rb +16 -8
- data/lib/fog/compute/google/models/target_http_proxies.rb +12 -3
- data/lib/fog/compute/google/models/target_https_proxies.rb +12 -3
- data/lib/fog/compute/google/models/target_instances.rb +16 -8
- data/lib/fog/compute/google/models/target_pools.rb +16 -8
- data/lib/fog/compute/google/models/url_maps.rb +12 -3
- data/lib/fog/compute/google/models/zones.rb +12 -3
- data/lib/fog/compute/google/requests/insert_server.rb +1 -1
- data/lib/fog/compute/google/requests/stop_server.rb +2 -2
- data/lib/fog/google/shared.rb +9 -8
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/models/file.rb +7 -2
- data/lib/fog/storage/google_json/real.rb +16 -7
- data/lib/fog/storage/google_json/utils.rb +3 -4
- data/lib/fog/storage/google_json.rb +1 -1
- data/test/helpers/integration_test_helper.rb +3 -3
- data/test/integration/compute/core_compute/test_servers.rb +86 -0
- data/test/integration/monitoring/test_timeseries.rb +29 -14
- data/test/integration/storage/test_objects.rb +1 -0
- data/test/unit/compute/test_common_collections.rb +1 -1
- data/test/unit/compute/test_common_models.rb +1 -1
- data/test/unit/compute/test_disk.rb +26 -0
- data/test/unit/compute/test_server.rb +1 -1
- data/test/unit/dns/test_common_collections.rb +1 -1
- data/test/unit/monitoring/test_comon_collections.rb +1 -1
- data/test/unit/pubsub/test_common_collections.rb +1 -1
- data/test/unit/sql/test_common_collections.rb +1 -1
- data/test/unit/storage/test_common_json_collections.rb +1 -1
- data/test/unit/storage/test_common_xml_collections.rb +1 -1
- data/test/unit/storage/test_json_requests.rb +9 -1
- data/test/unit/storage/test_xml_requests.rb +1 -1
- metadata +63 -26
- data/.github/workflows/integration.yml +0 -225
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32fba42f750f2248b67a52b9c90e4ad74afeee359c7b8eec325de6e61e958e3d
|
4
|
+
data.tar.gz: 6b34cbc9704516e06f9dbff7a6cb37eb403acaefd06e5be5361bcad5e065ebc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b4ca2279ada450d5036ed62e54187bdb82172fb48873446929dd409b8c45ab1e2fb59f63bfdd1498e1d8917e7276ebc69a718ae7a6c188c8279fffe4eb36a1
|
7
|
+
data.tar.gz: 3f2201ff0d673c300b89d69ee228301afd660bc59bfdde91dcc1da48894798f9c64a6e9847c0818c8c32dcca1097ad33646966d484988c0959a7a0dd91b35678
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-compute-core
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/compute/**'
|
17
|
+
- 'test/integration/compute/core_compute/**'
|
18
|
+
# Common deps & shared paths
|
19
|
+
- 'fog-google.gemspec'
|
20
|
+
- 'lib/fog/bin/google.rb'
|
21
|
+
- 'lib/fog/google/shared.rb'
|
22
|
+
- 'lib/fog/google.rb'
|
23
|
+
# Trigger workflow on version upgrade
|
24
|
+
- 'lib/fog/google/version.rb'
|
25
|
+
# Trigger when workflow itself is updated
|
26
|
+
- '.github/workflows/integration-compute-core.yml'
|
27
|
+
|
28
|
+
# Setting hard concurrency limit for the project due to cleanup
|
29
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
30
|
+
concurrency:
|
31
|
+
group: ${{ github.workflow }}
|
32
|
+
cancel-in-progress: false
|
33
|
+
|
34
|
+
jobs:
|
35
|
+
test-compute:
|
36
|
+
runs-on: fog-arc-runner
|
37
|
+
strategy:
|
38
|
+
matrix:
|
39
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
41
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
42
|
+
max-parallel: 1
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v4
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: ruby/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: ${{ matrix.ruby-version }}
|
50
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
51
|
+
- name: Run tests
|
52
|
+
run: >-
|
53
|
+
./.github/scripts/setup_creds.sh &&
|
54
|
+
bundle exec rake test:compute-core_compute
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-compute-instance_groups
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/compute/**'
|
17
|
+
- 'test/integration/compute/instance_groups/**'
|
18
|
+
# Common deps & shared paths
|
19
|
+
- 'fog-google.gemspec'
|
20
|
+
- 'lib/fog/bin/google.rb'
|
21
|
+
- 'lib/fog/google/shared.rb'
|
22
|
+
- 'lib/fog/google.rb'
|
23
|
+
# Trigger workflow on version upgrade
|
24
|
+
- 'lib/fog/google/version.rb'
|
25
|
+
# Trigger when workflow itself is updated
|
26
|
+
- '.github/workflows/integration-compute-instance_groups.yml'
|
27
|
+
|
28
|
+
# Setting hard concurrency limit for the project due to cleanup
|
29
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
30
|
+
concurrency:
|
31
|
+
group: ${{ github.workflow }}
|
32
|
+
cancel-in-progress: false
|
33
|
+
|
34
|
+
|
35
|
+
jobs:
|
36
|
+
test:
|
37
|
+
runs-on: fog-arc-runner
|
38
|
+
strategy:
|
39
|
+
matrix:
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
41
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
|
+
max-parallel: 1
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v4
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: ruby/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: ${{ matrix.ruby-version }}
|
50
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
51
|
+
- name: Run tests
|
52
|
+
run: >-
|
53
|
+
./.github/scripts/setup_creds.sh &&
|
54
|
+
bundle exec rake test:compute-instance_groups
|
55
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-compute-loadbalancing
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/compute/**'
|
17
|
+
- 'test/integration/compute/loadbalancing/**'
|
18
|
+
# Common deps & shared paths
|
19
|
+
- 'fog-google.gemspec'
|
20
|
+
- 'lib/fog/bin/google.rb'
|
21
|
+
- 'lib/fog/google/shared.rb'
|
22
|
+
- 'lib/fog/google.rb'
|
23
|
+
# Trigger workflow on version upgrade
|
24
|
+
- 'lib/fog/google/version.rb'
|
25
|
+
# Trigger when workflow itself is updated
|
26
|
+
- '.github/workflows/integration-compute-loadbalancing.yml'
|
27
|
+
|
28
|
+
# Setting hard concurrency limit for the project due to cleanup
|
29
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
30
|
+
concurrency:
|
31
|
+
group: ${{ github.workflow }}
|
32
|
+
cancel-in-progress: false
|
33
|
+
|
34
|
+
|
35
|
+
jobs:
|
36
|
+
test:
|
37
|
+
runs-on: fog-arc-runner
|
38
|
+
strategy:
|
39
|
+
matrix:
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
41
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
|
+
max-parallel: 1
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v4
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: ruby/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: ${{ matrix.ruby-version }}
|
50
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
51
|
+
- name: Run tests
|
52
|
+
run: >-
|
53
|
+
./.github/scripts/setup_creds.sh &&
|
54
|
+
bundle exec rake test:compute-loadbalancing
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-compute-networking
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/compute/**'
|
17
|
+
- 'test/integration/compute/core_networking/**'
|
18
|
+
# Common deps & shared paths
|
19
|
+
- 'fog-google.gemspec'
|
20
|
+
- 'lib/fog/bin/google.rb'
|
21
|
+
- 'lib/fog/google/shared.rb'
|
22
|
+
- 'lib/fog/google.rb'
|
23
|
+
# Trigger workflow on version upgrade
|
24
|
+
- 'lib/fog/google/version.rb'
|
25
|
+
# Trigger when workflow itself is updated
|
26
|
+
- '.github/workflows/integration-compute-networking.yml'
|
27
|
+
|
28
|
+
# Setting hard concurrency limit for the project due to cleanup
|
29
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
30
|
+
concurrency:
|
31
|
+
group: ${{ github.workflow }}
|
32
|
+
cancel-in-progress: false
|
33
|
+
|
34
|
+
jobs:
|
35
|
+
test:
|
36
|
+
runs-on: fog-arc-runner
|
37
|
+
strategy:
|
38
|
+
matrix:
|
39
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
40
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
41
|
+
max-parallel: 1
|
42
|
+
|
43
|
+
steps:
|
44
|
+
- uses: actions/checkout@v4
|
45
|
+
- name: Set up Ruby
|
46
|
+
uses: ruby/setup-ruby@v1
|
47
|
+
with:
|
48
|
+
ruby-version: ${{ matrix.ruby-version }}
|
49
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
50
|
+
- name: Run tests
|
51
|
+
run: >-
|
52
|
+
./.github/scripts/setup_creds.sh &&
|
53
|
+
bundle exec rake test:compute-core_networking
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-monitoring
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/google/monitoring.rb'
|
17
|
+
- 'lib/fog/google/monitoring/**'
|
18
|
+
- 'test/integration/monitoring/**'
|
19
|
+
# Common deps & shared paths
|
20
|
+
- 'fog-google.gemspec'
|
21
|
+
- 'lib/fog/bin/google.rb'
|
22
|
+
- 'lib/fog/google/shared.rb'
|
23
|
+
- 'lib/fog/google.rb'
|
24
|
+
# Trigger workflow on version upgrade
|
25
|
+
- 'lib/fog/google/version.rb'
|
26
|
+
# Trigger when workflow itself is updated
|
27
|
+
- '.github/workflows/integration-monitoring.yml'
|
28
|
+
|
29
|
+
# Setting hard concurrency limit for the project due to cleanup
|
30
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
31
|
+
concurrency:
|
32
|
+
group: ${{ github.workflow }}
|
33
|
+
cancel-in-progress: false
|
34
|
+
|
35
|
+
jobs:
|
36
|
+
test:
|
37
|
+
runs-on: fog-arc-runner
|
38
|
+
strategy:
|
39
|
+
matrix:
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
41
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
|
+
max-parallel: 1
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v4
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: ruby/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: ${{ matrix.ruby-version }}
|
50
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
51
|
+
- name: Run tests
|
52
|
+
run: >-
|
53
|
+
./.github/scripts/setup_creds.sh &&
|
54
|
+
bundle exec rake test:monitoring
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-pubsub
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/google/pubsub.rb'
|
17
|
+
- 'lib/fog/google/pubsub/**'
|
18
|
+
- 'test/integration/pubsub/**'
|
19
|
+
# Common deps & shared paths
|
20
|
+
- 'fog-google.gemspec'
|
21
|
+
- 'lib/fog/bin/google.rb'
|
22
|
+
- 'lib/fog/google/shared.rb'
|
23
|
+
- 'lib/fog/google.rb'
|
24
|
+
# Trigger workflow on version upgrade
|
25
|
+
- 'lib/fog/google/version.rb'
|
26
|
+
# Trigger when workflow itself is updated
|
27
|
+
- '.github/workflows/integration-pubsub.yml'
|
28
|
+
|
29
|
+
# Setting hard concurrency limit for the project due to cleanup
|
30
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
31
|
+
concurrency:
|
32
|
+
group: ${{ github.workflow }}
|
33
|
+
cancel-in-progress: false
|
34
|
+
|
35
|
+
jobs:
|
36
|
+
test:
|
37
|
+
runs-on: fog-arc-runner
|
38
|
+
strategy:
|
39
|
+
matrix:
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
41
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
|
+
max-parallel: 1
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v4
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: ruby/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: ${{ matrix.ruby-version }}
|
50
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
51
|
+
- name: Run tests
|
52
|
+
run: >-
|
53
|
+
./.github/scripts/setup_creds.sh &&
|
54
|
+
bundle exec rake test:pubsub
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-sql
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/google/sql.rb'
|
17
|
+
- 'lib/fog/google/sql/**'
|
18
|
+
- 'test/integration/sql/**'
|
19
|
+
# Common deps & shared paths
|
20
|
+
- 'fog-google.gemspec'
|
21
|
+
- 'lib/fog/bin/google.rb'
|
22
|
+
- 'lib/fog/google/shared.rb'
|
23
|
+
- 'lib/fog/google.rb'
|
24
|
+
# Trigger workflow on version upgrade
|
25
|
+
- 'lib/fog/google/version.rb'
|
26
|
+
# Trigger when workflow itself is updated
|
27
|
+
- '.github/workflows/integration-sql.yml'
|
28
|
+
|
29
|
+
# Setting hard concurrency limit for the project due to cleanup
|
30
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
31
|
+
concurrency:
|
32
|
+
group: ${{ github.workflow }}
|
33
|
+
cancel-in-progress: false
|
34
|
+
|
35
|
+
jobs:
|
36
|
+
test:
|
37
|
+
runs-on: fog-arc-runner
|
38
|
+
strategy:
|
39
|
+
matrix:
|
40
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
41
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
42
|
+
max-parallel: 1
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v4
|
46
|
+
- name: Set up Ruby
|
47
|
+
uses: ruby/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: ${{ matrix.ruby-version }}
|
50
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
51
|
+
- name: Run tests
|
52
|
+
run: >-
|
53
|
+
./.github/scripts/setup_creds.sh &&
|
54
|
+
bundle exec rake test:sql
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# SQL tests are carried own in its' own job as they're extremely heavy so there
|
2
|
+
# is no need to run them if SQL code or deps haven't changed and you cannot
|
3
|
+
# trigger jobs based on file changes in the same workflow.
|
4
|
+
# See: https://github.com/actions/runner/issues/456
|
5
|
+
name: integration-tests-storage
|
6
|
+
|
7
|
+
on:
|
8
|
+
push:
|
9
|
+
branches: [ master ]
|
10
|
+
pull_request:
|
11
|
+
branches: [ master ]
|
12
|
+
types: [ assigned, opened, synchronize, reopened, labeled ]
|
13
|
+
# Only run integration tests if relevant code or deps have changed
|
14
|
+
paths:
|
15
|
+
# Module-specific paths
|
16
|
+
- 'lib/fog/google/storage.rb'
|
17
|
+
- 'lib/fog/google/storage/**'
|
18
|
+
- 'lib/fog/google/parsers/storage/**'
|
19
|
+
- 'test/integration/storage/**'
|
20
|
+
# Common deps & shared paths
|
21
|
+
- 'fog-google.gemspec'
|
22
|
+
- 'lib/fog/bin/google.rb'
|
23
|
+
- 'lib/fog/google/shared.rb'
|
24
|
+
- 'lib/fog/google.rb'
|
25
|
+
# Trigger workflow on version upgrade
|
26
|
+
- 'lib/fog/google/version.rb'
|
27
|
+
# Trigger when workflow itself is updated
|
28
|
+
- '.github/workflows/integration-storage.yml'
|
29
|
+
|
30
|
+
# Setting hard concurrency limit for the project due to cleanup
|
31
|
+
# TODO(fog-google#626): remove this once cleanup is fixed
|
32
|
+
concurrency:
|
33
|
+
group: ${{ github.workflow }}
|
34
|
+
cancel-in-progress: false
|
35
|
+
|
36
|
+
jobs:
|
37
|
+
test:
|
38
|
+
runs-on: fog-arc-runner
|
39
|
+
strategy:
|
40
|
+
matrix:
|
41
|
+
ruby-version: [ '3.0', '3.1', '3.2' ]
|
42
|
+
# Integration tests from the same task cannot run in parallel yet due to cleanup
|
43
|
+
max-parallel: 1
|
44
|
+
|
45
|
+
steps:
|
46
|
+
- uses: actions/checkout@v4
|
47
|
+
- name: Set up Ruby
|
48
|
+
uses: ruby/setup-ruby@v1
|
49
|
+
with:
|
50
|
+
ruby-version: ${{ matrix.ruby-version }}
|
51
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
52
|
+
- name: Run tests
|
53
|
+
run: >-
|
54
|
+
./.github/scripts/setup_creds.sh &&
|
55
|
+
bundle exec rake test:storage
|
data/.github/workflows/stale.yml
CHANGED
@@ -10,10 +10,10 @@ jobs:
|
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
|
12
12
|
steps:
|
13
|
-
- uses: actions/stale@
|
13
|
+
- uses: actions/stale@v9
|
14
14
|
with:
|
15
15
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
16
|
-
days-before-stale:
|
16
|
+
days-before-stale: 360
|
17
17
|
days-before-close: 7
|
18
18
|
exempt-issue-labels: 'pinned,security'
|
19
19
|
exempt-pr-labels: 'pinned,security'
|
data/.github/workflows/unit.yml
CHANGED
@@ -6,15 +6,20 @@ on:
|
|
6
6
|
pull_request:
|
7
7
|
branches: [ master ]
|
8
8
|
|
9
|
+
# Cancel in-progress jobs of the same ref or run_id
|
10
|
+
concurrency:
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
12
|
+
cancel-in-progress: true
|
13
|
+
|
9
14
|
jobs:
|
10
15
|
test-unit:
|
11
16
|
runs-on: ubuntu-latest
|
12
17
|
strategy:
|
13
18
|
matrix:
|
14
|
-
ruby-version: [
|
19
|
+
ruby-version: [ '3.0', '3.1', '3.2', 'head', 'truffleruby-head']
|
15
20
|
|
16
21
|
steps:
|
17
|
-
- uses: actions/checkout@
|
22
|
+
- uses: actions/checkout@v4
|
18
23
|
- name: Set up Ruby
|
19
24
|
uses: ruby/setup-ruby@v1
|
20
25
|
with:
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,118 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
6
6
|
|
7
7
|
## Next
|
8
8
|
|
9
|
+
|
10
|
+
## 1.24.1
|
11
|
+
|
12
|
+
### User-facing
|
13
|
+
|
14
|
+
#### Fixed
|
15
|
+
|
16
|
+
- #629 Fix IAM scope for storage requests [stanhu]
|
17
|
+
|
18
|
+
## 1.24.0
|
19
|
+
|
20
|
+
### User-facing
|
21
|
+
|
22
|
+
#### Added
|
23
|
+
|
24
|
+
- #613 Spruce up attaching and detaching disks on running servers [rchekaluk]
|
25
|
+
- #621 Added support for discard_local_ssd when stopping an instance [rchekaluk]
|
26
|
+
|
27
|
+
### Development changes
|
28
|
+
|
29
|
+
#### Added
|
30
|
+
|
31
|
+
- #618 Deprecated Ruby-2.0 support [temikus]
|
32
|
+
- #624 Migrated the Integration tests to new ARC runners [temikus]
|
33
|
+
- #625 Fixed 'Ostruct' errors in storage tests [temikus]
|
34
|
+
- #627 Added concurrency groups to integration test workfows [temikus]
|
35
|
+
|
36
|
+
#### Fixed
|
37
|
+
|
38
|
+
- #604 Updated pry requirement from = 0.13.0 to = 0.14.2 [dependabot]
|
39
|
+
- #619 Updated google-cloud-env requirement from ~> 1.2 to >= 1.2, < 3.0 [dependabot]
|
40
|
+
- #620 Bump actions/stale from 8 to 9 [dependabot]
|
41
|
+
- #622 Updated fog-core requirement from < 2.3 to < 2.5 [dependabot]
|
42
|
+
|
43
|
+
## 1.23.0
|
44
|
+
|
45
|
+
### User-facing
|
46
|
+
|
47
|
+
#### Fixed
|
48
|
+
|
49
|
+
- #609 Fixed missing paging on all models [agrare]
|
50
|
+
- #608 Fixed `Fog::Compute::Google::Servers#all` paging [agrare]
|
51
|
+
|
52
|
+
### Development changes
|
53
|
+
|
54
|
+
#### Fixed
|
55
|
+
|
56
|
+
- #606 Use `Minitest::Test` instead of `MiniTest::Test` [chubchenko]
|
57
|
+
- #605 Bump actions/checkout from 3 to 4 [dependabot]
|
58
|
+
- #602 Bump actions/stale from 6 to 8 [dependabot]
|
59
|
+
|
60
|
+
## 1.22.0
|
61
|
+
|
62
|
+
### User-facing
|
63
|
+
|
64
|
+
#### Added
|
65
|
+
|
66
|
+
- #600 - Add uniform attr to inserting file [cwjenkins]
|
67
|
+
|
68
|
+
### Development changes
|
69
|
+
|
70
|
+
#### Fixed
|
71
|
+
|
72
|
+
- #601 Remove deprecated ruby versions from unit tests [temikus]
|
73
|
+
|
74
|
+
## 1.21.1
|
75
|
+
|
76
|
+
### User-facing
|
77
|
+
|
78
|
+
#### Fixed
|
79
|
+
|
80
|
+
- \#597 loosen dependencies to avoid conflict
|
81
|
+
|
82
|
+
### Development changes
|
83
|
+
|
84
|
+
#### Fixed
|
85
|
+
|
86
|
+
- bump actions/checkout from 2.4.0 to 3.1.0
|
87
|
+
- fixes and refinements for integration tests
|
88
|
+
|
89
|
+
## 1.21.0
|
90
|
+
|
91
|
+
### User-facing
|
92
|
+
|
93
|
+
#### Fixed
|
94
|
+
|
95
|
+
- \#592 use Addressable for escaping paths when generating urls
|
96
|
+
- test workflow refinements
|
97
|
+
|
98
|
+
### Development changes
|
99
|
+
|
100
|
+
#### Fixed
|
101
|
+
|
102
|
+
- bump actions/checkout from 2.4.0 to 3.1.0
|
103
|
+
- fixes and refinements for integration tests
|
104
|
+
|
105
|
+
## 1.20.0
|
106
|
+
|
107
|
+
### User-facing
|
108
|
+
|
109
|
+
#### Fixed
|
110
|
+
|
111
|
+
- update google client dependencies
|
112
|
+
- \#591 only create new RSA keys if needed for faster signing
|
113
|
+
|
114
|
+
### Development changes
|
115
|
+
|
116
|
+
#### Fixed
|
117
|
+
|
118
|
+
- bump actions/checkout from 2.4.0 to 3.1.0
|
119
|
+
- fixes and refinements for integration tests
|
120
|
+
|
9
121
|
## 1.19.0
|
10
122
|
|
11
123
|
### User-facing
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Fog::Google
|
2
2
|
|
3
|
-
[](http://badge.fury.io/rb/fog-google) [](http://badge.fury.io/rb/fog-google) [](https://github.com/fog/fog-google/actions/workflows/unit.yml) [](https://codecov.io/gh/fog/fog-google)  [](https://inch-ci.org/github/fog/fog-google)
|
4
4
|
|
5
5
|
The main maintainers for the Google sections are @icco, @Temikus and @plribeiro3000. Please send pull requests to them.
|
6
6
|
|
@@ -8,7 +8,7 @@ The main maintainers for the Google sections are @icco, @Temikus and @plribeiro3
|
|
8
8
|
|
9
9
|
- As of **v1.0.0**, fog-google includes google-api-client as a dependency, there is no need to include it separately anymore.
|
10
10
|
|
11
|
-
- Fog-google is currently supported on Ruby 2.
|
11
|
+
- Fog-google is currently supported on Ruby 2.7+ See [supported ruby versions](#supported-ruby-versions) for more info.
|
12
12
|
|
13
13
|
See **[MIGRATING.md](MIGRATING.md)** for migration between major versions.
|
14
14
|
|
@@ -175,7 +175,7 @@ $ bundle exec pry
|
|
175
175
|
|
176
176
|
## Supported Ruby Versions
|
177
177
|
|
178
|
-
Fog-google is currently supported on Ruby
|
178
|
+
Fog-google is currently supported on Ruby 3.0+.
|
179
179
|
|
180
180
|
In general we support (and run our CI) for Ruby versions that are actively supported
|
181
181
|
by Ruby Core - that is, Ruby versions that are not end of life. Older versions of
|
data/examples/create_instance.rb
CHANGED