Skip to content

Commit

Permalink
Fix configuration test and remove unused expiration field
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmil-daily committed Apr 26, 2024
1 parent 0f2eca0 commit 9bca40c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ Prebid Cache makes use of a Redis Go client compatible with Redis Sentinel. Full
| master_name | string | Name of the Sentinel master (as declared in the `sentinel monitor` line of your Sentinel configurations) |
| password | string | Redis password |
| db | integer | Database to be selected after connecting to the server |
| expiration | integer | Availability in the Redis system in Minutes |
| tls | field | Subfields: <br> `enabled`: whether or not pass the InsecureSkipVerify value to the Redis client's TLS config <br> `insecure_skip_verify`: In Redis, InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name. If InsecureSkipVerify is true, crypto/t |


Expand Down
1 change: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ backend:
# master_name: "mymaster"
# password: ""
# db: 1
# expiration: 10 # in Minutes
# tls:
# enabled: false
# insecure_skip_verify: false
Expand Down
10 changes: 10 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,16 @@ func getExpectedFullConfigForTestFile() Configuration {
InsecureSkipVerify: false,
},
},
RedisSentinel: RedisSentinel{
SentinelAddrs: []string{"127.0.0.1:26379", "127.0.0.1:26380", "127.0.0.1:26381"},
MasterName: "mymaster",
Password: "",
Db: 1,
TLS: RedisTLS{
Enabled: false,
InsecureSkipVerify: false,
},
},
Ignite: Ignite{
Scheme: "http",
Host: "127.0.0.1",
Expand Down
1 change: 0 additions & 1 deletion config/configtest/sample_full_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ backend:
master_name: "mymaster"
password: ""
db: 1
expiration: 10 # in Minutes
tls:
enabled: false
insecure_skip_verify: false
Expand Down

0 comments on commit 9bca40c

Please sign in to comment.