-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from cloudinary/2.1.0-release
2.1.0 release
- Loading branch information
Showing
19 changed files
with
499 additions
and
139 deletions.
There are no files selected for viewing
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# File to be monitored | ||
LOGFILE=$1 | ||
|
||
# Processing payload entries from the log to produce tally | ||
grep -F '"flow":"payload"' $LOGFILE | \ | ||
awk ' | ||
BEGIN { | ||
# Explicitly initialize variables to 0 | ||
created = 0 | ||
overwritten = 0 | ||
existing = 0 | ||
failure = 0 | ||
} | ||
{ | ||
migrated = index($0, "\"status\":\"MIGRATED\"") | ||
if (migrated) { | ||
if (index($0, "\"existing\":true")) { | ||
existing++ | ||
} else if (index($0, "\"overwritten\":true")) { | ||
overwritten++ | ||
} else { | ||
created++ | ||
} | ||
} else { | ||
failure++ | ||
} | ||
} | ||
END { | ||
print "🟢 Created : ", created | ||
print "🟡 Overwritten : ", overwritten | ||
print "⚪️ Existing (skipped) : ", existing | ||
print "🔴 Failed : ", failure | ||
} | ||
' |
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,8 @@ | ||
#!/bin/bash | ||
|
||
# Log file to be scanned | ||
LOGFILE=$1 | ||
|
||
# Processing payload entries with status different from MIGRATED | ||
grep -F '"flow":"payload"' $LOGFILE | grep -F -v '"status":"MIGRATED"' | \ | ||
jq -r '(.summary.err | tostring)' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Things to know about | ||
|
||
## Layout | ||
|
||
### App Components | ||
All of the app components (and tests for them) are expected to be under the `lib` folder. | ||
|
||
This is important because tests are explicitly invoked from under the folder | ||
|
||
### App Tests | ||
jest test framework is used. Use `npm test` to run all tests (unit tests and end-to-end tests). | ||
|
||
Custom configuration is used - see the `scripts.test` in `package.json`. | ||
|
||
Test modules are maintained under the `test` folder. | ||
|
||
|
||
## End2End Tests | ||
End to end tests require to be executed in certain order (see the `test/jest.run-all-tests.js` file). | ||
|
||
- a temporary cloud is provisioned when running tests | ||
- if you want to use a different cloud (for debugging purposes, for example) - place `.env` file with Cloudinary credentials under the `test/end2end` folder | ||
* then the test migration operations will be performed against that cloud |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.