-
Notifications
You must be signed in to change notification settings - Fork 63
fix: Add cacheing CMM examples #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 17 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
d284991
fix: Add cacheing CMM examples
6ae7f7f
Merge branch 'master' into cacheing-cmm-examples
seebees 9c60c0d
update
seebees 83fcc3c
both files
seebees 92f848c
Merge branch 'master' into cacheing-cmm-examples
seebees 6c143cc
update names
seebees 56b20a0
update to https to test
seebees 406d50c
lint
seebees 9cd07d1
test
seebees 724abf8
add no-sandbox
seebees 053ba74
only run integration once
seebees 2eb0f1c
Merge branch 'master' into cacheing-cmm-examples
seebees f2de442
udpates
seebees a6ad904
Merge branch 'master' into cacheing-cmm-examples
seebees 4d85488
lint
seebees b677790
better comments
seebees af36ce3
Merge branch 'master' into cacheing-cmm-examples
seebees d2b91b2
update variable name to make docs happy
seebees d22b87d
update language re examples
seebees ebf2f10
Merge branch 'master' into cacheing-cmm-examples
seebees ee47a20
ciphertest -> result doc changes
seebees 8e5fad2
Update modules/example-browser/src/caching_materials_manager.ts
seebees 12117e0
Update modules/example-browser/src/caching_materials_manager.ts
seebees 14bc1cb
Update modules/client-browser/Readme.md
seebees 1e1b542
Update modules/client-node/Readme.md
seebees 96e72b8
Update modules/example-browser/html/caching_materials_manager.html
seebees a0b9997
Update modules/example-browser/src/aes_simple.ts
seebees d5f48d6
Update modules/example-browser/src/caching_materials_manager.ts
seebees 13f083c
Update modules/example-browser/src/caching_materials_manager.ts
seebees b4a243e
Update modules/example-browser/src/caching_materials_manager.ts
seebees 51f6404
Update modules/example-browser/src/multi_keyring.ts
seebees 7cd9b68
Update modules/example-browser/src/caching_materials_manager.ts
seebees 16fea74
Update modules/example-browser/src/caching_materials_manager.ts
seebees 604b758
Update modules/example-browser/src/caching_materials_manager.ts
seebees 75ea690
Update modules/example-browser/src/caching_materials_manager.ts
seebees 9bf3f5d
Update modules/example-browser/src/caching_materials_manager.ts
seebees 502c989
Update modules/example-browser/src/caching_materials_manager.ts
seebees e80d86c
Update modules/example-browser/src/caching_materials_manager.ts
seebees 856c902
Update modules/example-browser/src/caching_materials_manager.ts
seebees 8402ae6
Update modules/example-browser/src/caching_materials_manager.ts
seebees d443aef
Update modules/example-browser/src/caching_materials_manager.ts
seebees b84d9fb
Update modules/example-browser/src/caching_materials_manager.ts
seebees c6dcf32
Update modules/example-browser/src/caching_materials_manager.ts
seebees f53b388
Update modules/example-browser/src/caching_materials_manager.ts
seebees cb23a77
Update modules/example-browser/src/caching_materials_manager.ts
seebees 94890ab
Update modules/example-browser/src/caching_materials_manager.ts
seebees e7cee67
Update modules/example-browser/src/caching_materials_manager.ts
seebees 6e5f078
Update modules/example-browser/src/caching_materials_manager.ts
seebees 185ec65
Update modules/example-browser/src/caching_materials_manager.ts
seebees cb0344d
Update modules/example-browser/src/caching_materials_manager.ts
seebees f8796d3
Update modules/example-browser/src/caching_materials_manager.ts
seebees 010d1fa
Update modules/example-browser/src/caching_materials_manager.ts
seebees d7911d7
reformat lines
seebees 2b8ccf1
update names to caching_cmm
seebees 02c19e1
Merge branch 'master' into cacheing-cmm-examples
seebees e316d35
Update modules/example-browser/src/caching_cmm.ts
seebees 0d18a07
Update modules/example-browser/src/caching_cmm.ts
seebees cb22402
Update modules/example-browser/src/caching_cmm.ts
seebees 556cf1c
Update modules/client-browser/Readme.md
seebees ab9dfbc
Update modules/example-browser/src/caching_cmm.ts
seebees 43a5bae
Update modules/example-browser/src/caching_cmm.ts
seebees 4ee25c0
Update modules/example-node/src/caching_cmm.ts
seebees 57c3687
Update modules/example-browser/src/caching_cmm.ts
seebees abe1aec
Update modules/example-browser/src/caching_cmm.ts
seebees 720087a
Update modules/example-browser/src/caching_cmm.ts
seebees 3015bb9
Update modules/example-browser/src/caching_cmm.ts
seebees 7a6620f
update from suggestions
seebees 3a4561f
comment from browser -> node
seebees File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
15 changes: 15 additions & 0 deletions
15
modules/example-browser/html/caching_materials_manager.html
This file contains hidden or 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,15 @@ | ||
<!DOCTYPE> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Client Side Caching Materials Manager Encryption Test</title> | ||
<script src="../build/caching_materials_manager_bundle.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
// This is exported via the webpack library setting | ||
test.testCachingMaterialsManagerExample() | ||
</script> | ||
</body> | ||
</html> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,92 @@ | ||
const webpack = require('webpack') | ||
const {defaultProvider} = require('@aws-sdk/credential-provider-node') | ||
|
||
// Karma configuration | ||
process.env.CHROME_BIN = require('puppeteer').executablePath() | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
basePath: '', | ||
frameworks: ['mocha', 'chai'], | ||
files: [ | ||
'test/**/*.ts', | ||
// 'src/**/*.ts' | ||
], | ||
preprocessors: { | ||
// 'src/**/*.ts': ['credentials'], | ||
'test/**/*.ts': ['webpack', 'credentials'] | ||
}, | ||
webpack: { | ||
resolve: { | ||
extensions: [ '.ts', '.js' ] | ||
}, | ||
mode: 'development', | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.tsx?$/, | ||
use: [ | ||
{ | ||
loader: 'ts-loader', | ||
options: { | ||
configFile: 'tsconfig.module.json', | ||
compilerOptions: { | ||
rootDir: './' | ||
} | ||
} | ||
} | ||
], | ||
exclude: /node_modules/, | ||
}, | ||
{ | ||
test: /\.ts$/, | ||
exclude: [ /\/test\// ], | ||
enforce: 'post', | ||
use: { | ||
loader: 'istanbul-instrumenter-loader', | ||
options: { esModules: true } | ||
} | ||
} | ||
] | ||
}, | ||
stats: { | ||
colors: true, | ||
modules: true, | ||
reasons: true, | ||
errorDetails: true | ||
}, | ||
devtool: 'inline-source-map', | ||
node: { | ||
fs: 'empty' | ||
}, | ||
}, | ||
coverageIstanbulReporter: { | ||
reports: [ 'json' ], | ||
dir: '.karma_output', | ||
fixWebpackSourcePaths: true | ||
}, | ||
plugins: [ | ||
'@aws-sdk/karma-credential-loader', | ||
'karma-chrome-launcher', | ||
'karma-mocha', | ||
'karma-chai', | ||
'karma-webpack', | ||
'karma-coverage-istanbul-reporter' | ||
], | ||
reporters: ['progress', 'coverage-istanbul'], | ||
port: 9876, | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
autoWatch: false, | ||
browsers: ['ChromeHeadlessDisableCors'], | ||
customLaunchers: { | ||
ChromeHeadlessDisableCors: { | ||
base: 'ChromeHeadless', | ||
flags: ['--disable-web-security'] | ||
} | ||
}, | ||
singleRun: true, | ||
concurrency: Infinity, | ||
exclude: ['**/*.d.ts'] | ||
}) | ||
} |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.