Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove streaming job operator service (part 2) #82

Merged
merged 3 commits into from
May 22, 2024

Conversation

s-vitaliy
Copy link
Contributor

@s-vitaliy s-vitaliy commented May 22, 2024

Part of #47

Scope

Implemented:

  • The StreamingJobOperatorService class removed completely.
  • Unit tests updated accordingly.

Checklist

  • GitHub issue exists for this change.
  • Unit tests added and they pass.
  • Line Coverage is at least 80%.
  • Review requested on latest commit.

@s-vitaliy s-vitaliy changed the title Remove StreamingJobOperatorService Remove streaming job operator service (part 2) May 22, 2024
Copy link

Coverage after merging remove-streaming-job-operator-service-2 into main will be

78.69%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/Configurations
   MetricsPublisherActorConfiguration.cs100%100%100%100%
   MetricsReporterConfiguration.cs100%100%100%100%
src/Extensions
   JsonElementExtensions.cs0%100%0%0%22, 30
   KubernetesObjectExtensions.cs0%100%0%0%15–18
   V1JobExtensions.cs82.24%63.64%94.12%89.01%105, 105, 126, 126, 131, 136, 136, 141, 146, 146, 151, 53, 53, 58, 68, 68, 75, 83–84, 84, 84, 84, 84–87
src/Models
   StreamingClassOperatorResponse.cs100%100%100%100%
src/Models/StreamClass
   V1Beta1StreamClassSpec.cs85.71%100%85.71%85.71%12
src/Models/StreamDefinitions/Base
   IStreamDefinition.cs90%83.33%100%100%29
src/Models/StreamStatuses/StreamStatus/V1Beta1
   V1Beta1StreamStatus.cs100%100%100%100%
src/Services/Base
   ICommandHandler.cs100%100%100%100%
src/Services/CommandHandlers
   AnnotationCommandHandler.cs68.75%66.67%75%68.52%37–40, 52–55, 62–65, 72–78
   StreamingJobCommandHandler.cs82.98%85.71%100%81.58%106–108, 41, 51, 60–63, 74–80
   UpdateStatusCommandHandler.cs90.91%75%100%91.18%100, 43–46, 82, 99
src/Services/Commands
   StreamClassCommands.cs100%100%100%100%
   StreamDefinitionCommands.cs100%100%100%100%
   StreamingJobCommands.cs100%100%100%100%
src/Services/Maintenance
   HostedStreamingJobMaintenanceService.cs0%0%0%0%16–24, 27–29, 29, 29–36, 39–42
   StreamingJobMaintenanceService.cs90.60%83.33%100%92.59%113–117, 122, 126, 131, 72, 72, 76
src/Services/Metrics
   DeclaredMetrics.cs26.47%0%50%35%25–30, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32–38
   MetricsReporter.cs85.29%100%75%85.71%50–53
src/Services/Metrics/Actors
   MetricsPublisherActor.cs100%100%100%100%
src/Services/Models
   CustomResourceApiRequest.cs100%100%100%100%
   ResourceEvent.cs100%100%100%100%
src/Services/Operator
   StreamClassOperatorService.cs80.56%50%83.33%84.48%100, 100, 100–105, 77, 77, 81, 98–99
   StreamOperatorService.cs81.25%68.97%90.91%85.61%100–102, 145–146, 146, 146, 148–149, 158–159, 169–170, 185, 187, 191, 191, 197, 199, 67–68, 68, 68–69, 82–83, 83, 83, 83, 83, 83, 83–86, 88, 98–99
src/Services/Repositories/CustomResources
   StreamClassRepository.cs100%100%100%100%
   StreamDefinitionRepository.cs0%100%0%0%20–23, 28–35, 39–44
   StreamingJobTemplateRepository.cs0%0%0%0%20–27, 31–33, 33, 33, 33, 33, 33, 33, 33, 33–36, 39–47
src/Services/Repositories/StreamingJob
   StreamingJobRepository.cs58.82%100%66.67%57.14%33–38

@s-vitaliy s-vitaliy marked this pull request as ready for review May 22, 2024 13:43
@s-vitaliy s-vitaliy requested a review from a team as a code owner May 22, 2024 13:43
@s-vitaliy s-vitaliy merged commit 3ae3e26 into main May 22, 2024
2 checks passed
@s-vitaliy s-vitaliy deleted the remove-streaming-job-operator-service-2 branch May 22, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants