@@ -5,13 +5,13 @@ def test_clean_check_request_cache(client):
5
5
client ._get .return_value = success_response
6
6
response = client .System .CleanCheckRequestCache (
7
7
1 ,
8
- True ,
8
+ True ,"ruk" ,
9
9
)
10
10
client ._get .assert_called_with (
11
11
"CleanCheckRequestCache" ,
12
12
params = {
13
13
"uid" : 1 ,
14
- "localOnly" : True ,
14
+ "localOnly" : True ,"ruk" : "ruk" ,
15
15
},
16
16
)
17
17
assert response == success_response
@@ -22,14 +22,14 @@ def test_event_Sys(client):
22
22
response = client .System .Event (
23
23
"topic" ,
24
24
"message" ,
25
- True ,
25
+ True ,"ruk" ,
26
26
)
27
27
client ._get .assert_called_with (
28
28
"Event" ,
29
29
params = {
30
30
"topic" : "topic" ,
31
31
"message" : "message" ,
32
- "publishLocal" : True ,
32
+ "publishLocal" : True ,"ruk" : "ruk" ,
33
33
},
34
34
)
35
35
assert response == success_response
@@ -39,80 +39,80 @@ def test_get_api_description(client):
39
39
client ._get .return_value = success_response
40
40
response = client .System .GetAPIDescriptions (
41
41
False ,
42
- True ,
42
+ True ,"ruk" ,
43
43
)
44
44
client ._get .assert_called_with (
45
45
"GetAPIDescriptions" ,
46
46
params = {
47
47
"isPublicOnly" : False ,
48
- "isToken" : True ,
48
+ "isToken" : True ,"ruk" : "ruk" ,
49
49
},
50
50
)
51
51
assert response == success_response
52
52
53
53
54
54
def test_get_auto_percent (client ):
55
55
client ._get .return_value = success_response
56
- response = client .System .GetAutoPercent ()
57
- client ._get .assert_called_with ("GetAutoPercent" , params = {})
56
+ response = client .System .GetAutoPercent ("ruk" , )
57
+ client ._get .assert_called_with ("GetAutoPercent" , params = {"ruk" : "ruk" , })
58
58
assert response == success_response
59
59
60
60
61
61
def test_get_cache_stats (client ):
62
62
client ._get .return_value = success_response
63
- response = client .System .GetCacheStats ()
64
- client ._get .assert_called_with ("GetCacheStats" , params = {})
63
+ response = client .System .GetCacheStats ("ruk" , )
64
+ client ._get .assert_called_with ("GetCacheStats" , params = {"ruk" : "ruk" , })
65
65
assert response == success_response
66
66
67
67
68
68
def test_get_cache_status (client ):
69
69
client ._get .return_value = success_response
70
- response = client .System .GetCacheStatus ()
71
- client ._get .assert_called_with ("GetCacheStatus" , params = {})
70
+ response = client .System .GetCacheStatus ("ruk" , )
71
+ client ._get .assert_called_with ("GetCacheStatus" , params = {"ruk" : "ruk" , })
72
72
assert response == success_response
73
73
74
74
75
75
def test_get_instance_cache_status (client ):
76
76
client ._get .return_value = success_response
77
- response = client .System .GetInstanceCacheStatus ()
78
- client ._get .assert_called_with ("GetInstanceCacheStatus" , params = {})
77
+ response = client .System .GetInstanceCacheStatus ("ruk" , )
78
+ client ._get .assert_called_with ("GetInstanceCacheStatus" , params = {"ruk" : "ruk" , })
79
79
assert response == success_response
80
80
81
81
82
82
def test_get_status (client ):
83
83
client ._get .return_value = success_response
84
- response = client .System .GetStatus ("checksum" )
85
- client ._get .assert_called_with ("GetStatus" , params = {"checksum" : "checksum" })
84
+ response = client .System .GetStatus ("checksum" , "ruk" , )
85
+ client ._get .assert_called_with ("GetStatus" , params = {"checksum" : "checksum" , "ruk" : "ruk" , })
86
86
assert response == success_response
87
87
88
88
89
89
def test_get_version (client ):
90
90
client ._get .return_value = success_response
91
- response = client .System .GetVersion ()
92
- client ._get .assert_called_with ("GetVersion" , params = {})
91
+ response = client .System .GetVersion ("ruk" , )
92
+ client ._get .assert_called_with ("GetVersion" , params = {"ruk" : "ruk" , })
93
93
assert response == success_response
94
94
95
95
96
96
def test_refresh_email_templates (client ):
97
97
client ._get .return_value = success_response
98
- response = client .System .RefreshEmailTemplates ()
99
- client ._get .assert_called_with ("RefreshEmailTemplates" , params = {})
98
+ response = client .System .RefreshEmailTemplates ("ruk" , )
99
+ client ._get .assert_called_with ("RefreshEmailTemplates" , params = {"ruk" : "ruk" , })
100
100
assert response == success_response
101
101
102
102
103
103
def test_refresh_user (client ):
104
104
client ._get .return_value = success_response
105
- response = client .System .RefreshUser ("language" )
106
- client ._get .assert_called_with ("RefreshUser" , params = {"language" : "language" })
105
+ response = client .System .RefreshUser ("language" , "ruk" , )
106
+ client ._get .assert_called_with ("RefreshUser" , params = {"language" : "language" , "ruk" : "ruk" , })
107
107
assert response == success_response
108
108
109
109
110
110
def test_reload_configuration (client ):
111
111
client ._get .return_value = success_response
112
- response = client .System .ReloadConfiguration (1 , "place holder" )
112
+ response = client .System .ReloadConfiguration (1 , "place holder" , "ruk" , )
113
113
client ._get .assert_called_with (
114
114
"ReloadConfiguration" ,
115
- params = {"resellerId" : 1 , "changedPlaceholders" : "place holder" },
115
+ params = {"resellerId" : 1 , "changedPlaceholders" : "place holder" , "ruk" : "ruk" , },
116
116
)
117
117
assert response == success_response
118
118
@@ -123,29 +123,29 @@ def test_send_email(client):
123
123
"template" ,
124
124
125
125
"language" ,
126
- 1 ,
126
+ 1 ,"ruk" ,
127
127
)
128
128
client ._get .assert_called_with (
129
129
"SendEmail" ,
130
130
params = {
131
131
"template" : "template" ,
132
132
133
133
"language" : "language" ,
134
- "timeout" : 1 ,
134
+ "timeout" : 1 ,"ruk" : "ruk" ,
135
135
},
136
136
)
137
137
assert response == success_response
138
138
139
139
140
140
def test_validate (client ):
141
141
client ._get .return_value = success_response
142
- response = client .System .Validate ()
143
- client ._get .assert_called_with ("Validate" , params = {})
142
+ response = client .System .Validate ("ruk" , )
143
+ client ._get .assert_called_with ("Validate" , params = {"ruk" : "ruk" , })
144
144
assert response == success_response
145
145
146
146
147
147
def test_validate_all (client ):
148
148
client ._get .return_value = success_response
149
- response = client .System .ValidateAll ()
150
- client ._get .assert_called_with ("ValidateAll" , params = {})
149
+ response = client .System .ValidateAll ("ruk" , )
150
+ client ._get .assert_called_with ("ValidateAll" , params = {"ruk" : "ruk" , })
151
151
assert response == success_response
0 commit comments