Skip to content

Commit

Permalink
chore: fix list offers test
Browse files Browse the repository at this point in the history
Listing offers test was failing because model owner was only expected to have consume access on offers but should have admin access.
  • Loading branch information
kian99 committed Jan 6, 2025
1 parent c907fad commit 18f62a8
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions internal/jimm/applicationoffer_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024 Canonical.
// Copyright 2025 Canonical.

package jimm_test

Expand Down Expand Up @@ -1790,16 +1790,6 @@ func TestListApplicationOffers(t *testing.T) {
Interface: "unknown",
Limit: 1,
}},
Users: []jujuparams.OfferUserDetails{{
UserName: "[email protected]",
Access: "admin",
}, {
UserName: "[email protected]",
Access: "read",
}, {
UserName: "[email protected]",
Access: "consume",
}},
},
ApplicationName: "application-1",
CharmURL: "charm-1",
Expand All @@ -1822,16 +1812,6 @@ func TestListApplicationOffers(t *testing.T) {
Interface: "unknown",
Limit: 1,
}},
Users: []jujuparams.OfferUserDetails{{
UserName: "[email protected]",
Access: "admin",
}, {
UserName: "[email protected]",
Access: "read",
}, {
UserName: "[email protected]",
Access: "consume",
}},
},
ApplicationName: "application-2",
CharmURL: "charm-2",
Expand All @@ -1856,16 +1836,6 @@ func TestListApplicationOffers(t *testing.T) {
Interface: "unknown",
Limit: 1,
}},
Users: []jujuparams.OfferUserDetails{{
UserName: "[email protected]",
Access: "admin",
}, {
UserName: "[email protected]",
Access: "read",
}, {
UserName: "[email protected]",
Access: "consume",
}},
},
ApplicationName: "application-3",
CharmURL: "charm-3",
Expand Down Expand Up @@ -1962,7 +1932,7 @@ func TestListApplicationOffers(t *testing.T) {
Access: "admin",
}, {
UserName: "[email protected]",
Access: "consume",
Access: "admin",
}, {
UserName: "[email protected]",
Access: "read",
Expand Down Expand Up @@ -1994,7 +1964,7 @@ func TestListApplicationOffers(t *testing.T) {
Access: "admin",
}, {
UserName: "[email protected]",
Access: "consume",
Access: "admin",
}, {
UserName: "[email protected]",
Access: "read",
Expand Down

0 comments on commit 18f62a8

Please sign in to comment.