hashgraph / hashgraph/full-stack-testing

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

Ouverte
#568 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Bug Pending Triage
Langage dominant
Java
Étoiles
9
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.