From d1c492ac92de112bd35a540439d3dbcf585dc467 Mon Sep 17 00:00:00 2001 From: phm07 <22707808+phm07@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:02:47 +0200 Subject: [PATCH] test(e2e): add back check for uniqueness_error in network test --- test/e2e/network_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/e2e/network_test.go b/test/e2e/network_test.go index 9b2ff7a9..f102faa6 100644 --- a/test/e2e/network_test.go +++ b/test/e2e/network_test.go @@ -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) {