diff --git a/.github/actions/action.yml b/.github/actions/action.yml deleted file mode 100644 index 08f710a2..00000000 --- a/.github/actions/action.yml +++ /dev/null @@ -1,5 +0,0 @@ -name: 'Build local dockerfile' -description: 'Builds local dockerfile and runs the defailt action' -runs: - using: 'docker' - image: '../images/Dockerfile' \ No newline at end of file diff --git a/.github/images/.pnpmfile.cjs b/.github/images/.pnpmfile.cjs deleted file mode 100644 index 0211c2ce..00000000 --- a/.github/images/.pnpmfile.cjs +++ /dev/null @@ -1,25 +0,0 @@ -function readPackage(pkg, context) { - // Override the manifest of foo@1.x after downloading it from the registry - if ('cosmiconfig-typescript-loader' in pkg.dependencies) { - // Replace bar@x.x.x with bar@2.0.0 - pkg.dependencies = { - ...pkg.dependencies, - 'cosmiconfig-typescript-loader': '~4.3.0' - } - context.log(`cosmiconfig-typescript-loader in ${pkg.name}`) - } - - // This will change any packages using baz@x.x.x to use baz@1.2.3 - if (pkg.dependencies.baz) { - pkg.dependencies.baz = '1.2.3'; - } - - return pkg -} - -module.exports = { - hooks: { - readPackage - } -} - diff --git a/.github/images/Dockerfile b/.github/images/Dockerfile deleted file mode 100644 index c432cb73..00000000 --- a/.github/images/Dockerfile +++ /dev/null @@ -1,66 +0,0 @@ -FROM quay.io/centos/centos:stream8 AS base - -ENV PGHOST=postgres -ENV PGUSER=foreman -ENV PGPASS=foreman -ENV RAILS_ENV=test -ENV GIT_COMMITTER_NAME="gh_actions" -ENV GIT_COMMITTER_EMAIL="gh_actions@rh_cloud.foreman" -ENV WORKDIR=/projects/foreman -ENV BUNDLE_PATH=vendor/bundle - -RUN \ - dnf module install -y ruby:2.7 nodejs:14 postgresql:12;\ - dnf install -y epel-release; \ - dnf install -y redhat-rpm-config libpq-devel ruby-devel systemd-devel make tar libvirt-devel zlib-devel libxml2-devel openssl-libs libvirt-devel nodejs automake gcc gcc-c++ kernel-devel libcurl-devel sqlite-devel npm git postgresql-server-devel; \ - git config --global user.name $GIT_COMMITTER_NAME; \ - git config --global user.email $GIT_COMMITTER_EMAIL; \ - mkdir /projects; \ - cd /projects; \ - git clone --depth 1 --branch 3.8-stable https://github.com/theforeman/foreman.git; \ - git clone --depth 1 --branch KATELLO-4.10 https://github.com/Katello/katello.git; \ - git clone --depth 1 --branch v8.2.0 https://github.com/theforeman/foreman-tasks.git; \ - git clone --depth 1 --branch foreman_3_9 https://github.com/theforeman/foreman_rh_cloud.git - -RUN \ - cd /projects/foreman; \ - echo "gemspec :path => '../foreman_rh_cloud', :development_group => :dev" > bundler.d/foreman_rh_cloud.local.rb; \ - echo "gemspec :path => '../katello', :development_group => :dev" > bundler.d/katello.local.rb; \ - echo "gemspec :path => '../foreman-tasks', :development_group => :dev, :name => 'foreman-tasks'" > bundler.d/foreman-tasks.local.rb; \ - echo "gem 'foreman_remote_execution', '~> 11.0.0'" > bundler.d/foreman_remote_execution.local.rb; \ - echo "gem 'foreman_ansible', '~> 12.0.7'" > bundler.d/foreman_ansible.local.rb; \ - cp ../foreman_rh_cloud/config/database.yml.example config/database.yml; \ - cp ../foreman_rh_cloud/config/Gemfile.lock.gh_test Gemfile.lock; - -WORKDIR /projects/foreman -RUN \ - bundle config path vendor/bundle; \ - npm install pnpm@^7.x.x -g; - -RUN \ - cd /projects/foreman; \ - rm -rf Gemfile.lock; \ - bundle install --jobs=3 --retry=3 --without journald development console - -RUN rm -rf /projects/foreman/npm_install_plugins.js -COPY ./npm_install_plugins.js /projects/foreman/script/npm_install_plugins.js -COPY ./.pnpmfile.cjs /projects/foreman/.pnpmfile.cjs -RUN \ - cd /projects/foreman; \ - chmod +x ./script/npm_install_plugins.js; \ - bundle exec pnpm install; \ - pnpm i graphql-tag@^2.0.0; \ - bundle exec ./script/npm_install_plugins.js - -COPY ./entrypoint.sh /usr/bin/ - -RUN sed -i s/SCLS=/SCLS=\""$SCLS"\"/g /usr/bin/entrypoint.sh - -RUN chmod +x /usr/bin/entrypoint.sh - -COPY ./run_tests.sh /usr/bin/ -RUN chmod +x /usr/bin/run_tests.sh - -CMD ["/usr/bin/run_tests.sh"] - -ENTRYPOINT ["entrypoint.sh"] diff --git a/.github/images/docker-compose.yaml b/.github/images/docker-compose.yaml deleted file mode 100644 index 69f75e44..00000000 --- a/.github/images/docker-compose.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# version: "3" -services: - postgres: - image: quay.io/jomitsch/postgres-with-evr - ports: ['5432:5432'] - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - env: - POSTGRES_USER: foreman - POSTGRES_PASSWORD: foreman - foreman: - image: quay.io/shimshtein/tfm_plugin_test:foreman_2_5 - volumes: - - ../../:/projects/foreman_rh_cloud:Z - depends_on: - - "postgres" diff --git a/.github/images/entrypoint.sh b/.github/images/entrypoint.sh deleted file mode 100644 index 3310a221..00000000 --- a/.github/images/entrypoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -export PATH=~/bin:${GEM_HOME}/bin:${PATH} - -SCLS= - -if [ -x "$(command -v scl_source)" ]; then - source scl_source enable $SCLS -fi - -cd $WORKDIR -exec "$@" \ No newline at end of file diff --git a/.github/images/npm_install_plugins.js b/.github/images/npm_install_plugins.js deleted file mode 100644 index f3e35a88..00000000 --- a/.github/images/npm_install_plugins.js +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env node -const childProcess = require('child_process'); -const { packageJsonDirs } = require('./plugin_webpack_directories'); - -packageJsonDirs('pipe').forEach(pluginPath => { - childProcess.spawn('pnpm', ['install', '--no-optional'], { - env: process.env, - cwd: pluginPath, - stdio: 'inherit', - }); -}); diff --git a/.github/images/run_tests.sh b/.github/images/run_tests.sh deleted file mode 100644 index d659f01a..00000000 --- a/.github/images/run_tests.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -bundle install - -# wait for postgres -until PGPASSWORD=$PGPASS psql -h "$PGHOST" -U $PGUSER -c '\q'; do - >&2 echo "Postgres is unavailable - sleeping" - sleep 2 -done - -if [ "$( psql -tAc "SELECT 1 FROM pg_database WHERE datname='foreman-test'" )" = '1' ] -then - echo "Database already exists" -else - bundle exec rails db:create -fi - -if [ "$( psql -tAc "SELECT 1 FROM pg_database WHERE datname='foreman-prod'" )" = '1' ] -then - echo "Database already exists" -else - bundle exec rails db:create RAILS_ENV=production -fi - -bundle exec rails db:migrate -bundle exec pnpm i -bundle exec ./script/npm_install_plugins.js - -set -e - -bundle exec rake foreman_rh_cloud:rubocop -bundle exec rake test:foreman_rh_cloud -RAILS_ENV=production bundle exec rails db:migrate RAILS_ENV=production -bundle exec rake "plugin:assets:precompile[foreman_rh_cloud]" RAILS_ENV=production -#bundle exec rake webpack:compile -node --max_old_space_size=2048 node_modules/webpack/bin/webpack.js --config /projects/foreman/config/webpack.config.js --bail diff --git a/.github/workflows/build_container.yml b/.github/workflows/build_container.yml deleted file mode 100644 index 283aca6d..00000000 --- a/.github/workflows/build_container.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Build container -on: [push] - -jobs: - build_test_container: - runs-on: ubuntu-latest - - steps: - - name: Checkout the repo - uses: actions/checkout@v2 - - name: Build the test container - id: build_image - uses: redhat-actions/buildah-build@v2 - with: - image: tfm_plugin_test - tags: ${{ github.ref_name }} - containerfiles: | - ./.github/images/Dockerfile - context: ./.github/images/ - - name: lowercase repo name - id: lowercase-repo - uses: ASzc/change-string-case-action@v1 - with: - string: ${{ github.repository_owner }} - - name: Push To Github container registry - uses: redhat-actions/push-to-registry@v2 - id: push-to-ghcr - with: - image: ${{ steps.build_image.outputs.image }} - tags: ${{ steps.build_image.outputs.tags }} - registry: ghcr.io/${{ steps.lowercase-repo.outputs.lowercase }} - username: ${{ github.actor }} - password: ${{ github.token }} - extra-args: | - --disable-content-trust - - name: Echo outputs - run: | - echo "${{ toJSON(steps.push-to-ghcr.outputs) }}" \ No newline at end of file diff --git a/.github/workflows/build_container_pr.yml b/.github/workflows/build_container_pr.yml deleted file mode 100644 index 14a49a44..00000000 --- a/.github/workflows/build_container_pr.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build container for PR -on: - pull_request: - paths: - - '**/.github/**/*' -jobs: - build_test_container: - runs-on: ubuntu-latest - - services: - postgres: - image: quay.io/jomitsch/postgres-with-evr - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - env: - POSTGRES_USER: foreman - POSTGRES_PASSWORD: foreman - - steps: - - name: Checkout the repo - uses: actions/checkout@v2 - - name: Build local dockerfile - uses: ./.github/actions/ diff --git a/.github/workflows/ruby_tests.yml b/.github/workflows/ruby_tests.yml index 14492eca..854bbc21 100644 --- a/.github/workflows/ruby_tests.yml +++ b/.github/workflows/ruby_tests.yml @@ -2,63 +2,31 @@ name: Ruby tests on: push: branches: [foreman_3_9] - paths-ignore: - - '**/.github/**/*' pull_request: branches: [foreman_3_9] - paths-ignore: - - '**/.github/**/*' -defaults: - run: - working-directory: /projects/foreman -jobs: - test_ruby: - defaults: - run: - working-directory: /projects/foreman - env: - PGHOST: postgres - PGUSER: foreman - PGPASS: foreman - RAILS_ENV: test - host: postgres - WORKDIR: /projects/foreman - BUNDLE_PATH: vendor/bundle - GIT_COMMITTER_NAME: "gh_actions" - GIT_COMMITTER_EMAIL: "gh_actions@rh_cloud.foreman" - - runs-on: ubuntu-latest - container: - image: ghcr.io/theforeman/tfm_plugin_test:foreman_3_9 +concurrency: + group: ${{ github.ref_name }}-${{ github.workflow }} + cancel-in-progress: true - services: - postgres: - image: quay.io/jomitsch/postgres-with-evr - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - env: - POSTGRES_USER: foreman - POSTGRES_PASSWORD: foreman +jobs: + rubocop: + name: Rubocop + uses: theforeman/actions/.github/workflows/rubocop.yml@v0 - steps: - - name: Checkout foreman_rh_cloud repo - uses: actions/checkout@v2 - with: - path: ${{ github.workspace }}/projects/foreman_rh_cloud - - name: Fix git config - run: | - rm -rf /projects/foreman_rh_cloud/{app,test,lib} - cp -Rf $GITHUB_WORKSPACE/projects/foreman_rh_cloud /projects/ - /usr/bin/entrypoint.sh pnpm config set store-dir /root/.local/share/pnpm/store/v3 - cd /projects/foreman - /usr/bin/entrypoint.sh git config --global user.name $GIT_COMMITTER_NAME - /usr/bin/entrypoint.sh git config --global user.email $GIT_COMMITTER_EMAIL - - name: Run tests suite - run: | - cd /projects/foreman - /usr/bin/entrypoint.sh /usr/bin/run_tests.sh + test: + name: Ruby + needs: rubocop + strategy: + fail-fast: false + matrix: + foreman: + - 3.9-stable + - develop + uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0 + with: + plugin: foreman_rh_cloud + postgresql_container: ghcr.io/theforeman/postgresql-evr + test_existing_database: false + foreman_version: ${{ matrix.foreman }} diff --git a/config/Gemfile.lock.gh_test b/config/Gemfile.lock.gh_test deleted file mode 100644 index d475901a..00000000 --- a/config/Gemfile.lock.gh_test +++ /dev/null @@ -1,879 +0,0 @@ -PATH - remote: ../foreman-tasks - specs: - foreman-tasks (6.0.2) - dynflow (>= 1.6.0) - get_process_mem - parse-cron (~> 0.1.4) - sinatra - -PATH - remote: ../foreman_rh_cloud - specs: - foreman_rh_cloud (6.0.39) - foreman-tasks - foreman_ansible - katello - -PATH - remote: ../katello - specs: - katello (4.5.0) - activerecord-import - anemone - angular-rails-templates (~> 1.1.0) - apipie-rails (>= 0.5.14) - deface (>= 1.0.2, < 2.0.0) - dynflow (>= 1.6.1) - faraday (< 1.9) - foreman-tasks (>= 5.0) - foreman_remote_execution (>= 7.1.0) - fx (< 1.0) - gettext_i18n_rails - json - oauth - pg - pulp_ansible_client (>= 0.13.1, < 0.14) - pulp_certguard_client (< 2.0) - pulp_container_client (>= 2.10.0, < 2.11.0) - pulp_deb_client (>= 2.18.0, < 2.19.0) - pulp_file_client (>= 1.10.0, < 1.11.0) - pulp_ostree_client - pulp_python_client (>= 3.6.0, < 3.7.0) - pulp_rpm_client (>= 3.17.0, < 3.18.0) - pulpcore_client (>= 3.18.0, < 3.19.0) - qpid_proton - rabl - rails - rest-client - runcible (>= 2.13.0, < 3.0.0) - scoped_search (>= 4.1.9) - stomp - -GEM - remote: https://rubygems.org/ - specs: - actioncable (6.0.4.8) - actionpack (= 6.0.4.8) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailbox (6.0.4.8) - actionpack (= 6.0.4.8) - activejob (= 6.0.4.8) - activerecord (= 6.0.4.8) - activestorage (= 6.0.4.8) - activesupport (= 6.0.4.8) - mail (>= 2.7.1) - actionmailer (6.0.4.8) - actionpack (= 6.0.4.8) - actionview (= 6.0.4.8) - activejob (= 6.0.4.8) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (6.0.4.8) - actionview (= 6.0.4.8) - activesupport (= 6.0.4.8) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.4.8) - actionpack (= 6.0.4.8) - activerecord (= 6.0.4.8) - activestorage (= 6.0.4.8) - activesupport (= 6.0.4.8) - nokogiri (>= 1.8.5) - actionview (6.0.4.8) - activesupport (= 6.0.4.8) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.0.4.8) - activesupport (= 6.0.4.8) - globalid (>= 0.3.6) - activemodel (6.0.4.8) - activesupport (= 6.0.4.8) - activerecord (6.0.4.8) - activemodel (= 6.0.4.8) - activesupport (= 6.0.4.8) - activerecord-import (1.4.0) - activerecord (>= 4.2) - activerecord-nulldb-adapter (0.8.0) - activerecord (>= 5.2.0, < 7.1) - activerecord-session_store (2.0.0) - actionpack (>= 5.2.4.1) - activerecord (>= 5.2.4.1) - multi_json (~> 1.11, >= 1.11.2) - rack (>= 2.0.8, < 3) - railties (>= 5.2.4.1) - activestorage (6.0.4.8) - actionpack (= 6.0.4.8) - activejob (= 6.0.4.8) - activerecord (= 6.0.4.8) - marcel (~> 1.0.0) - activesupport (6.0.4.8) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) - acts_as_list (1.0.4) - activerecord (>= 4.2) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - algebrick (0.7.5) - amazing_print (1.4.0) - ancestry (3.2.1) - activerecord (>= 4.2.0) - anemone (0.7.2) - nokogiri (>= 1.3.0) - robotex (>= 1.0.0) - angular-rails-templates (1.1.0) - railties (>= 4.2, < 7) - sprockets (>= 3.0, < 5) - tilt - ansi (1.5.0) - apipie-dsl (2.5.0) - apipie-params (0.0.5) - apipie-rails (0.5.20) - rails (>= 4.1) - as_deprecation_tracker (1.6.0) - activesupport (>= 4.2) - railties (>= 4.2) - ast (2.4.2) - audited (4.10.0) - activerecord (>= 4.2, < 6.2) - autoprefixer-rails (10.4.7.0) - execjs (~> 2) - bcrypt (3.1.18) - bcrypt_pbkdf (1.1.0) - benchmark-ips (2.10.0) - binding_of_caller (1.0.0) - debug_inspector (>= 0.0.1) - bootsnap (1.13.0) - msgpack (~> 1.2) - bootstrap-sass (3.4.1) - autoprefixer-rails (>= 5.2.1) - sassc (>= 2.0.0) - builder (3.2.4) - bullet (7.0.2) - activesupport (>= 3.0.0) - uniform_notifier (~> 1.11) - byebug (11.1.3) - capybara (3.37.1) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - childprocess (4.1.0) - coderay (1.1.3) - coffee-rails (5.0.0) - coffee-script (>= 2.2.0) - railties (>= 5.2.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.1.10) - concurrent-ruby-edge (0.6.0) - concurrent-ruby (~> 1.1.6) - connection_pool (2.2.5) - crack (0.4.5) - rexml - crass (1.0.6) - css_parser (1.11.0) - addressable - daemons (1.4.1) - database_cleaner (1.99.0) - deacon (1.0.0) - debug_inspector (1.1.0) - declarative (0.0.20) - deep_cloneable (3.2.0) - activerecord (>= 3.1.0, < 8) - deface (1.9.0) - actionview (>= 5.2) - nokogiri (>= 1.6) - polyglot - railties (>= 5.2) - rainbow (>= 2.1.0) - docile (1.4.0) - domain_name (0.5.20190701) - unf (>= 0.0.5, < 1.0.0) - dynflow (1.6.7) - algebrick (~> 0.7.0) - apipie-params - concurrent-ruby (~> 1.1.3) - concurrent-ruby-edge (~> 0.6.0) - msgpack (~> 1.3, >= 1.3.3) - multi_json - sequel (>= 4.0.0) - ed25519 (1.3.0) - erubi (1.11.0) - excon (0.92.4) - execjs (2.8.1) - facter (4.2.11) - hocon (~> 1.3) - thor (>= 1.0.1, < 2.0) - facterdb (1.19.0) - facter (< 5.0.0) - jgrep - factory_bot (5.2.0) - activesupport (>= 4.2.0) - factory_bot_rails (5.2.0) - factory_bot (~> 5.2.0) - railties (>= 4.2.0) - faraday (0.17.5) - multipart-post (>= 1.2, < 3) - fast_gettext (1.8.0) - ffi (1.15.5) - fog-aws (3.14.0) - fog-core (~> 2.1) - fog-json (~> 1.1) - fog-xml (~> 0.1) - fog-core (2.1.0) - builder - excon (~> 0.58) - formatador (~> 0.2) - mime-types - fog-google (1.11.0) - fog-core (<= 2.1.0) - fog-json (~> 1.2) - fog-xml (~> 0.1.0) - google-api-client (>= 0.32, < 0.34) - google-cloud-env (~> 1.2) - fog-json (1.2.0) - fog-core - multi_json (~> 1.10) - fog-libvirt (0.9.0) - fog-core (>= 1.27.4) - fog-json - fog-xml (~> 0.1.1) - json - ruby-libvirt (>= 0.7.0) - fog-openstack (1.1.0) - fog-core (~> 2.1) - fog-json (>= 1.0) - fog-ovirt (2.0.2) - activesupport - fog-core - fog-json - fog-xml - ovirt-engine-sdk (>= 4.3.1) - fog-vsphere (3.5.2) - fog-core - rbvmomi (>= 1.9, < 3) - fog-xml (0.1.4) - fog-core - nokogiri (>= 1.5.11, < 2.0.0) - font-awesome-sass (4.6.2) - sass (>= 3.2) - foreman (0.87.2) - foreman-tasks-core (0.3.6) - dynflow (>= 1.2.0) - foreman_ansible (7.1.2) - acts_as_list (~> 1.0.3) - deface (< 2.0) - foreman-tasks (>= 5.2.0) - foreman_remote_execution (>= 4.4.0) - foreman_ansible_core (4.2.1) - foreman-tasks-core (~> 0.3.2) - foreman_remote_execution_core (~> 1.1) - net-ssh - foreman_remote_execution (7.1.1) - deface - dynflow (>= 1.0.2, < 2.0.0) - foreman-tasks (>= 5.1.0) - foreman_remote_execution_core (1.5.0) - bcrypt_pbkdf - ed25519 - foreman-tasks-core (>= 0.3.1) - net-ssh - smart_proxy_remote_execution_ssh (>= 0.4.0) - formatador (0.3.0) - forwardable (1.3.2) - friendly_id (5.3.0) - activerecord (>= 4.0.0) - fx (0.7.0) - activerecord (>= 4.0.0) - railties (>= 4.0.0) - get_process_mem (0.2.7) - ffi (~> 1.0) - gettext (3.4.3) - erubi - locale (>= 2.0.5) - prime - text (>= 1.3.0) - gettext_i18n_rails (1.8.1) - fast_gettext (>= 0.9.0) - gettext_i18n_rails_js (1.3.1) - gettext (>= 3.0.2) - gettext_i18n_rails (>= 0.7.1) - po_to_json (>= 1.0.0) - rails (>= 3.2.0) - gitlab-sidekiq-fetcher (0.6.1) - sidekiq (>= 5, < 6.1) - globalid (1.0.0) - activesupport (>= 5.0) - google-api-client (0.33.2) - addressable (~> 2.5, >= 2.5.1) - googleauth (~> 0.9) - httpclient (>= 2.8.1, < 3.0) - mini_mime (~> 1.0) - representable (~> 3.0) - retriable (>= 2.0, < 4.0) - signet (~> 0.12) - google-cloud-env (1.6.0) - faraday (>= 0.17.3, < 3.0) - googleauth (0.17.1) - faraday (>= 0.17.3, < 2.0) - jwt (>= 1.4, < 3.0) - memoist (~> 0.16) - multi_json (~> 1.11) - os (>= 0.9, < 2.0) - signet (~> 0.15) - graphiql-rails (1.8.0) - railties - sprockets-rails - graphql (1.8.18) - graphql-batch (0.4.3) - graphql (>= 1.3, < 2) - promise.rb (~> 0.7.2) - hashdiff (1.0.1) - hocon (1.3.1) - http-accept (1.7.0) - http-cookie (1.0.5) - domain_name (~> 0.5) - httpclient (2.8.3) - i18n (1.12.0) - concurrent-ruby (~> 1.0) - immigrant (0.3.6) - activerecord (>= 3.0) - jgrep (1.5.4) - journald-logger (3.1.0) - journald-native (~> 1.0) - journald-native (1.0.12) - jquery-ui-rails (6.0.1) - railties (>= 3.2.16) - json (2.6.2) - jwt (2.2.3) - launchy (2.5.0) - addressable (~> 2.7) - ldap_fluff (0.6.0) - activesupport - net-ldap (>= 0.11) - little-plugger (1.1.4) - locale (2.1.3) - logging (2.3.1) - little-plugger (~> 1.1) - multi_json (~> 1.14) - logging-journald (2.1.0) - journald-logger (~> 3.0) - logging - loofah (2.18.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - maruku (0.7.3) - matrix (0.4.2) - memoist (0.16.2) - method_source (1.0.0) - mime-types (3.4.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2022.0105) - mini_mime (1.1.2) - minitest (5.16.2) - minitest-reporters (1.5.0) - ansi - builder - minitest (>= 5.0) - ruby-progressbar - minitest-retry (0.2.2) - minitest (>= 5.0) - minitest-spec-rails (6.1.0) - minitest (>= 5.0) - railties (>= 4.1) - minitest-tags (0.0.5) - mocha (1.14.0) - mqtt (0.5.0) - msgpack (1.5.4) - multi_json (1.15.0) - multipart-post (2.2.3) - mustermann (2.0.2) - ruby2_keywords (~> 0.0.1) - net-ldap (0.17.1) - net-ping (2.0.8) - net-scp (3.0.0) - net-ssh (>= 2.6.5, < 7.0.0) - net-ssh (4.2.0) - netrc (0.11.0) - nio4r (2.5.8) - nokogiri (1.13.8-x86_64-linux) - racc (~> 1.4) - oauth (0.5.10) - optimist (3.0.1) - os (1.1.4) - ovirt-engine-sdk (4.4.1) - json (>= 1, < 3) - paint (2.3.0) - parallel (1.22.1) - parallel_tests (3.11.1) - parallel - parse-cron (0.1.4) - parser (3.1.2.1) - ast (~> 2.4.1) - patternfly-sass (3.59.5) - bootstrap-sass (~> 3.4.0) - font-awesome-sass (~> 4.6.2) - sassc (> 2.0.1, < 3.0) - pg (1.4.3) - po_to_json (1.0.1) - json (>= 1.6.0) - polyglot (0.3.5) - prime (0.1.2) - forwardable - singleton - prometheus-client (1.0.0) - promise.rb (0.7.4) - pry (0.13.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-byebug (3.9.0) - byebug (~> 11.0) - pry (~> 0.13.0) - pry-doc (1.3.0) - pry (~> 0.11) - yard (~> 0.9.11) - pry-rails (0.3.9) - pry (>= 0.10.4) - pry-remote (0.1.8) - pry (~> 0.9) - slop (~> 3.0) - pry-stack_explorer (0.6.1) - binding_of_caller (~> 1.0) - pry (~> 0.13) - public_suffix (4.0.7) - pulp_ansible_client (0.13.2) - faraday (~> 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - pulp_certguard_client (1.5.3) - faraday (~> 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - pulp_container_client (2.10.5) - faraday (>= 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - pulp_deb_client (2.18.0) - faraday (~> 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - pulp_file_client (1.10.3) - faraday (~> 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - pulp_ostree_client (2.0.0a7.dev1660103594) - faraday (>= 0.17, < 2.0) - json (~> 2.1, >= 2.1.0) - pulp_python_client (3.6.0) - faraday (>= 0.14.0) - json (~> 2.1, >= 2.1.0) - pulp_rpm_client (3.17.10) - faraday (>= 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - pulpcore_client (3.18.6) - faraday (>= 0.17, < 1.9.0) - json (~> 2.1, >= 2.1.0) - puma (5.6.4) - nio4r (~> 2.0) - qpid_proton (0.33.0) - rabl (0.14.5) - activesupport (>= 2.3.14) - racc (1.6.0) - rack (2.2.4) - rack-cors (1.0.6) - rack (>= 1.6.0) - rack-jsonp (1.3.1) - rack - rack-openid (1.4.2) - rack (>= 1.1.0) - ruby-openid (>= 2.1.8) - rack-protection (2.2.2) - rack - rack-test (2.0.2) - rack (>= 1.3) - rails (6.0.4.8) - actioncable (= 6.0.4.8) - actionmailbox (= 6.0.4.8) - actionmailer (= 6.0.4.8) - actionpack (= 6.0.4.8) - actiontext (= 6.0.4.8) - actionview (= 6.0.4.8) - activejob (= 6.0.4.8) - activemodel (= 6.0.4.8) - activerecord (= 6.0.4.8) - activestorage (= 6.0.4.8) - activesupport (= 6.0.4.8) - bundler (>= 1.3.0) - railties (= 6.0.4.8) - sprockets-rails (>= 2.0.0) - rails-controller-testing (1.0.5) - actionpack (>= 5.0.1.rc1) - actionview (>= 5.0.1.rc1) - activesupport (>= 5.0.1.rc1) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.3) - loofah (~> 2.3) - rails-i18n (6.0.0) - i18n (>= 0.7, < 2) - railties (>= 6.0.0, < 7) - railties (6.0.4.8) - actionpack (= 6.0.4.8) - activesupport (= 6.0.4.8) - method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - rb-fsevent (0.11.1) - rb-inotify (0.10.1) - ffi (~> 1.0) - rbvmomi (2.4.1) - builder (~> 3.0) - json (>= 1.8) - nokogiri (~> 1.5) - optimist (~> 3.0) - rdoc (6.3.3) - redis (4.5.1) - regexp_parser (2.5.0) - representable (3.2.0) - declarative (< 0.1.0) - trailblazer-option (>= 0.1.1, < 0.2.0) - uber (< 0.2.0) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rest-client (2.1.0) - http-accept (>= 1.7.0, < 2.0) - http-cookie (>= 1.0.2, < 2.0) - mime-types (>= 1.16, < 4.0) - netrc (~> 0.8) - retriable (3.1.2) - rexml (3.2.5) - rfauxfactory (0.1.5) - roadie (4.0.0) - css_parser (~> 1.4) - nokogiri (~> 1.8) - roadie-rails (2.3.0) - railties (>= 5.1, < 7.1) - roadie (>= 3.1, < 5.0) - robotex (1.0.0) - robottelo_reporter (0.1.1) - builder (>= 2.1.2) - rubocop (0.89.1) - parallel (~> 1.10) - parser (>= 2.7.1.1) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) - rexml - rubocop-ast (>= 0.3.0, < 1.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (0.8.0) - parser (>= 2.7.1.5) - rubocop-checkstyle_formatter (0.4.0) - rubocop (>= 0.35.1) - rubocop-minitest (0.10.3) - rubocop (>= 0.87, < 2.0) - rubocop-performance (1.8.1) - rubocop (>= 0.87.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.8.1) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 0.87.0) - rubocop-rspec (1.43.2) - rubocop (~> 0.87) - ruby-libvirt (0.8.0) - ruby-openid (2.9.2) - ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) - ruby2ruby (2.4.4) - ruby_parser (~> 3.1) - sexp_processor (~> 4.6) - ruby_parser (3.19.1) - sexp_processor (~> 4.16) - rubyzip (2.3.2) - runcible (2.13.1) - activesupport (>= 3.0.10) - i18n (>= 0.5.0) - json - oauth - rest-client (>= 1.6.1, < 3.0.0) - safemode (1.3.7) - ruby2ruby (>= 2.4.0) - ruby_parser (>= 3.10.1) - sexp_processor (>= 4.10.0) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (6.0.0) - sassc-rails (~> 2.1, >= 2.1.1) - sassc (2.4.0) - ffi (~> 1.9) - sassc-rails (2.1.2) - railties (>= 4.0.0) - sassc (>= 2.0) - sprockets (> 3.0) - sprockets-rails - tilt - scoped_search (4.1.10) - activerecord (>= 4.2.0) - sd_notify (0.1.1) - secure_headers (6.4.0) - selenium-webdriver (4.4.0) - childprocess (>= 0.5, < 5.0) - rexml (~> 3.2, >= 3.2.5) - rubyzip (>= 1.2.2, < 3.0) - websocket (~> 1.0) - sequel (5.59.0) - sexp_processor (4.16.1) - shoulda-context (1.2.2) - shoulda-matchers (4.3.0) - activesupport (>= 4.2.0) - show_me_the_cookies (5.0.1) - capybara (>= 2, < 4) - sidekiq (5.2.10) - connection_pool (~> 2.2, >= 2.2.2) - rack (~> 2.0) - rack-protection (>= 1.5.0) - redis (~> 4.5, < 4.6.0) - signet (0.17.0) - addressable (~> 2.8) - faraday (>= 0.17.5, < 3.a) - jwt (>= 1.5, < 3.0) - multi_json (~> 1.10) - simplecov (0.21.2) - docile (~> 1.1) - simplecov-html (~> 0.11) - simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) - simplecov-rcov (0.3.1) - simplecov (>= 0.4.1) - simplecov_json_formatter (0.1.4) - sinatra (2.2.2) - mustermann (~> 2.0) - rack (~> 2.2) - rack-protection (= 2.2.2) - tilt (~> 2.0) - single_test (0.6.0) - rake - singleton (0.1.1) - slop (3.6.0) - smart_proxy_dynflow (0.8.1) - dynflow (~> 1.6) - rest-client - sqlite3 - smart_proxy_remote_execution_ssh (0.8.0) - mqtt - net-ssh (>= 4.2.0) - smart_proxy_dynflow (~> 0.8) - spring (2.1.1) - sprockets (4.1.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - sqlite3 (1.4.4) - sshkey (1.9.0) - statsd-instrument (2.9.2) - stomp (1.4.10) - text (1.3.1) - theforeman-rubocop (0.0.6) - rubocop (~> 0.89.0) - rubocop-checkstyle_formatter (~> 0.4.0) - rubocop-minitest (~> 0.10.1) - rubocop-performance (~> 1.8.1) - rubocop-rails (~> 2.8.1) - rubocop-rspec (~> 1.43.2) - thor (1.2.1) - thread_safe (0.3.6) - tilt (2.0.11) - trailblazer-option (0.1.2) - tzinfo (1.2.10) - thread_safe (~> 0.1) - uber (0.1.0) - uglifier (4.2.0) - execjs (>= 0.3.0, < 3) - unf (0.1.4) - unf_ext - unf_ext (0.0.8.2) - unicode-display_width (1.8.0) - uniform_notifier (1.16.0) - validates_lengths_from_database (0.8.0) - activerecord (>= 4) - vcr (3.0.3) - webmock (3.17.1) - addressable (>= 2.8.0) - crack (>= 0.3.2) - hashdiff (>= 0.4.0, < 2.0.0) - webpack-rails (0.9.11) - railties (>= 3.2.0) - webrick (1.7.0) - websocket (1.2.9) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - will_paginate (3.3.1) - wirb (2.2.2) - paint (>= 0.9, < 3.0) - xpath (3.2.0) - nokogiri (~> 1.8) - yard (0.9.28) - webrick (~> 1.7.0) - zeitwerk (2.6.0) - -PLATFORMS - x86_64-linux - -DEPENDENCIES - activerecord-nulldb-adapter - activerecord-session_store (>= 2.0.0, < 3) - amazing_print (~> 1.1) - ancestry (>= 3.0.7, < 4, != 3.2.0) - apipie-dsl (>= 2.2.6) - apipie-rails (>= 0.5.17, < 0.6.0) - as_deprecation_tracker (~> 1.4) - audited (>= 4.9.0, < 5) - bcrypt (~> 3.1) - benchmark-ips (>= 2.8.2) - bootsnap - bullet (>= 6.1.0) - byebug - capybara (~> 3.33) - coffee-rails (~> 5.0.0) - daemons - database_cleaner (~> 1.3) - deacon (~> 1.0) - deep_cloneable (>= 3, < 4) - dynflow (>= 1.4.4, < 2.0.0) - execjs (>= 1.4.0, < 3.0) - facter - facterdb (~> 1.7) - factory_bot_rails (~> 5.0) - fast_gettext (~> 1.4) - fog-aws (>= 3.6.2, < 4) - fog-core (= 2.1.0) - fog-google (~> 1.11.0) - fog-libvirt (>= 0.9.0) - fog-openstack (>= 1.0.8, < 2.0.0) - fog-ovirt (>= 2.0.1, < 3) - fog-vsphere (>= 3.5.0, < 4.0) - foreman - foreman-tasks! - foreman_ansible (~> 7.1.2) - foreman_ansible_core - foreman_remote_execution (~> 7.1.0) - foreman_rh_cloud! - friendly_id (>= 5.3.0, < 5.4) - get_process_mem - gettext (>= 3.2.1, < 4.0.0) - gettext_i18n_rails (~> 1.8) - gettext_i18n_rails_js (~> 1.3.1) - gitlab-sidekiq-fetcher - graphiql-rails (~> 1.7) - graphql (~> 1.8.0) - graphql-batch - i18n (~> 1.1) - immigrant (~> 0.1) - jquery-ui-rails (~> 6.0) - jwt (~> 2.2.2) - katello! - launchy (~> 2.4) - ldap_fluff (>= 0.5.0, < 1.0) - logging (>= 1.8.0, < 3.0.0) - logging-journald (~> 2.0) - mail (~> 2.7) - maruku (~> 0.7) - minitest (~> 5.1) - minitest-reporters (~> 1.4) - minitest-retry (~> 0.0) - minitest-spec-rails (~> 6.0) - minitest-tags - mocha (~> 1.11) - net-ldap (>= 0.16.0) - net-ping - net-scp - net-ssh (= 4.2.0) - oauth (>= 0.5.4, < 1) - parallel_tests - patternfly-sass (~> 3.59.4) - pg (>= 0.18, < 2.0) - prometheus-client (~> 1.0) - pry - pry-byebug - pry-doc - pry-rails - pry-remote - pry-stack_explorer - puma (~> 5.1) - qpid_proton (~> 0.33.0) - rabl (~> 0.14.2) - rack-cors (~> 1.0.2) - rack-jsonp - rack-openid (~> 1.3) - rails (~> 6.0.4.7) - rails-controller-testing (~> 1.0) - rails-i18n (~> 6.0) - rainbow (>= 2.2.1) - rbvmomi (~> 2.0) - rdoc (< 6.4) - redis (~> 4.0) - responders (~> 3.0) - rest-client (>= 2.0.0, < 3) - rfauxfactory (~> 0.1, >= 0.1.5) - roadie-rails (~> 2.0) - robottelo_reporter (~> 0.1) - rubocop - rubocop-checkstyle_formatter - rubocop-performance - rubocop-rails - ruby-libvirt (~> 0.5) - safemode (>= 1.3.5, < 2) - sass-rails (~> 6.0) - scoped_search (>= 4.1.8, < 5) - sd_notify (~> 0.1) - secure_headers (~> 6.3) - selenium-webdriver - shoulda-context (~> 1.2) - shoulda-matchers (>= 4.0, < 4.4) - show_me_the_cookies (~> 5.0) - sidekiq (~> 5.0) - simplecov - simplecov-rcov - single_test (~> 0.6) - spring (>= 1.0, < 3) - sprockets (~> 4.0) - sprockets-rails (~> 3.0) - sqlite3 - sshkey (~> 1.9) - statsd-instrument (< 3) - theforeman-rubocop (~> 0.0.6) - uglifier (>= 1.0.3) - validates_lengths_from_database (~> 0.5) - vcr (< 4.0.0) - webmock - webpack-rails (~> 0.9.8) - will_paginate (>= 3.1.7, < 4) - wirb (>= 1.0, < 3.0) - -BUNDLED WITH - 2.2.24 diff --git a/foreman_rh_cloud.gemspec b/foreman_rh_cloud.gemspec index 9ae67961..e8bd9582 100644 --- a/foreman_rh_cloud.gemspec +++ b/foreman_rh_cloud.gemspec @@ -25,7 +25,5 @@ Gem::Specification.new do |s| s.add_dependency 'katello' s.add_development_dependency 'rdoc' - s.add_development_dependency 'rubocop' - s.add_development_dependency 'rubocop-performance' - s.add_development_dependency 'rubocop-rails' + s.add_development_dependency 'theforeman-rubocop', '~> 0.0.6' end