예제 #1
0
파일: ali.py 프로젝트: bellamusic/cloudsdk
 def test_list_sg(self):
     cxt = AliContext(KEY_ID,
                      KEY_SECRET,
                      host='ecs.aliyuncs.com',
                      port=443,
                      region='cn-shenzhen')
     sg = AliSecurityGroupSupport(cxt)
     ret = sg.list_security_group()
     print(ret)
     self.assertIsNotNone(ret)
예제 #2
0
파일: ali.py 프로젝트: bellamusic/cloudsdk
 def test_create_sg(self):
     cxt = AliContext(KEY_ID,
                      KEY_SECRET,
                      host='ecs.aliyuncs.com',
                      port=443,
                      region='cn-shenzhen')
     sg = AliSecurityGroupSupport(cxt)
     ret = sg.create_security_group(name='wantest', description='wanwan')
     print(ret)
     self.assertIsNotNone(ret)
예제 #3
0
파일: ali.py 프로젝트: bellamusic/cloudsdk
 def test_create_sg(self):
     cxt = AliContext(KEY_ID, KEY_SECRET, host='ecs.aliyuncs.com', port=443, region='cn-shenzhen')
     sg = AliSecurityGroupSupport(cxt)
     ret = sg.create_security_group(name='wantest', description='wanwan')
     print(ret)
     self.assertIsNotNone(ret)
예제 #4
0
파일: ali.py 프로젝트: bellamusic/cloudsdk
 def test_list_sg(self):
     cxt = AliContext(KEY_ID, KEY_SECRET, host='ecs.aliyuncs.com', port=443, region='cn-shenzhen')
     sg = AliSecurityGroupSupport(cxt)
     ret = sg.list_security_group()
     print(ret)
     self.assertIsNotNone(ret)