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 b5be9ea commit 9396f76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ func TestNetwork(t *testing.T) {

_, err = createNetwork(t, networkName, "--ip-range", "10.0.1.0/24")
require.Error(t, err)
// 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())
// TODO: API currently returns service_error instead of uniqueness_error. Add this back in once this is fixed.
// assert.Regexp(t, `^name is already used \(uniqueness_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 9396f76

Please sign in to comment.