From 94c8af31f32fd67a66678166cac44221bb173e9a Mon Sep 17 00:00:00 2001 From: Tom Zurkan Date: Mon, 5 Oct 2020 11:50:50 -0700 Subject: [PATCH] chore: update go sdk to 1.4.0 and add stub for GetDatafile in TestProjectConfig (#285) * update go sdk to 1.4.0 and add stub for GetDatafile in TestProjectConfig * run go mod tidy --- CHANGELOG.md | 3 +++ go.mod | 2 +- go.sum | 4 ++-- pkg/optimizely/optimizelytest/config.go | 4 ++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 287aa342..6a9447cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +## [2.2.0] - October 5, 2020 +- Update to Optimizely Go SDK 1.4.0 with version audience condition evaluation based on semantic versioning as well as support for number 'greater than or equal to' and 'less than or equal to'. + ## [2.1.0] - September 23, 2020 - For `server.allowedHosts` configuration property, add support for matching all subdomains of a host, or all hosts - Adding batching for agent (/v1/batch endpoint), including requests in parallel diff --git a/go.mod b/go.mod index d44e9959..ce3200ef 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/go-kit/kit v0.9.0 github.com/google/uuid v1.1.1 github.com/lestrrat-go/jwx v0.9.0 - github.com/optimizely/go-sdk v1.3.0 + github.com/optimizely/go-sdk v1.4.0 github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 github.com/rakyll/statik v0.1.7 github.com/rs/zerolog v1.15.0 diff --git a/go.sum b/go.sum index 599a52b3..c4b0f8a7 100644 --- a/go.sum +++ b/go.sum @@ -89,8 +89,8 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLD github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= -github.com/optimizely/go-sdk v1.3.0 h1:js9Cd5uTe8mWQuY66CsXperRueOjOE6UNN1mKGkEk1M= -github.com/optimizely/go-sdk v1.3.0/go.mod h1:ehZPiEzNzNJw98EFrZX1C9h9gVgVRCiWosQEVlgivCw= +github.com/optimizely/go-sdk v1.4.0 h1:9i6BUzqKGT5AMdSUdlrQZrmZRRhQQ9QjeielYiCCol8= +github.com/optimizely/go-sdk v1.4.0/go.mod h1:1uinGREH+AdijSRw3qitWkvIna1e/ZGN5eymNYPjw1A= github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 h1:lNCW6THrCKBiJBpz8kbVGjC7MgdCGKwuvBgc7LoD6sw= github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= diff --git a/pkg/optimizely/optimizelytest/config.go b/pkg/optimizely/optimizelytest/config.go index f790cbf5..0e1e13f2 100644 --- a/pkg/optimizely/optimizelytest/config.go +++ b/pkg/optimizely/optimizelytest/config.go @@ -45,6 +45,10 @@ type TestProjectConfig struct { nextID int } +// GetDatafile returns a string representation of the environment's datafile +func (c *TestProjectConfig) GetDatafile() string { + return "" +} // GetProjectID returns projectID func (c *TestProjectConfig) GetProjectID() string { return c.ProjectID