Repository navigation
test: critical-journey tests (verify v2) - #37
Open
AhmadRAbuhussein wants to merge 1 commit into
Open
AhmadRAbuhussein wants to merge 1 commit into
AhmadRAbuhussein wants to merge 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Branch
test/critical-journeys→main(the GitHub default branch; there is no develop or staging branch).Journeys (
SW.Logger.IntegrationTests, Testcontainers)SimplyWorks.Logger.ElasticSearchtalks to an outside system, so the new project exercises it against a real throwaway Elasticsearch:elasticsearch:8.18.2, matching theElastic.Serilog.Sinks8.18 client, single node, security off.Logs_ReachTheDataStream_AtTheConfiguredLevelUseSwElasticSearchLoggerships its logs tologs-{app}-{env}. The stored entry has the rendered message, the level and theEnvironmentlabel. A Debug entry below the configured level isn't shipped.RetentionPolicy_IsSavedAndAppliedToTheDataStream{stream}-retentionis saved with the configureddelete.min_ageand post-rollover replicas, and is applied to the data stream (index.lifecycle.name).The project is in
SW.Logger.slnand referencesTestcontainers, soverifyruns it in its Docker-enabledintegrationjob. It isIsPackable=false, sonuget-publishdoesn't pack it.Agent instructions
New
AGENTS.mdwith the "Critical-journey tests (verify)" section. The README has a new Tests section and the project in Project Structure.Run locally
Results: 2/2 pass, and the existing
SW.Logger.UnitTestsstill pass 25/25. On Docker Desktop for macOS you may needTESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock.Not covered or worth a look
RetentionManagerbuilds its NEST client without the sink's certificate handling. It ignoresElasticsearchCertificatePathand has no validation callback, so on a cluster with a private CA the retention policy probably fails to apply ("applying log retention ... failed") while logging still works. Worth checking separately; it isn't changed here.verify.ymlyet: the repo isn't enrolled, sogh workflow run verify.ymlwas skipped.