@@ -37,7 +37,7 @@ const getHostingProviderTests = [
37
37
hello : [
38
38
'server' , 'redis' ,
39
39
] ,
40
- info : '#Server\r\n'
40
+ info : '# Server\r\n'
41
41
+ 'executable:/opt/redis/bin/redis-server' ,
42
42
output : HostingProvider . REDIS_COMMUNITY_EDITION ,
43
43
} ,
@@ -46,7 +46,16 @@ const getHostingProviderTests = [
46
46
hello : [
47
47
'server' , 'redis' ,
48
48
] ,
49
- info : '#Server\r\n'
49
+ info : '# Server\r\n'
50
+ + 'executable:/data/redis-server' ,
51
+ output : HostingProvider . REDIS_COMMUNITY_EDITION ,
52
+ } ,
53
+ {
54
+ input : 'localhost' ,
55
+ hello : [
56
+ 'server' , 'redis' ,
57
+ ] ,
58
+ info : '# Server\r\n'
50
59
+ 'executable:/opt/redis-stack/bin/redis-server' ,
51
60
output : HostingProvider . REDIS_STACK ,
52
61
} ,
@@ -61,7 +70,7 @@ const getHostingProviderTests = [
61
70
] ,
62
71
] ,
63
72
] ,
64
- info : '#Server\r\n'
73
+ info : '# Server\r\n'
65
74
+ 'redis_version: 7.2.0' ,
66
75
output : HostingProvider . REDIS_ENTERPRISE ,
67
76
} ,
@@ -80,49 +89,49 @@ const getHostingProviderTests = [
80
89
} ,
81
90
{
82
91
input : 'localhost' ,
83
- info : '#Server\r\n'
92
+ info : '# Server\r\n'
84
93
+ 'server_name:valkey' ,
85
94
output : HostingProvider . VALKEY ,
86
95
} ,
87
96
{
88
97
input : 'localhost' ,
89
- info : '#Server\r\n'
98
+ info : '# Server\r\n'
90
99
+ 'dragonfly_version:df-7.0.0' ,
91
100
output : HostingProvider . DRAGONFLY ,
92
101
} ,
93
102
{
94
103
input : 'localhost' ,
95
- info : '#Server\r\n'
104
+ info : '# Server\r\n'
96
105
+ 'garnet_version:gr-7.0.0' ,
97
106
output : HostingProvider . GARNET ,
98
107
} ,
99
108
{
100
109
input : 'localhost' ,
101
- info : '#Server\r\n'
110
+ info : '# Server\r\n'
102
111
+ 'kvrocks_version:kv-7.0.0' ,
103
112
output : HostingProvider . KVROCKS ,
104
113
} ,
105
114
{
106
115
input : 'localhost' ,
107
- info : '#Server\r\n'
116
+ info : '# Server\r\n'
108
117
+ 'redict_version:rd-7.0.0' ,
109
118
output : HostingProvider . REDICT ,
110
119
} ,
111
120
{
112
121
input : 'localhost' ,
113
- info : '#Server\r\n'
122
+ info : '# Server\r\n'
114
123
+ 'upstash_version:up-7.0.0' ,
115
124
output : HostingProvider . UPSTASH ,
116
125
} ,
117
126
{
118
127
input : 'localhost' ,
119
- info : '#Server\r\n'
128
+ info : '# Server\r\n'
120
129
+ 'ElastiCache:sometinhg' ,
121
130
output : HostingProvider . AWS_ELASTICACHE ,
122
131
} ,
123
132
{
124
133
input : 'localhost' ,
125
- info : '#Server\r\n'
134
+ info : '# Server\r\n'
126
135
+ 'MemoryDB:sometinhg' ,
127
136
output : HostingProvider . AWS_MEMORYDB ,
128
137
} ,
0 commit comments