@@ -97,36 +97,32 @@ def test_remove_origin(self):
9797 self .assertEqual (result .output , "Origin with path /example1 has been deleted\n " )
9898
9999 def test_edit_header (self ):
100- result = self .run_command (['cdn' , 'edit' , 'test.example.com' ,
101- '--origin=10.34.12.125' , '--header=www.test.com' ])
100+ result = self .run_command (['cdn' , 'edit' , 'test.example.com' , '--header=www.test.com' ])
102101 self .assert_no_fail (result )
103102 header_result = json .loads (result .output )
104103 self .assertEqual ('www.test.com' , header_result ['Header' ])
105104
106105 def test_edit_http_port (self ):
107- result = self .run_command (['cdn' , 'edit' , 'test.example.com' ,
108- '--origin=10.34.12.125' , '--http-port=83' ])
106+ result = self .run_command (['cdn' , 'edit' , 'test.example.com' , '--http-port=83' ])
109107 self .assert_no_fail (result )
110108 header_result = json .loads (result .output )
111109 self .assertEqual (83 , header_result ['Http Port' ])
112110
113111 def test_edit_respect_headers (self ):
114- result = self .run_command (['cdn' , 'edit' , 'test.example.com' ,
115- '--origin=10.34.12.125' , '--respect-headers=1' ])
112+ result = self .run_command (['cdn' , 'edit' , 'test.example.com' , '--respect-headers=1' ])
116113 self .assert_no_fail (result )
117114 header_result = json .loads (result .output )
118115 self .assertEqual (True , header_result ['Respect Headers' ])
119116
120117 def test_edit_cache (self ):
121- result = self .run_command (['cdn' , 'edit' , 'test.example.com' ,
122- '--origin=10.34.12.125' , '--cache' , 'include-specified' , '-- cache' , 'test' ])
118+ result = self .run_command (['cdn' , 'edit' , 'test.example.com' , '--cache' , 'include-specified' ,
119+ '--cache' , 'test' ])
123120 self .assert_no_fail (result )
124121 header_result = json .loads (result .output )
125122 self .assertEqual ('include: test' , header_result ['Cache key optimization' ])
126123
127124 def test_edit_cache_by_uniqueId (self ):
128- result = self .run_command (['cdn' , 'edit' , '9934111111111' ,
129- '--origin=10.34.12.125' , '--cache' , 'include-specified' , '--cache' , 'test' ])
125+ result = self .run_command (['cdn' , 'edit' , '9934111111111' , '--cache' , 'include-specified' , '--cache' , 'test' ])
130126 self .assert_no_fail (result )
131127 header_result = json .loads (result .output )
132128 self .assertEqual ('include: test' , header_result ['Cache key optimization' ])
0 commit comments