@Test public void should_report_environment_configuration_file_from_default_location() throws IOException { Configuration configuration = getConfiguration(); TakeKubernetesResourcesInformation takeKubernetesResourcesInformation = new TakeKubernetesResourcesInformation(); takeKubernetesResourcesInformation.sectionEvent = sectionEvent; takeKubernetesResourcesInformation.dependencyResolver = getDependencyResolverInstance(); takeKubernetesResourcesInformation.resourceLocator = getKubernetesResourceLocator(); takeKubernetesResourcesInformation.reportKubernetesConfiguration(new Start(getDefaultSession(configuration)), configuration, getReporterConfiguration()); verify(sectionEvent).fire(reportEventArgumentCaptor.capture()); final SectionEvent sectionEvent = reportEventArgumentCaptor.getValue(); final Report report = sectionEvent.getReport(); assertSectionEvent(sectionEvent, KUBERNETES_SECTION_NAME); final List<Report> subReports = report.getSubReports(); assertThatReport(subReports.get(0)) .hasName(CONFIGURATION) .hasNumberOfEntries(1) .hasEntriesContaining(new FileEntry(RELATIVE_PATH)); }
public void reportKubernetesConfiguration(@Observes Start start, Configuration configuration, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration) throws IOException { final ReportBuilder reportBuilder = Reporter.createReport(CONFIGURATION); Session session = start.getSession(); if (configuration != null) { reportBuilder.addEntries(getFilesForResourcesConfiguration(session, configuration, reporterConfiguration)); } Reporter.createReport(KUBERNETES_SECTION_NAME) .addReport(reportBuilder) .inSection(new KubernetesSection()).fire(sectionEvent); }
TakeKubernetesResourcesInformation { public void reportKubernetesConfiguration(@Observes Start start, Configuration configuration, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration) throws IOException { final ReportBuilder reportBuilder = Reporter.createReport(CONFIGURATION); Session session = start.getSession(); if (configuration != null) { reportBuilder.addEntries(getFilesForResourcesConfiguration(session, configuration, reporterConfiguration)); } Reporter.createReport(KUBERNETES_SECTION_NAME) .addReport(reportBuilder) .inSection(new KubernetesSection()).fire(sectionEvent); } }
TakeKubernetesResourcesInformation { public void reportKubernetesConfiguration(@Observes Start start, Configuration configuration, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration) throws IOException { final ReportBuilder reportBuilder = Reporter.createReport(CONFIGURATION); Session session = start.getSession(); if (configuration != null) { reportBuilder.addEntries(getFilesForResourcesConfiguration(session, configuration, reporterConfiguration)); } Reporter.createReport(KUBERNETES_SECTION_NAME) .addReport(reportBuilder) .inSection(new KubernetesSection()).fire(sectionEvent); }  }
TakeKubernetesResourcesInformation { public void reportKubernetesConfiguration(@Observes Start start, Configuration configuration, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration) throws IOException { final ReportBuilder reportBuilder = Reporter.createReport(CONFIGURATION); Session session = start.getSession(); if (configuration != null) { reportBuilder.addEntries(getFilesForResourcesConfiguration(session, configuration, reporterConfiguration)); } Reporter.createReport(KUBERNETES_SECTION_NAME) .addReport(reportBuilder) .inSection(new KubernetesSection()).fire(sectionEvent); }  void reportKubernetesConfiguration(@Observes Start start, Configuration configuration,
        org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration); void reportSessionStatus(@Observes AfterStart afterStart, KubernetesClient kubernetesClient); }
TakeKubernetesResourcesInformation { public void reportKubernetesConfiguration(@Observes Start start, Configuration configuration, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration) throws IOException { final ReportBuilder reportBuilder = Reporter.createReport(CONFIGURATION); Session session = start.getSession(); if (configuration != null) { reportBuilder.addEntries(getFilesForResourcesConfiguration(session, configuration, reporterConfiguration)); } Reporter.createReport(KUBERNETES_SECTION_NAME) .addReport(reportBuilder) .inSection(new KubernetesSection()).fire(sectionEvent); }  void reportKubernetesConfiguration(@Observes Start start, Configuration configuration,
        org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration); void reportSessionStatus(@Observes AfterStart afterStart, KubernetesClient kubernetesClient);  }