def get_hive_model(): model = EXP_MODEL(sw='hive', fv='2.2.0', bvs=["2.3.0"], pv="2.3.0", cv="2.2.0", dn='ApacheHive') model.previous_version = "2.1.0" return model
def get_bug_process_merge_stub(): model = EXP_MODEL(sw='hive', fv='2.2.0', bvs=["2.3.1"], pv="2.3.0", cv="2.2.0", dn='ApacheHive') model.previous_version = "2.1.0" return model
def get_derby_model(): model = EXP_MODEL(sw='derby', fv='10.13.1.1', bvs=['10.14.1.0'], pv='10.12.1.1', cv='10.13.1.1', dn='ApacheDerby') model.previous_version = "10.12.1.1" return model
def get_poi_model(): model = EXP_MODEL(sw='poi', fv='3.17', bvs=['4.0.0-SNAPSHOT'], pv='3.16', cv='3.17-beta1', dn='ApachePoi') model.previous_version = "3.16" return model
def get_pdt_prs_merge_stub(): model = EXP_MODEL(sw='velocity', fv='1.6', bvs=None, pv=None, cv=None, dn='ApacheVelocity') return model
def get_derby_bug_adjust_model(): model = EXP_MODEL(sw='derby', fv='10.9', bvs=['10.8.2.2', '10.8.3.0'], pv='10.8', cv='10.9', dn='ApacheDerby') return model
def get_model_dictionary(exp_num=1): """exp_test.pyにテスト書いた""" version_datas = get_exp_versions(exp_num) model_dictionary = {} for version_data in version_datas: models = [] for version in version_data['versions']: model = EXP_MODEL(sw=version_data["sw"], fv=version["v"], bvs=version["bugv"], pv=version["diffv"][0], cv=version["diffv"][1], dn=version_data["dirname"]) prev = version['prev'] if 'prev' in version.keys() else '' model.set_previous_version(prev) models.append(model) model_dictionary[version_data["sw"]] = models return model_dictionary