pip install pytest
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
from glob import iglob | |
from pathlib import PurePath | |
from os import mkdir, makedirs | |
from os.path import isfile, isdir | |
from typing import Any, Dict, Optional, List | |
from tqdm import tqdm | |
from boto3.session import Session as AWSSession | |
BUCKET_NAME: str = '' |
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
'use strict'; | |
module.exports = function allowedPluginsPolicy(policy, service, allowedPlugins) { | |
let failed = false; | |
const pluginNames = service.compiled['serverless-state.json'].service.plugins || []; | |
for (const [i, plugin] of pluginNames.entries()) { | |
if (allowedPlugins.indexOf(plugin) == -1) { | |
policy.fail( | |
`Plugin name "${plugin}" not in list of permitted plugins: ${JSON.stringify(allowedPlugins)}` | |
); |
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
${jsonencode([ | |
{ | |
"name": "Build", | |
"category": "Build", | |
"owner": "AWS", | |
"provider": "CodeBuild", | |
"input_artifacts": ["SourceArtifact"], | |
"output_artifacts": ["BuildArtifact"], | |
"version": "1", | |
"configuration": { |
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
!(function () { | |
function e(t, n, r) { | |
function i(a, l) { | |
if (!n[a]) { | |
if (!t[a]) { | |
var d = "function" == typeof require && require; | |
if (!l && d) return d(a, !0); | |
if (o) return o(a, !0); | |
var s = new Error("Cannot find module '" + a + "'"); | |
throw ((s.code = "MODULE_NOT_FOUND"), s); |
NewerOlder