-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
846c426
commit 3eab4d7
Showing
5 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,18 +121,18 @@ func TestLauncher_WiresUpExternalCapabilities(t *testing.T) { | |
AcceptsWorkflows: true, | ||
Members: nodes, | ||
}, | ||
CapabilityConfigurations: map[registrysyncer.CapabilityID]capabilities.CapabilityConfiguration{ | ||
registrysyncer.CapabilityID(fullTriggerCapID): {}, | ||
registrysyncer.CapabilityID(fullTargetID): {}, | ||
CapabilityConfigurations: map[string]capabilities.CapabilityConfiguration{ | ||
fullTriggerCapID: {}, | ||
fullTargetID: {}, | ||
}, | ||
}, | ||
}, | ||
IDsToCapabilities: map[registrysyncer.CapabilityID]registrysyncer.Capability{ | ||
registrysyncer.CapabilityID(fullTriggerCapID): { | ||
IDsToCapabilities: map[string]registrysyncer.Capability{ | ||
fullTriggerCapID: { | ||
ID: "[email protected]", | ||
CapabilityType: capabilities.CapabilityTypeTrigger, | ||
}, | ||
registrysyncer.CapabilityID(fullTargetID): { | ||
fullTargetID: { | ||
ID: "[email protected]", | ||
CapabilityType: capabilities.CapabilityTypeTarget, | ||
}, | ||
|
@@ -203,9 +203,9 @@ func TestSyncer_IgnoresCapabilitiesForPrivateDON(t *testing.T) { | |
} | ||
|
||
dID := uint32(1) | ||
triggerID := registrysyncer.CapabilityID("[email protected]") | ||
triggerID := "[email protected]" | ||
hashedTriggerID := randomWord() | ||
targetID := registrysyncer.CapabilityID("[email protected]") | ||
targetID := "[email protected]" | ||
hashedTargetID := randomWord() | ||
|
||
// The below state describes a Workflow DON (AcceptsWorkflows = true), | ||
|
@@ -223,13 +223,13 @@ func TestSyncer_IgnoresCapabilitiesForPrivateDON(t *testing.T) { | |
AcceptsWorkflows: true, | ||
Members: nodes, | ||
}, | ||
CapabilityConfigurations: map[registrysyncer.CapabilityID]capabilities.CapabilityConfiguration{ | ||
CapabilityConfigurations: map[string]capabilities.CapabilityConfiguration{ | ||
triggerID: {}, | ||
targetID: {}, | ||
}, | ||
}, | ||
}, | ||
IDsToCapabilities: map[registrysyncer.CapabilityID]registrysyncer.Capability{ | ||
IDsToCapabilities: map[string]registrysyncer.Capability{ | ||
triggerID: { | ||
ID: triggerID, | ||
CapabilityType: capabilities.CapabilityTypeTrigger, | ||
|
@@ -314,8 +314,8 @@ func TestLauncher_WiresUpClientsForPublicWorkflowDON(t *testing.T) { | |
randomWord(), | ||
} | ||
|
||
fullTriggerCapID := registrysyncer.CapabilityID("[email protected]") | ||
fullTargetID := registrysyncer.CapabilityID("[email protected]") | ||
fullTriggerCapID := "[email protected]" | ||
fullTargetID := "[email protected]" | ||
triggerCapID := randomWord() | ||
targetCapID := randomWord() | ||
dID := uint32(1) | ||
|
@@ -347,7 +347,7 @@ func TestLauncher_WiresUpClientsForPublicWorkflowDON(t *testing.T) { | |
AcceptsWorkflows: false, | ||
Members: capabilityDonNodes, | ||
}, | ||
CapabilityConfigurations: map[registrysyncer.CapabilityID]capabilities.CapabilityConfiguration{ | ||
CapabilityConfigurations: map[string]capabilities.CapabilityConfiguration{ | ||
fullTriggerCapID: { | ||
RemoteTriggerConfig: rtc, | ||
}, | ||
|
@@ -357,7 +357,7 @@ func TestLauncher_WiresUpClientsForPublicWorkflowDON(t *testing.T) { | |
}, | ||
}, | ||
}, | ||
IDsToCapabilities: map[registrysyncer.CapabilityID]registrysyncer.Capability{ | ||
IDsToCapabilities: map[string]registrysyncer.Capability{ | ||
fullTriggerCapID: { | ||
ID: fullTriggerCapID, | ||
CapabilityType: capabilities.CapabilityTypeTrigger, | ||
|
@@ -465,8 +465,8 @@ func TestLauncher_WiresUpClientsForPublicWorkflowDONButIgnoresPrivateCapabilitie | |
randomWord(), | ||
} | ||
|
||
fullTriggerCapID := registrysyncer.CapabilityID("[email protected]") | ||
fullTargetID := registrysyncer.CapabilityID("[email protected]") | ||
fullTriggerCapID := "[email protected]" | ||
fullTargetID := "[email protected]" | ||
triggerCapID := randomWord() | ||
targetCapID := randomWord() | ||
dID := uint32(1) | ||
|
@@ -496,7 +496,7 @@ func TestLauncher_WiresUpClientsForPublicWorkflowDONButIgnoresPrivateCapabilitie | |
AcceptsWorkflows: false, | ||
Members: capabilityDonNodes, | ||
}, | ||
CapabilityConfigurations: map[registrysyncer.CapabilityID]capabilities.CapabilityConfiguration{ | ||
CapabilityConfigurations: map[string]capabilities.CapabilityConfiguration{ | ||
fullTriggerCapID: {}, | ||
}, | ||
}, | ||
|
@@ -509,12 +509,12 @@ func TestLauncher_WiresUpClientsForPublicWorkflowDONButIgnoresPrivateCapabilitie | |
AcceptsWorkflows: false, | ||
Members: capabilityDonNodes, | ||
}, | ||
CapabilityConfigurations: map[registrysyncer.CapabilityID]capabilities.CapabilityConfiguration{ | ||
CapabilityConfigurations: map[string]capabilities.CapabilityConfiguration{ | ||
fullTargetID: {}, | ||
}, | ||
}, | ||
}, | ||
IDsToCapabilities: map[registrysyncer.CapabilityID]registrysyncer.Capability{ | ||
IDsToCapabilities: map[string]registrysyncer.Capability{ | ||
fullTriggerCapID: { | ||
ID: fullTriggerCapID, | ||
CapabilityType: capabilities.CapabilityTypeTrigger, | ||
|
@@ -653,14 +653,14 @@ func TestLauncher_SucceedsEvenIfDispatcherAlreadyHasReceiver(t *testing.T) { | |
AcceptsWorkflows: false, | ||
Members: capabilityDonNodes, | ||
}, | ||
CapabilityConfigurations: map[registrysyncer.CapabilityID]capabilities.CapabilityConfiguration{ | ||
registrysyncer.CapabilityID(fullTriggerCapID): {}, | ||
CapabilityConfigurations: map[string]capabilities.CapabilityConfiguration{ | ||
fullTriggerCapID: {}, | ||
}, | ||
}, | ||
}, | ||
IDsToCapabilities: map[registrysyncer.CapabilityID]registrysyncer.Capability{ | ||
registrysyncer.CapabilityID(fullTriggerCapID): { | ||
ID: registrysyncer.CapabilityID(fullTriggerCapID), | ||
IDsToCapabilities: map[string]registrysyncer.Capability{ | ||
fullTriggerCapID: { | ||
ID: fullTriggerCapID, | ||
CapabilityType: capabilities.CapabilityTypeTrigger, | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters