icontrol 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/icontrol/arx.rb +38 -8
- data/lib/icontrol/arx/api.rb +1 -0
- data/lib/icontrol/arx/chassis.rb +11 -0
- data/lib/icontrol/arx/export.rb +4 -1
- data/lib/icontrol/arx/file_change_notification.rb +25 -4
- data/lib/icontrol/arx/file_server.rb +2 -0
- data/lib/icontrol/arx/namespace.rb +2 -0
- data/lib/icontrol/arx/network.rb +3 -0
- data/lib/icontrol/arx/policy.rb +3 -0
- data/lib/icontrol/arx/share.rb +2 -0
- data/lib/icontrol/arx/virtual_service.rb +3 -0
- data/lib/icontrol/arx/volume.rb +2 -0
- data/lib/icontrol/asm.rb +18 -3
- data/lib/icontrol/asm/object_params.rb +12 -6
- data/lib/icontrol/asm/policy.rb +118 -79
- data/lib/icontrol/asm/system_configuration.rb +27 -19
- data/lib/icontrol/asm/web_application.rb +74 -52
- data/lib/icontrol/asm/web_application_group.rb +33 -24
- data/lib/icontrol/base.rb +1 -0
- data/lib/icontrol/base/exception.rb +1 -0
- data/lib/icontrol/base/icontrol/local_lb/pool.rb +7 -0
- data/lib/icontrol/base/icontrol_overlay.rb +6 -0
- data/lib/icontrol/base/predeclarations.rb +5 -4
- data/lib/icontrol/base/struct.rb +6 -2
- data/lib/icontrol/common.rb +55 -4
- data/lib/icontrol/global_lb.rb +22 -3
- data/lib/icontrol/global_lb/application.rb +63 -44
- data/lib/icontrol/global_lb/data_center.rb +82 -58
- data/lib/icontrol/global_lb/dnssec_key.rb +152 -90
- data/lib/icontrol/global_lb/dnssec_zone.rb +55 -35
- data/lib/icontrol/global_lb/globals.rb +662 -430
- data/lib/icontrol/global_lb/link.rb +181 -131
- data/lib/icontrol/global_lb/monitor.rb +174 -104
- data/lib/icontrol/global_lb/pool.rb +290 -203
- data/lib/icontrol/global_lb/pool_member.rb +118 -71
- data/lib/icontrol/global_lb/region.rb +37 -25
- data/lib/icontrol/global_lb/rule.rb +53 -37
- data/lib/icontrol/global_lb/server.rb +176 -124
- data/lib/icontrol/global_lb/topology.rb +41 -27
- data/lib/icontrol/global_lb/virtual_server.rb +118 -84
- data/lib/icontrol/global_lb/wide_ip.rb +168 -117
- data/lib/icontrol/local_lb.rb +81 -10
- data/lib/icontrol/local_lb/klass.rb +233 -153
- data/lib/icontrol/local_lb/monitor.rb +158 -96
- data/lib/icontrol/local_lb/nat.rb +74 -52
- data/lib/icontrol/local_lb/node_address.rb +123 -86
- data/lib/icontrol/local_lb/pool.rb +229 -164
- data/lib/icontrol/local_lb/pool_member.rb +134 -76
- data/lib/icontrol/local_lb/profile_auth.rb +103 -75
- data/lib/icontrol/local_lb/profile_client_ssl.rb +284 -201
- data/lib/icontrol/local_lb/profile_diameter.rb +113 -71
- data/lib/icontrol/local_lb/profile_dns.rb +65 -46
- data/lib/icontrol/local_lb/profile_fast_http.rb +265 -178
- data/lib/icontrol/local_lb/profile_fast_l4.rb +283 -194
- data/lib/icontrol/local_lb/profile_ftp.rb +81 -58
- data/lib/icontrol/local_lb/profile_http.rb +701 -433
- data/lib/icontrol/local_lb/profile_http_class.rb +169 -121
- data/lib/icontrol/local_lb/profile_iiop.rb +87 -63
- data/lib/icontrol/local_lb/profile_one_connect.rb +99 -71
- data/lib/icontrol/local_lb/profile_persistence.rb +326 -203
- data/lib/icontrol/local_lb/profile_radius.rb +94 -62
- data/lib/icontrol/local_lb/profile_rtsp.rb +207 -129
- data/lib/icontrol/local_lb/profile_sctp.rb +231 -167
- data/lib/icontrol/local_lb/profile_server_ssl.rb +268 -189
- data/lib/icontrol/local_lb/profile_sip.rb +145 -99
- data/lib/icontrol/local_lb/profile_stream.rb +71 -51
- data/lib/icontrol/local_lb/profile_tcp.rb +455 -296
- data/lib/icontrol/local_lb/profile_udp.rb +109 -78
- data/lib/icontrol/local_lb/profile_user_statistic.rb +77 -46
- data/lib/icontrol/local_lb/profile_xml.rb +116 -79
- data/lib/icontrol/local_lb/ram_cache_information.rb +43 -20
- data/lib/icontrol/local_lb/rate_class.rb +523 -318
- data/lib/icontrol/local_lb/rule.rb +53 -37
- data/lib/icontrol/local_lb/snat.rb +96 -65
- data/lib/icontrol/local_lb/snat_pool.rb +54 -39
- data/lib/icontrol/local_lb/snat_pool_member.rb +22 -15
- data/lib/icontrol/local_lb/snat_translation_address.rb +94 -69
- data/lib/icontrol/local_lb/virtual_address.rb +99 -70
- data/lib/icontrol/local_lb/virtual_server.rb +358 -243
- data/lib/icontrol/lt_config.rb +8 -1
- data/lib/icontrol/lt_config/field.rb +87 -53
- data/lib/icontrol/lt_config/klass.rb +59 -43
- data/lib/icontrol/management.rb +80 -38
- data/lib/icontrol/management/ccldap_configuration.rb +218 -144
- data/lib/icontrol/management/change_control.rb +67 -41
- data/lib/icontrol/management/crldp_configuration.rb +73 -52
- data/lib/icontrol/management/crldp_server.rb +55 -39
- data/lib/icontrol/management/db_variable.rb +32 -21
- data/lib/icontrol/management/event_notification.rb +19 -8
- data/lib/icontrol/management/event_subscription.rb +121 -74
- data/lib/icontrol/management/key_certificate.rb +235 -138
- data/lib/icontrol/management/ldap_configuration.rb +249 -179
- data/lib/icontrol/management/license_administration.rb +97 -56
- data/lib/icontrol/management/named.rb +103 -67
- data/lib/icontrol/management/ocsp_configuration.rb +33 -24
- data/lib/icontrol/management/ocsp_responder.rb +294 -165
- data/lib/icontrol/management/partition.rb +42 -23
- data/lib/icontrol/management/provision.rb +73 -39
- data/lib/icontrol/management/radius_configuration.rb +85 -57
- data/lib/icontrol/management/radius_server.rb +51 -37
- data/lib/icontrol/management/resource_record.rb +163 -121
- data/lib/icontrol/management/snmp_configuration.rb +675 -390
- data/lib/icontrol/management/tacacs_configuration.rb +99 -67
- data/lib/icontrol/management/tmos_module.rb +20 -8
- data/lib/icontrol/management/user_management.rb +198 -124
- data/lib/icontrol/management/view.rb +33 -24
- data/lib/icontrol/management/zone.rb +49 -34
- data/lib/icontrol/management/zone_runner.rb +11 -7
- data/lib/icontrol/networking.rb +31 -4
- data/lib/icontrol/networking/admin_ip.rb +92 -71
- data/lib/icontrol/networking/arp.rb +41 -28
- data/lib/icontrol/networking/i_session_advertised_route.rb +47 -32
- data/lib/icontrol/networking/i_session_local_interface.rb +72 -52
- data/lib/icontrol/networking/i_session_peer_discovery.rb +105 -68
- data/lib/icontrol/networking/i_session_remote_interface.rb +105 -76
- data/lib/icontrol/networking/interfaces.rb +241 -142
- data/lib/icontrol/networking/packet_filter.rb +111 -69
- data/lib/icontrol/networking/packet_filter_globals.rb +39 -28
- data/lib/icontrol/networking/port_mirror.rb +39 -27
- data/lib/icontrol/networking/profile_gre.rb +63 -41
- data/lib/icontrol/networking/profile_ipip.rb +38 -25
- data/lib/icontrol/networking/profile_wccpgre.rb +85 -55
- data/lib/icontrol/networking/route_domain.rb +70 -44
- data/lib/icontrol/networking/route_table.rb +128 -91
- data/lib/icontrol/networking/self_ip.rb +57 -39
- data/lib/icontrol/networking/self_ip_port_lockdown.rb +34 -22
- data/lib/icontrol/networking/stp_globals.rb +115 -63
- data/lib/icontrol/networking/stp_instance.rb +166 -68
- data/lib/icontrol/networking/trunk.rb +165 -101
- data/lib/icontrol/networking/tunnel.rb +77 -52
- data/lib/icontrol/networking/vlan.rb +140 -98
- data/lib/icontrol/networking/vlan_group.rb +145 -101
- data/lib/icontrol/system.rb +70 -33
- data/lib/icontrol/system/cluster.rb +103 -81
- data/lib/icontrol/system/config_sync.rb +128 -72
- data/lib/icontrol/system/connections.rb +27 -17
- data/lib/icontrol/system/disk.rb +134 -67
- data/lib/icontrol/system/failover.rb +44 -27
- data/lib/icontrol/system/geo_ip.rb +16 -5
- data/lib/icontrol/system/inet.rb +47 -30
- data/lib/icontrol/system/internal.rb +13 -9
- data/lib/icontrol/system/services.rb +75 -42
- data/lib/icontrol/system/software_management.rb +132 -83
- data/lib/icontrol/system/statistics.rb +443 -298
- data/lib/icontrol/system/system_info.rb +137 -95
- data/lib/icontrol/web_accelerator/applications.rb +17 -10
- data/lib/icontrol/web_accelerator/policies.rb +13 -9
- data/lib/icontrol/web_accelerator/proxy_message.rb +11 -7
- data/spec/icontrol/local_lb/pool_member_spec.rb +495 -0
- data/spec/icontrol/local_lb/profile_http_class_spec.rb +514 -0
- metadata +10 -4
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__),"..","..",'/spec_helper'))
|
|
2
|
+
|
|
3
|
+
describe IControl::LocalLB::ProfileHttpClass do
|
|
4
|
+
|
|
5
|
+
use_vcr_cassette "IControl::LocalLB::ProfileHttpClass", :record => :all, :match_requests_on => [:uri, :method, :body] # Change :record => :new_episodes when done
|
|
6
|
+
|
|
7
|
+
before(:each) do
|
|
8
|
+
IControl::LocalLB::ProfileHttpClass.create(:profile_name => "test_profile_http_class")
|
|
9
|
+
@profile_http_class = IControl::LocalLB::ProfileHttpClass.find("test_profile_http_class")
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
after(:each) do
|
|
13
|
+
@profile_http_class.delete_profile
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
describe "#add_cookie_match_pattern" do
|
|
17
|
+
it "Adds to the lists of patterns used to match the cookies." do
|
|
18
|
+
@profile_http_class.cookie_match_pattern.values.should be_nil
|
|
19
|
+
@profile_http_class.add_cookie_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
20
|
+
@profile_http_class.add_cookie_match_pattern(:patterns => [{:pattern => "/test/2",:is_glob => true }])
|
|
21
|
+
@profile_http_class.cookie_match_pattern.values.length.should == 2
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it "works this way" do
|
|
25
|
+
@profile_http_class.add_cookie_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false},{:pattern => "/test/2",:is_glob => true }])
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "#add_header_match_pattern" do
|
|
30
|
+
it "Adds to the lists of patterns used to match the headers." do
|
|
31
|
+
@profile_http_class.header_match_pattern.values.should be_nil
|
|
32
|
+
@profile_http_class.add_header_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
33
|
+
@profile_http_class.add_header_match_pattern(:patterns => [{:pattern => "/test/2",:is_glob => true }])
|
|
34
|
+
@profile_http_class.header_match_pattern.values.length.should == 2
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it "works this way" do
|
|
38
|
+
@profile_http_class.add_header_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe "#add_host_match_pattern" do
|
|
43
|
+
it "Adds to the lists of patterns used to match the hosts." do
|
|
44
|
+
@profile_http_class.host_match_pattern.values.should be_nil
|
|
45
|
+
@profile_http_class.add_host_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
46
|
+
@profile_http_class.add_host_match_pattern(:patterns => [{:pattern => "/test/2",:is_glob => true }])
|
|
47
|
+
@profile_http_class.host_match_pattern.values.length.should == 2
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
it "works this way" do
|
|
51
|
+
@profile_http_class.add_host_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
describe "#add_path_match_pattern" do
|
|
56
|
+
it "Adds to the lists of patterns used to match the URI paths." do
|
|
57
|
+
@profile_http_class.path_match_pattern.values.should be_nil
|
|
58
|
+
@profile_http_class.add_path_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
59
|
+
@profile_http_class.add_path_match_pattern(:patterns => [{:pattern => "/test/2",:is_glob => true }])
|
|
60
|
+
@profile_http_class.path_match_pattern.values.length.should == 2
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
it "works this way" do
|
|
64
|
+
@profile_http_class.add_path_match_pattern(:patterns => [{:pattern => "/test/",:is_glob => false}])
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe "#create" do
|
|
69
|
+
it "Creates the specified HTTP class profiles." do
|
|
70
|
+
IControl::LocalLB::ProfileHttpClass.find("foo_profile").should be_nil
|
|
71
|
+
IControl::LocalLB::ProfileHttpClass.create(:profile_name => "foo_profile")
|
|
72
|
+
@created_profile = IControl::LocalLB::ProfileHttpClass.find("foo_profile")
|
|
73
|
+
@created_profile.should_not be_nil
|
|
74
|
+
@created_profile.delete_profile
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
it "works this way" do
|
|
78
|
+
IControl::LocalLB::ProfileHttpClass.create(:profile_name => "foo_profile")
|
|
79
|
+
@created_profile = IControl::LocalLB::ProfileHttpClass.find("foo_profile")
|
|
80
|
+
@created_profile.delete_profile
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe "#delete_all_profiles" do
|
|
85
|
+
it "Deletes all HTTP class profiles." do
|
|
86
|
+
pending "I not deleting all of the profiles just for the sake of it !"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
it "works this way" do
|
|
90
|
+
pending "I not deleting all of the profiles just for the sake of it !"
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe "#delete_profile" do
|
|
95
|
+
it "Deletes the specified HTTP class profiles." do
|
|
96
|
+
IControl::LocalLB::ProfileHttpClass.create(:profile_name => "foo_profile")
|
|
97
|
+
@created_profile = IControl::LocalLB::ProfileHttpClass.find("foo_profile")
|
|
98
|
+
@created_profile.should_not be_nil
|
|
99
|
+
@created_profile.delete_profile
|
|
100
|
+
@created_profile = IControl::LocalLB::ProfileHttpClass.find("foo_profile")
|
|
101
|
+
@created_profile.should be_nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
it "works this way" do
|
|
105
|
+
# See ProfileHttpClass#create
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
describe "#all_statistics" do
|
|
110
|
+
it "should return without raising any exception" do
|
|
111
|
+
lambda { @profile_http_class.all_statistics }.should_not raise_exception
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
it "Gets the statistics for all the profiles." do
|
|
115
|
+
@profile_http_class.all_statistics.should_not be_nil
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
it "works this way" do
|
|
119
|
+
@profile_http_class.all_statistics
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
it "returns an instance of ProfileHttpClassStatistics" do
|
|
123
|
+
@profile_http_class.all_statistics.class.should == IControl::LocalLB::ProfileHttpClass::ProfileHttpClassStatistics
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
describe "#application_security_module_enabled_state" do
|
|
128
|
+
it "should return without raising any exception" do
|
|
129
|
+
lambda { @profile_http_class.application_security_module_enabled_state }.should_not raise_exception
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
it "Gets the states that specify whether specified classes are Application Security Module classes." do
|
|
133
|
+
@profile_http_class.application_security_module_enabled_state.should_not be_nil
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
it "works this way" do
|
|
137
|
+
@profile_http_class.application_security_module_enabled_state
|
|
138
|
+
# => #<IControl::LocalLB::ProfileEnabledState:0x000000040d18e0 @attributes={:value=>:STATE_DISABLED, :default_flag=>true, :id=>nil}>
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
it "returns an instance of IControl::LocalLB::ProfileEnabledState" do
|
|
142
|
+
@profile_http_class.application_security_module_enabled_state.class.should == IControl::LocalLB::ProfileEnabledState
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
describe "#cookie_match_pattern" do
|
|
147
|
+
it "should return without raising any exception" do
|
|
148
|
+
lambda { @profile_http_class.cookie_match_pattern }.should_not raise_exception
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
it "Gets the lists of patterns used to match the cookies." do
|
|
152
|
+
@profile_http_class.cookie_match_pattern.should_not be_nil
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
it "works this way" do
|
|
156
|
+
@profile_http_class.cookie_match_pattern
|
|
157
|
+
# => #<IControl::LocalLB::ProfileMatchPatternStringArray
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
it "returns an instance of IControl::LocalLB::ProfileMatchPatternStringArray" do
|
|
161
|
+
@profile_http_class.cookie_match_pattern.class.should == IControl::LocalLB::ProfileMatchPatternStringArray
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
describe "#default_profile" do
|
|
166
|
+
it "should return without raising any exception" do
|
|
167
|
+
lambda { @profile_http_class.default_profile }.should_not raise_exception
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
it "Gets the names of the default profiles from which the specified profiles will derive default values for its attributes." do
|
|
171
|
+
@profile_http_class.default_profile.should_not be_nil
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
it "works this way" do
|
|
175
|
+
@profile_http_class.default_profile
|
|
176
|
+
# => httpclass
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
it "returns an instance of String" do
|
|
180
|
+
@profile_http_class.default_profile.class.should == String
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
describe "#header_match_pattern" do
|
|
185
|
+
it "should return without raising any exception" do
|
|
186
|
+
lambda { @profile_http_class.header_match_pattern }.should_not raise_exception
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
it "Gets the lists of patterns used to match the headers." do
|
|
190
|
+
@profile_http_class.header_match_pattern.should_not be_nil
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
it "works this way" do
|
|
194
|
+
@profile_http_class.header_match_pattern
|
|
195
|
+
# => #<IControl::LocalLB::ProfileMatchPatternStringArray
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
it "returns an instance of IControl::LocalLB::ProfileMatchPatternStringArray" do
|
|
199
|
+
@profile_http_class.cookie_match_pattern.class.should == IControl::LocalLB::ProfileMatchPatternStringArray
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
describe "#host_match_pattern" do
|
|
205
|
+
it "should return without raising any exception" do
|
|
206
|
+
lambda { @profile_http_class.host_match_pattern }.should_not raise_exception
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
it "Gets the lists of patterns used to match the hosts." do
|
|
210
|
+
@profile_http_class.host_match_pattern.should_not be_nil
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
it "works this way" do
|
|
214
|
+
@profile_http_class.host_match_pattern
|
|
215
|
+
# => #<IControl::LocalLB::ProfileMatchPatternStringArray
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
it "returns an instance of IControl::LocalLB::ProfileMatchPatternStringArray" do
|
|
219
|
+
@profile_http_class.cookie_match_pattern.class.should == IControl::LocalLB::ProfileMatchPatternStringArray
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
describe "#path_match_pattern" do
|
|
225
|
+
it "should return without raising any exception" do
|
|
226
|
+
lambda { @profile_http_class.path_match_pattern }.should_not raise_exception
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
it "Gets the lists of patterns used to match the URI paths." do
|
|
230
|
+
@profile_http_class.path_match_pattern.should_not be_nil
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
it "works this way" do
|
|
234
|
+
@profile_http_class.path_match_pattern
|
|
235
|
+
# => #<IControl::LocalLB::ProfileMatchPatternStringArray
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
it "returns an instance of IControl::LocalLB::ProfileMatchPatternStringArray" do
|
|
239
|
+
@profile_http_class.cookie_match_pattern.class.should == IControl::LocalLB::ProfileMatchPatternStringArray
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
describe "#pool_name" do
|
|
244
|
+
it "should return without raising any exception" do
|
|
245
|
+
lambda { @profile_http_class.pool_name }.should_not raise_exception
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
it "Gets the pool names to use when the specified classes match." do
|
|
249
|
+
@profile_http_class.pool_name.should_not be_nil
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
it "works this way" do
|
|
253
|
+
@profile_http_class.pool_name.inspect
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
it "returns an instance of IControl::LocalLB::ProfileString" do
|
|
257
|
+
@profile_http_class.pool_name.class.should == IControl::LocalLB::ProfileString
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
describe "#redirect_location" do
|
|
262
|
+
it "should return without raising any exception" do
|
|
263
|
+
lambda { @profile_http_class.redirect_location }.should_not raise_exception
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
it "Gets the string (which may include a TCL expression) to indicates where to redirect the original HTTP request once a match occurs. For example, to redirect requests to https://myserver.com to http://myotherserver.com." do
|
|
267
|
+
pending
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
it "works this way" do
|
|
271
|
+
pending
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
it "returns an instance of ProfileString" do
|
|
275
|
+
pending
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
describe "#rewrite_url" do
|
|
280
|
+
it "should return without raising any exception" do
|
|
281
|
+
lambda { @profile_http_class.rewrite_url }.should_not raise_exception
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
it "Gets the strings (which may include a TCL expression) with which to rewrite the URLs." do
|
|
285
|
+
pending
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
it "works this way" do
|
|
289
|
+
pending
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
it "returns an instance of ProfileString" do
|
|
293
|
+
pending
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
describe "#statistics" do
|
|
298
|
+
it "should return without raising any exception" do
|
|
299
|
+
lambda { @profile_http_class.statistics }.should_not raise_exception
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
it "Gets the statistics for the specified profiles." do
|
|
303
|
+
pending
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
it "works this way" do
|
|
307
|
+
pending
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
it "returns an instance of ProfileHttpClassStatistics" do
|
|
311
|
+
pending
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
describe "#version" do
|
|
316
|
+
it "should return without raising any exception" do
|
|
317
|
+
lambda { @profile_http_class.version }.should_not raise_exception
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
it "Gets the version information for this interface." do
|
|
321
|
+
pending
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
it "works this way" do
|
|
325
|
+
pending
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
it "returns an instance of String" do
|
|
329
|
+
pending
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
describe "#web_accelerator_module_enabled_state" do
|
|
334
|
+
it "should return without raising any exception" do
|
|
335
|
+
lambda { @profile_http_class.web_accelerator_module_enabled_state }.should_not raise_exception
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
it "Gets the states that specify whether specified classes are Web Accelerator classes." do
|
|
339
|
+
pending
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
it "works this way" do
|
|
343
|
+
pending
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
it "returns an instance of ProfileEnabledState" do
|
|
347
|
+
pending
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
describe "#is_base_profile" do
|
|
352
|
+
it "Determines whether the specified profiles are base/pre-configured profiles, or user-defined profiles." do
|
|
353
|
+
pending
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
it "works this way" do
|
|
357
|
+
pending
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
it "returns an instance of boolean" do
|
|
361
|
+
pending
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
describe "#remove_cookie_match_pattern" do
|
|
366
|
+
it "Removes from the lists of patterns used to match the cookies." do
|
|
367
|
+
pending
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
it "works this way" do
|
|
371
|
+
pending
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
describe "#remove_header_match_pattern" do
|
|
376
|
+
it "Removes from the lists of patterns used to match the headers." do
|
|
377
|
+
pending
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
it "works this way" do
|
|
381
|
+
pending
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
describe "#remove_host_match_pattern" do
|
|
386
|
+
it "Removes from the lists of patterns used to match the hosts." do
|
|
387
|
+
pending
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
it "works this way" do
|
|
391
|
+
pending
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
describe "#remove_path_match_pattern" do
|
|
396
|
+
it "Removes from the lists of patterns used to match the URI paths." do
|
|
397
|
+
pending
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
it "works this way" do
|
|
401
|
+
pending
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
describe "#reset_statistics" do
|
|
406
|
+
it "Resets the statistics for the specified profiles." do
|
|
407
|
+
pending
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
it "works this way" do
|
|
411
|
+
pending
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
describe "#set_application_security_module_enabled_state" do
|
|
416
|
+
it "Sets the states that specify whether specified classes are Application Security Module classes." do
|
|
417
|
+
pending
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
it "works this way" do
|
|
421
|
+
pending
|
|
422
|
+
end
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
describe "#set_default_cookie_match_pattern" do
|
|
426
|
+
it "Resets the lists to parent defaults." do
|
|
427
|
+
pending
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
it "works this way" do
|
|
431
|
+
pending
|
|
432
|
+
end
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
describe "#set_default_header_match_pattern" do
|
|
436
|
+
it "Resets the lists to parent defaults." do
|
|
437
|
+
pending
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
it "works this way" do
|
|
441
|
+
pending
|
|
442
|
+
end
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
describe "#set_default_host_match_pattern" do
|
|
446
|
+
it "Resets the lists to parent defaults." do
|
|
447
|
+
pending
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
it "works this way" do
|
|
451
|
+
pending
|
|
452
|
+
end
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
describe "#set_default_path_match_pattern" do
|
|
456
|
+
it "Resets the lists to parent defaults." do
|
|
457
|
+
pending
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
it "works this way" do
|
|
461
|
+
pending
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
describe "#set_default_profile" do
|
|
466
|
+
it "Sets the names of the default profiles from which the specified profiles will derive default values for its attributes." do
|
|
467
|
+
pending
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
it "works this way" do
|
|
471
|
+
pending
|
|
472
|
+
end
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
describe "#set_pool_name" do
|
|
476
|
+
it "Sets the pool names to use when the specified classes match." do
|
|
477
|
+
pending
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
it "works this way" do
|
|
481
|
+
pending
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
describe "#set_redirect_location" do
|
|
486
|
+
it "Sets the string (which may include a TCL expression) to indicates where to redirect the original HTTP request once a match occurs. For example, to redirect requests to https://myserver.com to http://myotherserver.com." do
|
|
487
|
+
pending
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
it "works this way" do
|
|
491
|
+
pending
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
describe "#set_rewrite_url" do
|
|
496
|
+
it "Sets the strings (which may include a TCL expression) with which to rewrite the URLs." do
|
|
497
|
+
pending
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
it "works this way" do
|
|
501
|
+
pending
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
describe "#set_web_accelerator_module_enabled_state" do
|
|
506
|
+
it "Sets the states that specify whether specified classes are Web Accelerator classes." do
|
|
507
|
+
pending
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
it "works this way" do
|
|
511
|
+
pending
|
|
512
|
+
end
|
|
513
|
+
end
|
|
514
|
+
end
|