hashgraph / hashgraph/full-stack-testing
FST[Infra] In WorkloadReplicas getComponentByType() should allow one component of a given type
- 主要语言
- Java
- 星标
- 9
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Bill of Materials or CLI Version
_No response_
### Execution Environment
JUnit Extensions
### Slf4j Logging Implementation
None
### To Reproduce
```markdown
na
```
### 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
```shell
na
```
### Additional Context
_No response_
贡献指南
调研方向
从 com.hedera.fullstack.infrastructure.api.model.WorkloadReplicas 及其 getComponentByType() 方法开始,然后检查组件是如何添加到 workload replica 中的。确认重复组件类型的表示方式,并定义单个组件的预期行为;当 coverage 验证不允许存在多个相同类型的组件时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- testing
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100