Skip to content

Commit

Permalink
chore: fixes docker install step and failing build info test (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshusinghs authored Jan 7, 2025
1 parent 5159908 commit f2ecd03
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,23 @@ jobs:

- name: Setup Docker (for Test Containers)
run: |
sudo apt update -y
sudo apt install -y docker docker-compose
echo "Adding Docker official GPG key"
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "Adding the repository to APT sources"
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
echo "Installing docker"
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- name: Run Test Suite
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal abstract class NewConnectionActivatedProbeTest(
event.properties[TelemetryProperty.IS_LOCALHOST] == isLocalhost &&
event.properties[TelemetryProperty.IS_ENTERPRISE] == isEnterprise &&
event.properties[TelemetryProperty.IS_GENUINE] == isGenuine &&
event.properties[TelemetryProperty.VERSION] == version &&
event.properties[TelemetryProperty.VERSION].toString().startsWith(version) &&
!event.properties.containsKey(TelemetryProperty.ATLAS_HOST)
},
)
Expand All @@ -83,7 +83,9 @@ internal class NewConnectionActivatedProbeTestForLocalEnvironment :
isLocalhost = true,
isEnterprise = false,
isGenuine = true,
version = "7.0.15",
// not having an exact version here because then we'd have to keep it updated with every
// mongodb release
version = "7.0.",
)

@RequiresMongoDbCluster(
Expand All @@ -97,5 +99,7 @@ internal class NewConnectionActivatedProbeTestForAtlasCliEnvironment :
isLocalhost = true,
isEnterprise = true,
isGenuine = true,
version = "7.0.15",
// not having an exact version here because then we'd have to keep it updated with every
// mongodb release
version = "7.0.",
)

0 comments on commit f2ecd03

Please sign in to comment.