cookbooks/aws-parallelcluster-platform/spec/unit/recipes/log_rotation_spec.rb [92:121]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          parallelcluster_clustermgtd_log_rotation
          parallelcluster_clusterstatusmgtd_log_rotation
          parallelcluster_slurm_fleet_status_manager_log_rotation
          parallelcluster_slurm_resume_log_rotation
          parallelcluster_slurm_suspend_log_rotation
          parallelcluster_slurmctld_log_rotation
          parallelcluster_slurmdbd_log_rotation
          parallelcluster_compute_console_output_log_rotation
          parallelcluster_clustermgtd_events_log_rotation
          parallelcluster_slurm_resume_events_log_rotation
        )

        it 'creates the correct logrotate config files' do
          expected_config_files.each do |config_file|
            output_file = log_rotation_path + config_file
            template_file = 'log_rotation/' + config_file + '.erb'
            is_expected.to create_template(output_file).with(
              source: template_file,
              mode:  '0644'
            )
          end
        end

        it 'does not create unexpected logrotate config files' do
          unexpected_config_files.each do |config_file|
            output_file = log_rotation_path + config_file
            is_expected.to_not create_template(output_file)
          end
        end
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cookbooks/aws-parallelcluster-platform/spec/unit/recipes/log_rotation_spec.rb [150:179]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          parallelcluster_clustermgtd_log_rotation
          parallelcluster_clusterstatusmgtd_log_rotation
          parallelcluster_slurm_fleet_status_manager_log_rotation
          parallelcluster_slurm_resume_log_rotation
          parallelcluster_slurm_suspend_log_rotation
          parallelcluster_slurmctld_log_rotation
          parallelcluster_slurmdbd_log_rotation
          parallelcluster_compute_console_output_log_rotation
          parallelcluster_clustermgtd_events_log_rotation
          parallelcluster_slurm_resume_events_log_rotation
        )

        it 'creates the correct logrotate config files' do
          expected_config_files.each do |config_file|
            output_file = log_rotation_path + config_file
            template_file = 'log_rotation/' + config_file + '.erb'
            is_expected.to create_template(output_file).with(
              source: template_file,
              mode:  '0644'
            )
          end
        end

        it 'does not create unexpected logrotate config files' do
          unexpected_config_files.each do |config_file|
            output_file = log_rotation_path + config_file
            is_expected.to_not create_template(output_file)
          end
        end
      end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



