Skip to content

Commit

Permalink
SDK-4929 update TestFlowVaultConnectionManager_List
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalshit27 committed Sep 17, 2024
1 parent 39d9047 commit e741d5a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions management/flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func TestFlowVaultConnectionManager_List(t *testing.T) {
flowVaultConnectionList, err := api.Flow.Vault.GetConnectionList(context.Background())
assert.NoError(t, err)
assert.Greater(t, len(flowVaultConnectionList.Connections), 0)
assert.Contains(t, getFlowVaultConnectionIDs(flowVaultConnectionList.Connections), flowVaultConnection.GetID())
assert.Contains(t, flowVaultConnectionList.Connections, flowVaultConnection)
}

func TestFlowVaultConnectionManager_MarshalJSON(t *testing.T) {
Expand Down Expand Up @@ -228,14 +228,6 @@ func getFlowIDs(flows []*Flow) []string {
return ids
}

func getFlowVaultConnectionIDs(connections []*FlowVaultConnection) []string {
ids := make([]string, len(connections))
for i, connection := range connections {
ids[i] = connection.GetID()
}
return ids
}

func givenAFlowVaultConnection(t *testing.T) *FlowVaultConnection {
flowVaultConnection := &FlowVaultConnection{
AppID: auth0.String("HTTP"),
Expand Down

0 comments on commit e741d5a

Please sign in to comment.