Skip to content

Commit

Permalink
fix network uniqueness_error
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Sep 23, 2024
1 parent 08a9ce5 commit b5be9ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ func TestNetwork(t *testing.T) {

_, err = createNetwork(t, networkName, "--ip-range", "10.0.1.0/24")
require.Error(t, err)
assert.Regexp(t, `^name is already used \(uniqueness_error, [0-9a-f]+\)$`, err.Error())
// The API currently (wrongly) returns service_error instead of uniqueness_error.
// Once this is fixed we have to change it here.
assert.Regexp(t, `^name is already used \(service_error, [0-9a-f]+\)$`, err.Error())

t.Run("enable-protection", func(t *testing.T) {
t.Run("non-existing-protection", func(t *testing.T) {
Expand Down

0 comments on commit b5be9ea

Please sign in to comment.