-
Notifications
You must be signed in to change notification settings - Fork 10
Cred mgr test #60
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
Open
nboard
wants to merge
20
commits into
master
Choose a base branch
from
cred-mgr-test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Cred mgr test #60
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
eb840eb
Credentials db: update to use newmalloc for memory management.
gbeeley d2f4c30
Credentials db: memory management switch to newmalloc, continued.
gbeeley 8ed298d
Merge branch 'master' into credentials-mgr
gbeeley beb717e
Added tests for IV, salt, and key random generation. RSA key pair gen…
7160b07
Added tests for IV, salt, and key random generation. RSA key pair gen…
c7e22c0
Merge branch 'cred-mgr-test' of https://github.com/LightSys/centralli…
ffba040
Merge branch 'cred-mgr-test' of https://github.com/LightSys/centralli…
nboard 540ed9f
Merge branch 'cred-mgr-test' of https://github.com/LightSys/centralli…
nboard 0334927
Added tests for encrypting and decrypting with RSA and AES, as well a…
nboard cfde138
Added tests for database auth and user tables. Updated typos in Crypt…
nboard 507e233
Added error for updates and deletes that do not affect any rows
nboard 6e8dd74
added tests for user resource, and updated tests to expect updates an…
nboard 7d6d176
Updated cred DB tests to test new Auth insert and delete, as well as …
nboard e563de2
updated cred DB to allow auth to perform deletes and updates by prima…
nboard 063aedf
Removed salt from auth table. Updated auth tables's delete all and re…
nboard 3ea522b
updated tests to account for salt no longer being in auth table. Adde…
nboard a23ff12
Made Auth table's PK autoinc. made auth retrieve function assign the …
nboard f79d064
Added delete all test for resc table. Updated small errors in tests, …
nboard 2d6634a
Changed some poor uses of strcmp to memcmp. Changed the filepath for …
nboard 42d2c3e
replaced a custom function in crypto test 5 with bzero
nboard 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,20 @@ | ||
| #include <assert.h> | ||
| #include <stdio.h> | ||
| #include "cxss/credentials_db.h" | ||
|
|
||
| long long | ||
| test(char** name) | ||
| { | ||
| *name = "CXSS Cred DB 00: Basic Init"; | ||
|
|
||
|
|
||
| /** Basic test of init and release */ | ||
| char * PATH = "/home/devel/test.db"; | ||
| CXSS_DB_Context_t dbCon = cxssCredentialsDatabaseInit(PATH); | ||
|
|
||
| assert(dbCon != NULL); | ||
|
|
||
| cxssCredentialsDatabaseClose(dbCon); | ||
|
|
||
| return 0; | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be sure to not have an install-dependent path in the tests. There may not always be a user "devel". You may want to use a relative path in the current folder instead of an absolute path.