Skip to content

Commit

Permalink
test(e2e): add back check for uniqueness_error in network test
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Oct 9, 2024
1 parent 1f266ef commit d1c492a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/e2e/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ func TestNetwork(t *testing.T) {

_, err = createNetwork(t, networkName, "--ip-range", "10.0.1.0/24")
require.Error(t, err)
// 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())
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 d1c492a

Please sign in to comment.