-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
3 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright 2024 Canonical. | ||
// Copyright 2025 Canonical. | ||
|
||
package jimm_test | ||
|
||
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -1962,7 +1932,7 @@ func TestListApplicationOffers(t *testing.T) { | |
Access: "admin", | ||
}, { | ||
UserName: "[email protected]", | ||
Access: "consume", | ||
Access: "admin", | ||
}, { | ||
UserName: "[email protected]", | ||
Access: "read", | ||
|
@@ -1994,7 +1964,7 @@ func TestListApplicationOffers(t *testing.T) { | |
Access: "admin", | ||
}, { | ||
UserName: "[email protected]", | ||
Access: "consume", | ||
Access: "admin", | ||
}, { | ||
UserName: "[email protected]", | ||
Access: "read", | ||
|