From 3545d28e90ddfc4f20b6293bc175a13155e8e4b5 Mon Sep 17 00:00:00 2001
From: Fabian Seidl <fabian.seidl@h-da.de>
Date: Wed, 10 Jan 2024 12:15:24 +0100
Subject: [PATCH] remove test for path in subscribe events because order is not
 deterministic

---
 integration-tests/application_tests/application_test.go | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/integration-tests/application_tests/application_test.go b/integration-tests/application_tests/application_test.go
index 6b1d58ed4..1a66fe01f 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) {
-- 
GitLab