Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lower risk level of dependency snaps in tests #76

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/thread_tests/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

tests "chip-tool-snap-tests"

"github.com/canonical/matter-snap-testing/env"
"github.com/canonical/matter-snap-testing/utils"
)

Expand All @@ -20,7 +19,7 @@ func setup(t *testing.T) {
utils.SnapRemove(t, otbrSnap)

// Install OTBR
utils.SnapInstallFromStore(t, otbrSnap, env.SnapChannel())
utils.SnapInstallFromStore(t, otbrSnap, "latest/beta")
t.Cleanup(func() {
utils.SnapRemove(t, otbrSnap)
})
Expand Down
4 changes: 2 additions & 2 deletions tests/thread_tests/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func remote_deployOTBRAgent(t *testing.T) {

commands := []string{
"sudo snap remove --purge openthread-border-router",
"sudo snap install openthread-border-router --edge",
"sudo snap install openthread-border-router --channel=latest/beta",
fmt.Sprintf("sudo snap set openthread-border-router %s='%s'", infraInterfaceKey, remoteInfraInterface),
fmt.Sprintf("sudo snap set openthread-border-router %s='%s'", radioUrlKey, remoteRadioUrl),
// "sudo snap connect openthread-border-router:avahi-control",
Expand Down Expand Up @@ -121,7 +121,7 @@ func remote_deployAllClustersApp(t *testing.T) {
commands := []string{
// "sudo apt install -y bluez",
"sudo snap remove --purge matter-all-clusters-app",
"sudo snap install matter-all-clusters-app --edge",
"sudo snap install matter-all-clusters-app --channel=latest/beta",
"sudo snap set matter-all-clusters-app args='--thread'",
"sudo snap connect matter-all-clusters-app:avahi-control",
// "sudo snap connect matter-all-clusters-app:bluez",
Expand Down
2 changes: 1 addition & 1 deletion tests/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestUpgrade(t *testing.T) {
utils.SnapConnect(t, chipToolSnap+":process-control", "")

// Install all clusters app
utils.SnapInstallFromStore(t, allClustersSnap, env.SnapChannel())
utils.SnapInstallFromStore(t, allClustersSnap, "latest/beta")

// Setup all clusters app
utils.SnapSet(t, allClustersSnap, "args", "--wifi")
Expand Down
2 changes: 1 addition & 1 deletion tests/wifi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestAllClustersAppWiFi(t *testing.T) {
})

// Install all clusters app
utils.SnapInstallFromStore(t, allClustersSnap, "latest/edge")
utils.SnapInstallFromStore(t, allClustersSnap, "latest/beta")

// Setup all clusters app
utils.SnapSet(t, allClustersSnap, "args", "--wifi")
Expand Down
Loading