@@ -365,97 +365,6 @@ def test_present_base_host_role_overrides(conn, module_args):
365365    LOG .info (str (e .value .cloudera_manager ))
366366
367367
368- def  test_present_basic_cluster (conn , module_args ):
369-     args  =  """ 
370-     name: Basic_Cluster 
371-     cluster_version: "7.1.9-1.cdh7.1.9.p0.44702451" 
372-     type: BASE_CLUSTER 
373-     state: present 
374-     services: 
375-       - name: core-settings-0 
376-         type: CORE_SETTINGS 
377-         display_name: CORE_SETTINGS_TEST 
378-       - name: zookeeper-0 
379-         type: ZOOKEEPER 
380-         display_name: ZK_TEST 
381-         config: 
382-           zookeeper_datadir_autocreate: yes 
383-       - name: hdfs-0 
384-         type: HDFS 
385-         display_name: HDFS_TEST 
386-         config: 
387-             zookeeper_service: zookeeper-0 
388-             core_connector: core-settings-0 
389-         role_groups: 
390-           - type: DATANODE 
391-             config: 
392-               dfs_data_dir_list: /dfs/dn 
393-           - type: NAMENODE 
394-             config: 
395-               dfs_name_dir_list: /dfs/nn 
396-           - type: SECONDARYNAMENODE 
397-             config: 
398-               fs_checkpoint_dir_list: /dfs/snn 
399-       - name: yarn-0 
400-         type: YARN 
401-         display_name: YARN_TEST 
402-         config: 
403-           hdfs_service: hdfs-0 
404-           zookeeper_service: zookeeper-0 
405-         role_groups: 
406-           - type: RESOURCEMANAGER 
407-             config: 
408-               yarn_scheduler_maximum_allocation_mb: 4096 
409-               yarn_scheduler_maximum_allocation_vcores: 4 
410-           - type: NODEMANAGER 
411-             config: 
412-               yarn_nodemanager_resource_memory_mb: 4096 
413-               yarn_nodemanager_resource_cpu_vcores: 4 
414-               yarn_nodemanager_local_dirs:  /tmp/nm 
415-               yarn_nodemanager_log_dirs: /var/log/nm 
416-           - type: GATEWAY 
417-             config: 
418-               mapred_submit_replication: 3 
419-               mapred_reduce_tasks: 6 
420-     host_templates: 
421-       - name: Master1 
422-         role_groups: 
423-           - service: HDFS 
424-             type: NAMENODE 
425-           - service: HDFS 
426-             type: SECONDARYNAMENODE 
427-           - service: YARN 
428-             type: RESOURCEMANAGER 
429-           - service: YARN 
430-             type: JOBHISTORY 
431-       - name: Worker 
432-         role_groups: 
433-           - service: HDFS 
434-             type: DATANODE 
435-           - service: YARN 
436-             type: NODEMANAGER 
437-           - service: ZOOKEEPER 
438-             type: SERVER 
439-     parcels: 
440-       CDH: "7.1.9-1.cdh7.1.9.p0.44702451" 
441-     hosts: 
442-       - name: test10-worker-free-01.cldr.internal 
443-         host_template: Master1 
444-       - name: test10-worker-free-02.cldr.internal 
445-         host_template: Worker 
446-       - name: test10-worker-free-03.cldr.internal 
447-         host_template: Worker 
448-     """ 
449-     conn .update (yaml .safe_load (args ))
450-     module_args (conn )
451- 
452-     with  pytest .raises (AnsibleExitJson ) as  e :
453-         cluster .main ()
454- 
455-     LOG .info (str (e .value .cloudera_manager ))
456- 
457- 
458- @pytest .mark .skip (reason = "Not yet implemented" ) 
459368def  test_started_base (conn , module_args ):
460369    conn .update (
461370        name = "PVC-Base" ,
@@ -470,7 +379,6 @@ def test_started_base(conn, module_args):
470379    LOG .info (str (e .value .cloudera_manager ))
471380
472381
473- @pytest .mark .skip (reason = "Not yet implemented" ) 
474382def  test_restarted_base (conn , module_args ):
475383    conn .update (
476384        name = "PVC-Base" ,
@@ -485,24 +393,20 @@ def test_restarted_base(conn, module_args):
485393    LOG .info (str (e .value .cloudera_manager ))
486394
487395
488- @pytest .mark .skip (reason = "Not yet implemented" ) 
489396def  test_stopped_base (conn , module_args ):
490397    conn .update (
491398        name = "PVC-Base" ,
492399        cluster_version = "7.1.9" ,  # "1.5.1-b626.p0.42068229", 
493-         # type="COMPUTE_CLUSTER", 
494400        state = "stopped" ,
495401    )
496402    module_args (conn )
497403
498404    with  pytest .raises (AnsibleExitJson ) as  e :
499405        cluster .main ()
500406
501-     # LOG.info(str(e.value)) 
502407    LOG .info (str (e .value .cloudera_manager ))
503408
504409
505- @pytest .mark .skip (reason = "Not yet implemented" ) 
506410def  test_absent_base (conn , module_args ):
507411    conn .update (
508412        name = "Example_Base" ,
@@ -516,78 +420,6 @@ def test_absent_base(conn, module_args):
516420    LOG .info (str (e .value .cloudera_manager ))
517421
518422
519- def  test_present_compute_minimum (conn , module_args ):
520-     conn .update (
521-         name = "Example_Compute" ,
522-         cluster_version = "7.1.9" ,
523-         contexts = ["SDX" ],
524-         state = "present" ,
525-     )
526-     module_args (conn )
527- 
528-     with  pytest .raises (AnsibleExitJson ) as  e :
529-         cluster .main ()
530- 
531-     LOG .info (str (e .value .cloudera_manager ))
532- 
533- 
534- @pytest .mark .skip (reason = "Not yet implemented" ) 
535- def  test_started_compute_minimum (conn , module_args ):
536-     conn .update (
537-         name = "Example_Compute" ,
538-         cluster_version = "7.1.9" ,
539-         contexts = ["SDX" ],
540-         state = "started" ,
541-     )
542-     module_args (conn )
543- 
544-     with  pytest .raises (AnsibleExitJson ) as  e :
545-         cluster .main ()
546- 
547-     LOG .info (str (e .value .cloudera_manager ))
548- 
549- 
550- def  test_absent_compute (conn , module_args ):
551-     conn .update (
552-         name = "Example_Compute" ,
553-         state = "absent" ,
554-     )
555-     module_args (conn )
556- 
557-     with  pytest .raises (AnsibleExitJson ) as  e :
558-         cluster .main ()
559- 
560-     LOG .info (str (e .value .cloudera_manager ))
561- 
562- 
563- def  test_present_experience_minimum (conn , module_args ):
564-     conn .update (
565-         name = "Example_Experience" ,
566-         cluster_version = "1.5.3" ,
567-         type = "EXPERIENCE_CLUSTER" ,
568-         state = "present" ,
569-     )
570-     module_args (conn )
571- 
572-     with  pytest .raises (AnsibleExitJson ) as  e :
573-         cluster .main ()
574- 
575-     LOG .info (str (e .value .cloudera_manager ))
576- 
577- 
578- def  test_absent_experience (conn , module_args ):
579-     conn .update (
580-         name = "Example_Experience" ,
581-         state = "absent" ,
582-     )
583-     module_args (conn )
584- 
585-     with  pytest .raises (AnsibleExitJson ) as  e :
586-         cluster .main ()
587- 
588-     LOG .info (str (e .value .cloudera_manager ))
589- 
590- 
591423def  test_pytest_cluster_with_template (module_args ):
592424    module_args (
593425        {
0 commit comments