FST[Infra] In WorkloadReplicas getComponentByType() should allow one component of a given type #568
Labels
Bug
A error that causes the feature to behave differently than what was expected based on design docs
Pending Triage
New issue that needs to be triaged by the team
Bill of Materials or CLI Version
No response
Execution Environment
JUnit Extensions
Slf4j Logging Implementation
None
To Reproduce
Describe the bug
In com.hedera.fullstack.infrastructure.api.model.WorkloadReplicas
" return (C) components.stream()
.filter(componentType::isInstance)
.findFirst()
.get();
"
Comment s by @[nathanklick]
Is this behavior correct to only return the first component of the given type even if there are multiple matches? Should we permit multiple components of the same type within a single workload replica?
Describe the expected behavior
multiple components of the same type workload replica should not be permitted
Whole JUnit/CLI Logs
Additional Context
No response
The text was updated successfully, but these errors were encountered: