Skip to content

Commit 0dc882c

Browse files
author
Stefan Koch
committed
spec: adjust legacy tests to become integration tests
1 parent 170a91a commit 0dc882c

30 files changed

Lines changed: 774 additions & 2404 deletions

.github/workflows/integration.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: hcloud-ruby integration tests
2+
on: [workflow_dispatch]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
ruby-version: [ '3.1' ]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Ruby
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: ${{ matrix.ruby-version }}
17+
bundler-cache: true
18+
- name: Run integration tests
19+
run: bundle exec rspec -t integration

.github/workflows/ruby.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,3 @@ jobs:
2828
bundler-cache: true
2929
- name: Run double tests
3030
run: bundle exec rspec -t doubles --order rand
31-
- name: Run legacy tests
32-
run: LEGACY_TESTS=y bundle exec rspec -t ~doubles

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 3
10-
Lint/ShadowingOuterLocalVariable:
11-
Exclude:
12-
- 'spec/fake_service/datacenter.rb'
13-
- 'spec/fake_service/location.rb'
14-
- 'spec/fake_service/server_type.rb'
15-
169
# Offense count: 1
1710
# Configuration parameters: AllowKeywordBlockArguments.
1811
Lint/UnderscorePrefixedVariableName:
@@ -42,4 +35,3 @@ Metrics/PerceivedComplexity:
4235
Naming/MethodParameterName:
4336
Exclude:
4437
- 'lib/hcloud/abstract_resource.rb'
45-
- 'spec/fake_service/action.rb'

spec/fake_service/action.rb

Lines changed: 0 additions & 94 deletions
This file was deleted.

spec/fake_service/base.rb

Lines changed: 0 additions & 82 deletions
This file was deleted.

spec/fake_service/datacenter.rb

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)