Skip to content

Commit

Permalink
It is 2017! Postpone expiration to 2025
Browse files Browse the repository at this point in the history
Signed-off-by: Prajakta Purohit <[email protected]>
  • Loading branch information
PrajaktaPurohit committed Dec 29, 2017
1 parent 4e865d3 commit 1993fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions oc-chef-pedant/spec/api/keys/client_keys_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def rand_id
context "when a client's default key has an expiration date" do
before(:each) do
delete_client_key(org_name, client['name'], "default")
add_client_key(org_name, client['name'], :key, "default", expires: "2017-12-24T21:00:00Z").should look_like(status: 201)
add_client_key(org_name, client['name'], :key, "default", expires: "2025-03-24T21:00:00Z").should look_like(status: 201)
end

context "and is updated via a PUT to /organizations/:org/clients/:client" do
Expand All @@ -247,7 +247,7 @@ def rand_id

context "when a client key has an expiration date and isn't expired" do
before(:each) do
add_client_key(org_name, client['name'], :key, key_name, expires: "2017-12-24T21:00:00Z").should look_like(status: 201)
add_client_key(org_name, client['name'], :key, key_name, expires: "2025-03-24T21:00:00Z").should look_like(status: 201)
end

it "should authenticate against the key" do
Expand Down
4 changes: 2 additions & 2 deletions oc-chef-pedant/spec/api/keys/user_keys_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def rand_id

context "when a user key has an expiration date and isn't expired" do
before(:each) do
add_user_key(user['name'], :key, key_name, expires: "2017-12-24T21:00:00Z").should look_like(status: 201)
add_user_key(user['name'], :key, key_name, expires: "2025-03-24T21:00:00Z").should look_like(status: 201)
end

after(:each) do
Expand All @@ -231,7 +231,7 @@ def rand_id
context "when a user's default key has an expiration date" do
before(:each) do
delete_user_key(user['name'], "default")
add_user_key(user['name'], :key, "default", expires: "2017-12-24T21:00:00Z").should look_like(status: 201)
add_user_key(user['name'], :key, "default", expires: "2025-03-24T21:00:00Z").should look_like(status: 201)
end

context "and is updated via a PUT to /users/:user" do
Expand Down

0 comments on commit 1993fb7

Please sign in to comment.