Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* JSON schema for policy-validation-report.json
* JSON schema for validation-report.json
*
* This file is written to the cloud assembly directory by aws-cdk-lib
* during synthesis and consumed by the CDK CLI's validate command.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Manifest.loadValidationReport', () => {
});

test('loads a valid report', () => {
const reportPath = path.join(tmpDir, 'policy-validation-report.json');
const reportPath = path.join(tmpDir, 'validation-report.json');
fs.writeFileSync(reportPath, JSON.stringify({
version: '1.0.0',
pluginReports: [{
Expand Down Expand Up @@ -46,7 +46,7 @@ describe('Manifest.loadValidationReport', () => {
});

test('loads a report with optional fields', () => {
const reportPath = path.join(tmpDir, 'policy-validation-report.json');
const reportPath = path.join(tmpDir, 'validation-report.json');
fs.writeFileSync(reportPath, JSON.stringify({
version: '1.0.0',
title: 'Validation Report',
Expand All @@ -67,7 +67,7 @@ describe('Manifest.loadValidationReport', () => {
});

test('throws on missing required fields', () => {
const reportPath = path.join(tmpDir, 'policy-validation-report.json');
const reportPath = path.join(tmpDir, 'validation-report.json');
fs.writeFileSync(reportPath, JSON.stringify({
title: 'Validation Report',
}));
Expand All @@ -76,7 +76,7 @@ describe('Manifest.loadValidationReport', () => {
});

test('throws on invalid conclusion value', () => {
const reportPath = path.join(tmpDir, 'policy-validation-report.json');
const reportPath = path.join(tmpDir, 'validation-report.json');
fs.writeFileSync(reportPath, JSON.stringify({
version: '1.0.0',
pluginReports: [{
Expand All @@ -90,7 +90,7 @@ describe('Manifest.loadValidationReport', () => {
});

test('throws on invalid severity value', () => {
const reportPath = path.join(tmpDir, 'policy-validation-report.json');
const reportPath = path.join(tmpDir, 'validation-report.json');
fs.writeFileSync(reportPath, JSON.stringify({
version: '1.0.0',
pluginReports: [{
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/toolkit-lib/lib/toolkit/toolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import { pLimit } from '../util/concurrency';
import { createIgnoreMatcher } from '../util/glob-matcher';
import { promiseWithResolvers } from '../util/promises';

const POLICY_VALIDATION_REPORT_FILE = 'policy-validation-report.json';
const POLICY_VALIDATION_REPORT_FILE = 'validation-report.json';

export interface ToolkitOptions {
/**
Expand Down
Loading