Skip to content

Pre-release stream fixes #14

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

Merged
merged 25 commits into from
Jul 12, 2024
Merged

Pre-release stream fixes #14

merged 25 commits into from
Jul 12, 2024

Conversation

s-vitaliy
Copy link
Contributor

@s-vitaliy s-vitaliy commented Jul 10, 2024

Part of #5

Scope

Implemented:

  • Fixed incorrect appVersion in Chart.yaml
  • Use the more descriptive plural blob-storage-streams instead of blob-storages
  • Make the sourceCredentialRef and targetCredentialRef optional
  • Use the application full name in the stream class name.
  • Implement keyed service injections for the source and the target Amazon SDK client injection.
  • Fixed incorrect path resolution in the stream.

Checklist

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

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

31.18%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106–111, 114–123, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

29.61%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106, 106, 106–114, 118–119, 119, 119, 119, 119–122, 125–134, 137, 137, 137, 137, 137, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

29.61%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106, 106, 106–114, 118–119, 119, 119, 119, 119–122, 125–134, 137, 137, 137, 137, 137, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

29.61%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–37, 39–42, 45–47, 49
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100–104, 106, 106, 106–114, 118–119, 119, 119, 119, 119–122, 125–134, 137, 137, 137, 137, 137, 35–39, 39, 39–50, 53–57, 57, 57–68, 71–75, 75, 75–86, 89–93, 93, 93–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

29.94%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100, 102, 102, 102–110, 114–115, 115, 115, 115, 115–118, 121–130, 133, 133, 133, 133, 133, 35–39, 39, 39–49, 52–56, 56, 56–66, 69–73, 73, 73–83, 86–90, 90, 90–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

29.94%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   ServiceCollectionExtensions.cs0%0%0%0%100, 102, 102, 102–110, 114–115, 115, 115, 115, 115–118, 121–130, 133, 133, 133, 133, 133, 35–39, 39, 39–49, 52–56, 56, 56–66, 69–73, 73, 73–83, 86–90, 90, 90–99
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.54%50%100%88.64%39–41, 43–45, 67

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

57.14%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.27%50%100%88.37%39–41, 43–45, 66

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

58.51%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs87.04%50%100%89.13%43–45, 47–49, 71

Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

58.95%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   SinkException.cs100%100%100%100%
src/Extensions
   StreamContextExtensions.cs92.86%50%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs87.27%50%100%89.36%43–45, 47–49, 72

@s-vitaliy s-vitaliy changed the title Bump the SND.SDK version Pre-release stream fixes Jul 12, 2024
Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

59.63%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   ProcessingException.cs100%100%100%100%
   SinkException.cs0%100%0%0%10–12
src/Extensions
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.84%62.50%100%88.89%100–101, 43–45, 48–50, 73, 99

@s-vitaliy s-vitaliy marked this pull request as ready for review July 12, 2024 12:23
@s-vitaliy s-vitaliy requested a review from a team as a code owner July 12, 2024 12:23
s-vitaliy and others added 2 commits July 12, 2024 14:41
Co-authored-by: George Zubrienko <zubrienkog@gmail.com>
Copy link

Coverage after merging test-with-new-snd-sdk-version into main will be

61.54%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Program.cs0%100%0%0%14, 18–39, 41–44, 47–49, 51
src/Exceptions
   ConfigurationException.cs0%100%0%0%10–11, 13
   ProcessingException.cs100%100%100%100%
   SinkException.cs0%100%0%0%10–12
src/Extensions
   StreamContextExtensions.cs100%100%100%100%
src/GraphBuilder
   BlobStorageGraphBuilder.cs86.21%60%100%88.73%101–103, 109, 111, 44–46, 49–51, 75

@s-vitaliy s-vitaliy merged commit 2a5decd into main Jul 12, 2024
2 checks passed
@s-vitaliy s-vitaliy deleted the test-with-new-snd-sdk-version branch July 12, 2024 12: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