-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fargate-ecs-ephemeral-storage
- Loading branch information
Showing
119 changed files
with
5,221 additions
and
716 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { StackInspector } from '../vendored/assert'; | ||
import { formatFailure, matchSection } from './section'; | ||
|
||
export function findMappings(inspector: StackInspector, props: any = {}): { [key: string]: any }[] { | ||
const section: { [key: string] : {} } = inspector.value.Mappings; | ||
const result = matchSection(section, props); | ||
|
||
if (!result.match) { | ||
return []; | ||
} | ||
|
||
return result.matches; | ||
} | ||
|
||
export function hasMapping(inspector: StackInspector, props: any): string | void { | ||
const section: { [key: string]: {} } = inspector.value.Mappings; | ||
const result = matchSection(section, props); | ||
|
||
if (result.match) { | ||
return; | ||
} | ||
|
||
if (result.closestResult === undefined) { | ||
return 'No mappings found in the template'; | ||
} | ||
|
||
return [ | ||
`Template has ${result.analyzedCount} mappings, but none match as expected.`, | ||
formatFailure(result.closestResult), | ||
].join('\n'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { StackInspector } from '../vendored/assert'; | ||
import { formatFailure, matchSection } from './section'; | ||
|
||
export function findOutputs(inspector: StackInspector, props: any = {}): { [key: string]: any }[] { | ||
const section: { [key: string] : {} } = inspector.value.Outputs; | ||
const result = matchSection(section, props); | ||
|
||
if (!result.match) { | ||
return []; | ||
} | ||
|
||
return result.matches; | ||
} | ||
|
||
export function hasOutput(inspector: StackInspector, props: any): string | void { | ||
const section: { [key: string]: {} } = inspector.value.Outputs; | ||
const result = matchSection(section, props); | ||
|
||
if (result.match) { | ||
return; | ||
} | ||
|
||
if (result.closestResult === undefined) { | ||
return 'No outputs found in the template'; | ||
} | ||
|
||
return [ | ||
`Template has ${result.analyzedCount} outputs, but none match as expected.`, | ||
formatFailure(result.closestResult), | ||
].join('\n'); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.