Skip to content

Commit

Permalink
test that timestamp appears before username
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai committed Jan 10, 2024
1 parent 5253ee1 commit 1be3932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions akami.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rake", "~> 13.0"
s.add_development_dependency "rspec", "~> 3.12"
s.add_development_dependency "timecop", "~> 0.5"
s.add_development_dependency "debug"

s.metadata = { "rubygems_mfa_required" => "true" }

Expand Down
4 changes: 4 additions & 0 deletions spec/akami/wsse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@
it "contains the username and password" do
expect(wsse.to_xml).to include("username", "password")
end

it "puts timestamp before username" do
expect(wsse.to_xml).to match(/<wsu:Timestamp.*<wsse:UsernameToken/i)
end
end
end

Expand Down

0 comments on commit 1be3932

Please sign in to comment.