@@ -54,11 +54,11 @@ sub perform_login {
5454 }
5555}
5656
57- # create VMWare policy with the name veritas_policy1 with default values
57+ # create VMWare policy with the name vmware_test_policy with default values
5858sub create_policy_with_defaults {
5959
6060 my $url = " $base_url /config/policies" ;
61- my $policy_name = " veritas_policy1 " ;
61+ my $policy_name = " vmware_test_policy " ;
6262
6363 my $req = HTTP::Request-> new(POST => $url );
6464 $req -> header(' content-type' => $content_type_v2 );
@@ -81,11 +81,11 @@ sub create_policy_with_defaults {
8181 }
8282}
8383
84- # create VMWare policy with the name veritas_policy1
84+ # create VMWare policy with the name vmware_test_policy
8585sub create_policy {
8686
8787 my $url = " $base_url /config/policies" ;
88- my $policy_name = " veritas_policy1 " ;
88+ my $policy_name = " vmware_test_policy " ;
8989
9090 my $req = HTTP::Request-> new(POST => $url );
9191 $req -> header(' content-type' => $content_type_v2 );
@@ -113,11 +113,11 @@ sub create_policy {
113113 $req -> content($post_data );
114114
115115 print " \n\n **************************************************************" ;
116- print " \n\n Making POST Request to create VMWare policy with defaults \n\n " ;
116+ print " \n\n Making POST Request to create VMWare policy without defaults \n\n " ;
117117
118118 my $resp = $ua -> request($req );
119119 if ($resp -> is_success) {
120- print " Policy [$policy_name ] with default values is create with status code: " , $resp -> code, " \n " ;
120+ print " Policy [$policy_name ] without default values is created with status code: " , $resp -> code, " \n " ;
121121 }
122122 else {
123123 print " HTTP POST error code: " , $resp -> code, " \n " ;
@@ -150,7 +150,7 @@ sub list_policies {
150150
151151# subroutine to read policy
152152sub read_policy {
153- my $policy_name = " veritas_policy1 " ;
153+ my $policy_name = " vmware_test_policy " ;
154154 my $url = " $base_url /config/policies/$policy_name " ;
155155
156156 my $req = HTTP::Request-> new(GET => $url );
@@ -175,7 +175,7 @@ sub read_policy {
175175# subroutine to create client. For VIP query, we expect
176176# hostName to be MEDIA_SERVER, OS and hardware to be VMWare.
177177sub add_clients {
178- my $policy_name = " veritas_policy1 " ;
178+ my $policy_name = " vmware_test_policy " ;
179179 my $url = " $base_url /config/policies/$policy_name /clients/MEDIA_SERVER" ;
180180
181181 my $req = HTTP::Request-> new(PUT => $url );
@@ -201,7 +201,7 @@ sub add_clients {
201201
202202# subroutine to add backupSelections to a policy
203203sub add_backupselections {
204- my $policy_name = " veritas_policy1 " ;
204+ my $policy_name = " vmware_test_policy " ;
205205 my $url = " $base_url /config/policies/$policy_name /backupselections" ;
206206
207207 my $req = HTTP::Request-> new(PUT => $url );
@@ -227,7 +227,7 @@ sub add_backupselections {
227227
228228# subroutine to add schedule to a policy
229229sub add_schedule {
230- my $policy_name = " veritas_policy1 " ;
230+ my $policy_name = " vmware_test_policy " ;
231231 my $schedule_name = " schedule1" ;
232232 my $url = " $base_url /config/policies/$policy_name /schedules/$schedule_name " ;
233233
@@ -264,7 +264,7 @@ sub add_schedule {
264264
265265# subroutine to delete client from a policy
266266sub delete_client {
267- my $policy_name = " veritas_policy1 " ;
267+ my $policy_name = " vmware_test_policy " ;
268268 my $url = " $base_url /config/policies/$policy_name /clients/MEDIA_SERVER" ;
269269
270270 my $req = HTTP::Request-> new(DELETE => $url );
@@ -286,7 +286,7 @@ sub delete_client {
286286
287287# subroutine to delete schedule from a policy
288288sub delete_schedule {
289- my $policy_name = " veritas_policy1 " ;
289+ my $policy_name = " vmware_test_policy " ;
290290 my $schedule_name = " schedule1" ;
291291 my $url = " $base_url /config/policies/$policy_name /schedules/$schedule_name " ;
292292
@@ -310,7 +310,7 @@ sub delete_schedule {
310310# subroutine to delete policy
311311sub delete_policy {
312312
313- my $policy_name = " veritas_policy1 " ;
313+ my $policy_name = " vmware_test_policy " ;
314314 my $url = " $base_url /config/policies/$policy_name " ;
315315
316316 my $req = HTTP::Request-> new(DELETE => $url );
0 commit comments