Beispiel #1
0
 def _update_snappy_in_depot(self):
     '''
     python voltron20.py depot -l="/cbdepot" update --package_name="snappy" -ver="1.0.5" 
     -p="ubuntu-12.04" -sd="/tmp/snappy/opt/couchbase" -md="/home/suhail/workspace/temp/manifest-files"        '''
     sd = SoftwareDepot(DIR_DEPOT)
     sd.update(SNAPPY_PKG_NAME, SNAPPY_VERSION, SNAPPY_PLATFORM,
               DIR_SNAPPY_STAGING, os.path.join(DIR_DEPOT_TEMP))
Beispiel #2
0
 def _list_packages(self):
     sd = SoftwareDepot(DIR_DEPOT)
     sd.list()
Beispiel #3
0
 def _delete_snappy_from_depot(self):
     '''
      python voltron20.py depot -l="/cbdepot" delete --package_name="snappy" -ver="1.0.5" -p="ubuntu-12.04"
     '''
     sd = SoftwareDepot(DIR_DEPOT)
     sd.delete(SNAPPY_PKG_NAME, SNAPPY_VERSION, SNAPPY_PLATFORM)
Beispiel #4
0
 def test_depot_list(self):
     self._add_snappy_to_depot()
     sd = SoftwareDepot(DIR_DEPOT)
     lst = sd.list()
     assert len(lst) == 1
     assert SNAPPY_MANIFEST_FILENAME in lst
Beispiel #5
0
 def add_snappy_to_depot(self):
     sd = SoftwareDepot(DIR_DEPOT)
     sd.add(SNAPPY_PKG_NAME, SNAPPY_VERSION, SNAPPY_PLATFORM,
            DIR_SNAPPY_STAGING, os.path.join(DIR_DEPOT_TEMP))