Commit 2db91879 authored by Daniele Venzano's avatar Daniele Venzano

Cleanup predefined application testing

parent 5d03a4d0
......@@ -14,22 +14,15 @@
# limitations under the License.
from zoe_lib.applications import app_validate
from zoe_lib.predefined_apps import hdfs_app
from zoe_lib.predefined_apps import spark_jupyter_notebook_app
from zoe_lib.predefined_apps import spark_submit_app
from zoe_lib.applications import predefined_app_list, predefined_app_generate
def test_from_dict(application_dict):
app_validate(application_dict)
def test_predefined_spark():
app = spark_jupyter_notebook_app("test", 4, 3, 4, 4, 3, 'spark-master', 'spark-worker', 'ipython')
app_validate(app)
app = spark_submit_app("test", 4, 3, 4, 4, 'spark-master', 'spark-worker', 'spark-submit', '--test')
def test_from_dict():
app = predefined_app_generate('spark-submit')
assert isinstance(app, dict)
app_validate(app)
def test_predefined_hadoop():
app = hdfs_app("test", 'namenode-image', 3, 'datanode-image')
app_validate(app)
def test_predefined():
app_list = predefined_app_list()
assert isinstance(app_list, list)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment