Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge 1c34842 into 2c8b642
Browse files Browse the repository at this point in the history
  • Loading branch information
zamicol committed Nov 13, 2019
2 parents 2c8b642 + 1c34842 commit 075526d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jose-util/jose-util
jose-util.t.err
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ script:
- go test -v -covermode=count -coverprofile=jwt/profile.cov ./jwt
- go test -v ./json # no coverage for forked encoding/json package
- golangci-lint run
- cd jose-util && go build && PATH=$PWD:$PATH cram -v jose-util.t
- cd jose-util && go build && PATH=$PWD:$PATH cram -v jose-util.t # cram tests jose-util
- cd ..

after_success:
Expand Down
8 changes: 8 additions & 0 deletions jose-util/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ Keys are specified via the `--key` flag. Supported key types are naked RSA/EC
keys and X.509 certificates with embedded RSA/EC keys. Keys must be in PEM,
DER or JWK formats.


## Testing

`cram` is used for testing. This can be installed with pip or `sudo apt install
python-cram` See the travis file for how this is used in testing. For example,
`go build && PATH=$PWD:$PATH cram -v jose-util.t`


## Examples

### Generate key pair
Expand Down
3 changes: 3 additions & 0 deletions jose-util/jose-util.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
This is a cram test file. See the travis file for how this is used in testing.
For example, `go build && PATH=$PWD:$PATH cram -v jose-util.t`

Set up static test keys.

$ cat > rsa.pub <<EOF
Expand Down

0 comments on commit 075526d

Please sign in to comment.