@@ -2155,25 +2155,54 @@ func TestGetSSLConfigurationChanges(t *testing.T) {
2155
2155
{
2156
2156
name : "Protocol Changed" ,
2157
2157
desired : client.GenericSslConfigurationDetails {
2158
- Protocols : []string {"TLSv1.2" },
2158
+ CipherSuiteName : common .String ("value" ),
2159
+ Protocols : []string {"TLSv1.2" },
2160
+ },
2161
+ actual : client.GenericSslConfigurationDetails {
2162
+ CipherSuiteName : common .String ("value" ),
2159
2163
},
2160
- actual : client.GenericSslConfigurationDetails {},
2161
2164
expected : []string {
2162
2165
fmt .Sprintf (changeFmtStr , "Listener:SSLConfiguration:Protocols" , "" , "TLSv1.2" ),
2163
2166
},
2164
2167
},
2165
2168
{
2166
2169
name : "TLS Protocol Changed" ,
2167
2170
desired : client.GenericSslConfigurationDetails {
2168
- Protocols : []string {"TLSv1.1" , "TLSv1.2" },
2171
+ CipherSuiteName : common .String ("value" ),
2172
+ Protocols : []string {"TLSv1.1" , "TLSv1.2" },
2169
2173
},
2170
2174
actual : client.GenericSslConfigurationDetails {
2171
- Protocols : []string {"TLSv1.1" , "TLSv1.2" , "TLSv1.3" },
2175
+ CipherSuiteName : common .String ("value" ),
2176
+ Protocols : []string {"TLSv1.1" , "TLSv1.2" , "TLSv1.3" },
2172
2177
},
2173
2178
expected : []string {
2174
2179
fmt .Sprintf (changeFmtStr , "Listener:SSLConfiguration:Protocols" , "" , "TLSv1.2" ),
2175
2180
},
2176
2181
},
2182
+ {
2183
+ name : "Empty ciphersuite test" ,
2184
+ desired : client.GenericSslConfigurationDetails {
2185
+ CipherSuiteName : common .String ("" ),
2186
+ Protocols : []string {"TLSv1.1" , "TLSv1.2" },
2187
+ },
2188
+ actual : client.GenericSslConfigurationDetails {
2189
+ CipherSuiteName : common .String ("value" ),
2190
+ Protocols : []string {"TLSv1.1" , "TLSv1.2" , "TLSv1.3" },
2191
+ },
2192
+ expected : []string {},
2193
+ },
2194
+ {
2195
+ name : "Default scenario, nil value" ,
2196
+ desired : client.GenericSslConfigurationDetails {
2197
+ CipherSuiteName : nil ,
2198
+ Protocols : []string {"TLSv1.1" , "TLSv1.2" },
2199
+ },
2200
+ actual : client.GenericSslConfigurationDetails {
2201
+ CipherSuiteName : common .String ("value" ),
2202
+ Protocols : []string {"TLSv1.1" , "TLSv1.2" , "TLSv1.3" },
2203
+ },
2204
+ expected : []string {},
2205
+ },
2177
2206
}
2178
2207
2179
2208
for _ , tt := range testCases {
0 commit comments