Skip to content

Commit

Permalink
match repository URL partially because GHA clones repos with HTTPS url
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Nov 27, 2024
1 parent 3cf16b1 commit 73146a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/datadog/ci/git/local_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def with_custom_git_environment
describe ".git_repository_url" do
subject { described_class.git_repository_url }

it { is_expected.to eq("git@github.com:DataDog/datadog-ci-rb.git") }
it { is_expected.to include("DataDog/datadog-ci-rb") }

it_behaves_like "emits telemetry metric", :inc, "git.command", 1
it_behaves_like "emits telemetry metric", :distribution, "git.command_ms"
Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/ci/test_visibility/component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
expect(Datadog::CI::Git::LocalRepository).to receive(:git_commits).and_return(["dcc6f4b112b1f4f21a22deae586f67dc637ba77e"])
expect(Datadog::CI::Git::SearchCommits).to receive(:new).and_return(search_commits)
expect(search_commits).to receive(:call) do |repo_url, commits|
expect(repo_url).to eq("git@github.com:DataDog/datadog-ci-rb.git")
expect(repo_url).to include("DataDog/datadog-ci-rb")

commits
end
Expand Down

0 comments on commit 73146a0

Please sign in to comment.