Sha256: f40868eb8b6544dbfb9187e8fd1b157f5fd0e7febb9e92de346367b749d90592

Contents?: true

Size: 1.81 KB

Versions: 12

Compression:

Stored size: 1.81 KB

Contents

describe HybridPlatformsConductor::TestsRunner do

  context 'when checking test plugins' do

    context 'with github_ci' do

      it 'iterates over defined Github repos' do
        with_repository do
          platforms = <<~EO_CONFIG
            github_repos(
              url: 'https://my_gh.my_domain.com',
              user: 'GH-User1',
              repos: [
                'repo1',
                'repo2'
              ]
            )
            github_repos(
              user: 'GH-User2',
              repos: [
                'repo3',
                'repo4'
              ]
            )
          EO_CONFIG
          with_platforms platforms do
            repos = []
            test_config.for_each_github_repo do |github, repo_info|
              repos << {
                github_url: github.api_endpoint,
                repo_info: repo_info
              }
            end
            expect(repos).to eq [
              {
                github_url: 'https://my_gh.my_domain.com/',
                repo_info: {
                  name: 'repo1',
                  slug: 'GH-User1/repo1'
                }
              },
              {
                github_url: 'https://my_gh.my_domain.com/',
                repo_info: {
                  name: 'repo2',
                  slug: 'GH-User1/repo2'
                }
              },
              {
                github_url: 'https://api.github.com/',
                repo_info: {
                  name: 'repo3',
                  slug: 'GH-User2/repo3'
                }
              },
              {
                github_url: 'https://api.github.com/',
                repo_info: {
                  name: 'repo4',
                  slug: 'GH-User2/repo4'
                }
              }
            ]
          end
        end
      end

    end

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-33.3.0 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.2.4 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.2.3 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.2.2 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.2.1 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.2.0 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.1.1 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.1.0 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.0.4 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.0.3 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.0.2 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb
hybrid_platforms_conductor-33.0.1 spec/hybrid_platforms_conductor_test/api/tests_runner/test_plugins/github_ci_spec.rb