hashgraph / hashgraph/full-stack-testing

FST[Infra] In WorkloadReplicas getComponentByType() should allow one component of a given type

オープン
#568 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bug Pending Triage
主要言語
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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。