Skip to content

Commit d770a16

Browse files
committed
chore: add CHANGELOG entry for v4.2.1 and fix test formatting
1 parent a90616e commit d770a16

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [4.2.1] - January 3, 2025
8+
9+
### Fixed
10+
11+
* Fixed decision notifications not working with secure environment SDK keys
12+
* Added documentation for Redis channel naming pattern in config.yaml
13+
714
## [4.2.0] - July 17, 2025
815

916
### New Features

pkg/handlers/notification_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ func (suite *NotificationTestSuite) TestSecureTokenParsing() {
587587

588588
func (suite *NotificationTestSuite) TestSecureTokenParsingIntegration() {
589589
// Test that secure token parsing works end-to-end with actual notification flow
590-
590+
591591
// Test with secure token format
592592
req := httptest.NewRequest("GET", "/notifications/event-stream", nil)
593593
req.Header.Set(middleware.OptlySDKHeader, "test_sdk_key:test_api_key")
@@ -597,19 +597,19 @@ func (suite *NotificationTestSuite) TestSecureTokenParsingIntegration() {
597597
mockReceiver := func(ctx context.Context) (<-chan syncer.Event, error) {
598598
sdkKey := ctx.Value(SDKKey).(string)
599599
suite.Equal("test_sdk_key", sdkKey, "SDK key should be extracted from secure token format")
600-
600+
601601
dataChan := make(chan syncer.Event, 1)
602602
// Send a test event
603603
dataChan <- syncer.Event{
604-
Type: notification.Decision,
604+
Type: notification.Decision,
605605
Message: map[string]string{"test": "event"},
606606
}
607607
close(dataChan)
608608
return dataChan, nil
609609
}
610610

611611
suite.mux.Get("/test-secure-notifications", NotificationEventStreamHandler(mockReceiver))
612-
612+
613613
// Create cancelable context for SSE
614614
ctx, cancel := context.WithTimeout(req.Context(), 1*time.Second)
615615
defer cancel()

0 commit comments

Comments
 (0)