Files
tasks/common/dynamicconfig/config/testConfig.yaml
Rodrigo ZhouandGitHub e629a2fd90 Add destination to dynamic config filter (#5835)
## What changed?
<!-- Describe what has changed in this PR -->
Add destination filter to dynamic config. It also filters by namespace
ID instead of namespace name because of how the existing outbound task
key is built.

## Why?
<!-- Tell your future self why have you made these changes -->
Be able to create specific dynamic configs by destination.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Added unit test.

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
2024-05-03 16:44:55 -05:00

103 lines
2.2 KiB
YAML

frontend.namespaceCount:
- value:
NamespaceId: 1
constraints: {}
TestCaseInsensitivePropertykEy:
- value: true
constraints: {}
testGetBoolPropertyKey:
- value: false
constraints: {}
- value: true
constraints:
namespace: global-samples-namespace
- value: true
constraints:
namespace: samples-namespace
testGetDurationPropertyKey:
- value: 1m
constraints: {}
- value: wrong duration string
constraints:
namespace: samples-namespace
taskQueueName: longIdleTimeTaskqueue
- value: 2
constraints:
namespace: samples-namespace
- value: true
constraints:
namespace: broken-namespace
testGetFloat64PropertyKey:
- value: 12
constraints: {}
- value: wrong type
constraints:
namespace: samples-namespace
testGetIntPropertyKey:
- value: 1000
constraints: {}
- value: 1000.1
constraints:
namespace: global-samples-namespace
- value: 1001
constraints:
namespace: global-samples-namespace
taskQueueName: test-tq
taskType: Workflow
- value: 1002
constraints:
namespace: global-samples-namespace
taskQueueName: test-tq
taskType: Activity
- value: 1003
constraints:
namespace: global-samples-namespace
taskQueueName: test-tq
- value: 1004
constraints:
namespace: another-namespace
- value: 1005
constraints:
taskQueueName: other-test-tq
testGetMapPropertyKey:
- value:
key1: "1"
key2: 1
key3:
- false
- key4: true
key5: 2.1
constraints: {}
- value: "1"
constraints:
namespace: random-namespace
testGetStringPropertyKey:
- value: some random string
constraints: {}
- value: constrained-string
constraints:
namespace: random-namespace
testGetDurationPropertyFilteredByTaskTypeKey:
- value: 10s
constraints:
historytasktype: ActivityRetryTimer
- value: 10s
constraints:
historytasktype: 1
testGetIntPropertyFilteredByDestinationKey:
- value: 10
constraints: {}
- value: 20
constraints:
namespaceID: test-namespace-id
destination: test-destination-1
- value: 30
constraints:
namespaceID: test-namespace-id
- value: 40
constraints:
destination: test-destination-1
- value: 50
constraints:
destination: test-destination-2