File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ requests==2.24.0
2020eiffellib == 1.1.0
2121packageurl-python == 0.9.1
2222etos_lib == 1.0.0
23+ jsontas == 1.3.0
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ install_requires =
2929 requests ==2.24.0
3030 etos_lib ==1.0.0
3131 packageurl-python ==0.9.1
32+ jsontas ==1.3.0
3233
3334[options.package_data]
3435* = *.sh
Original file line number Diff line number Diff line change 1717import os
1818import logging
1919from packageurl import PackageURL
20+ from collections import OrderedDict
21+ from jsontas .jsontas import JsonTas
2022
2123
2224class Iut : # pylint: disable=too-few-public-methods
@@ -37,6 +39,8 @@ def __init__(self, product):
3739 for key , value in product .items ():
3840 setattr (self , key , value )
3941 self ._product_dict = product
42+ self .jsontas = JsonTas ()
43+ self .jsontas .dataset .add ("iut" , self ._product_dict )
4044 self .prepare ()
4145
4246 def prepare (self ):
@@ -48,7 +52,9 @@ def prepare(self):
4852 self .logger .error ("Step %r does not exist. Available %r" , step , self .steps )
4953 continue
5054 self .logger .info ("Executing step %r" , step )
51- step_method (definition )
55+ definition = OrderedDict (** definition )
56+ step_result = self .jsontas .run (json_data = definition )
57+ step_method (step_result )
5258
5359 @staticmethod
5460 def load_environment (environment ):
You can’t perform that action at this time.
0 commit comments