hashgraph / hashgraph/full-stack-testing

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

Aperta
#568 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Bug Pending Triage
Lingua principale
Java
Stelle
9
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.