Skip to content

Commit

Permalink
spec: adjust legacy tests to become integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Koch committed Jan 13, 2023
1 parent 170a91a commit 205cd92
Show file tree
Hide file tree
Showing 30 changed files with 821 additions and 2,419 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: hcloud-ruby integration tests
on: [workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: [ '3.1' ]
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run integration tests
run: bundle exec rspec -t integration
2 changes: 0 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ jobs:
bundler-cache: true
- name: Run double tests
run: bundle exec rspec -t doubles --order rand
- name: Run legacy tests
run: LEGACY_TESTS=y bundle exec rspec -t ~doubles
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 3
Lint/ShadowingOuterLocalVariable:
Exclude:
- 'spec/fake_service/datacenter.rb'
- 'spec/fake_service/location.rb'
- 'spec/fake_service/server_type.rb'

# Offense count: 1
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Expand Down Expand Up @@ -42,4 +35,3 @@ Metrics/PerceivedComplexity:
Naming/MethodParameterName:
Exclude:
- 'lib/hcloud/abstract_resource.rb'
- 'spec/fake_service/action.rb'
94 changes: 0 additions & 94 deletions spec/fake_service/action.rb

This file was deleted.

82 changes: 0 additions & 82 deletions spec/fake_service/base.rb

This file was deleted.

88 changes: 0 additions & 88 deletions spec/fake_service/datacenter.rb

This file was deleted.

Loading

0 comments on commit 205cd92

Please sign in to comment.