diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go index 6b1d58ed419ca6f57fe74bdca7bfb8ec3cd054c5..1a66fe01f911b8567d8385b521ae0a63c15bbee5 100644 --- a/integration-tests/application_tests/application_test.go +++ b/integration-tests/application_tests/application_test.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "os" - "reflect" "testing" "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/conflict" @@ -105,9 +104,6 @@ func TestMain(m *testing.M) { func TestNetworkElementAddAndSubscribeEvent(t *testing.T) { // setup required parameters - const hostnamePath = "/system/config/hostname" - const domainNamePath = "/system/config/domain-name" - opt := &tpb.TransportOption{ Address: targetAAdress, Username: targetUserAndPW, @@ -150,11 +146,9 @@ func TestNetworkElementAddAndSubscribeEvent(t *testing.T) { subscribeEvent := <-application.eventChannel assert.Equal(t, event.Subscribe.String(), subscribeEvent.Type) - assert.Equal(t, hostnamePath, reflect.ValueOf(subscribeEvent.PathsAndValuesMap).MapKeys()[0].String(), "Should be hostname path.") subscribeEvent = <-application.eventChannel assert.Equal(t, event.Subscribe.String(), subscribeEvent.Type) - assert.Equal(t, domainNamePath, reflect.ValueOf(subscribeEvent.PathsAndValuesMap).MapKeys()[0].String(), "Should be domain-name path.") } func TestUserAddAndUpdateEvent(t *testing.T) {