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
| @site_admin | |
| Feature: Domain Administration by Site Administrator | |
| As site administrator | |
| I want to be able to view and pre-register domain names for my institution | |
| So the approval process of new submitted metadata can go faster | |
| Background: | |
| Given I am logged in as site administrator of "MyOrganization" | |
| And there is an organization named "OtherOrganization" |
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
| function isAsset(url) { return(url.match(/(\.css$|\.js$)/i));} | |
| function Response(request) { | |
| try { | |
| if (isAsset(request.url)) { | |
| var actions = wApp.router.pointRequest(request.verb + " " + request.url); | |
| if(actions != "NOT FOUND") { | |
| var controllerAction = actions.split("#"); | |
| return(renderResponse(controllerAction[0], controllerAction[1], wApp, request.headers.Accept)); | |
| } else { |
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
| siteadmin git:(master) git ls-remote --heads origin | |
| 522c788f7f5e24330c87e5720d537e4fc54830e4 refs/heads/audit_trail | |
| d2546c28d7cf4b7630f024f323199a2e74f2e0d3 refs/heads/auth_lockout | |
| 5c323042b3515e648266e8144d9e37a41304eca7 refs/heads/blacklist | |
| 95c6781ca98be36296a56b0a05cb27431588f5bf refs/heads/cert_backport | |
| 926cde8c97af422cf495cf613c044326f5c9edbc refs/heads/cert_check | |
| 543d3e9014ed2dd5334746b1fe7060abeeb3de5e refs/heads/cert_payments | |
| 4ce0211fb0ef09b42a725b97236e2d975351cfbb refs/heads/cert_sub | |
| 3dc3cb5dffceced3e883fb9cfcb796425f17b92f refs/heads/cert_tiers |
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
| context "with correct fields" do | |
| Given { fill_in_registration_fields } | |
| When { click_on "Sign up" } | |
| Then do | |
| expect(page).to have_content "johndoe@offmarket.com" | |
| expect(Property.find(@property.id).prospects.all).to include(@prospect) | |
| end | |
| end |
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
| /usr/lib/libstdc++.6.0.9.dylib: | |
| /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) | |
| /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) | |
| /usr/lib/libstdc++.6.dylib: | |
| /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0) | |
| /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) |
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
| array = [[1234567890, "2013-09-19"], [777777777777, "2013-09-19"], [3333333, "2013-09-20"]] | |
| count = 0 | |
| search = "2013-09-19" | |
| array.each { |x| count += 1 if x[1] == search } | |
| puts count |
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
| ➜ siteadmin git:(pre-register-domains-by-site-admins) ✗ git push origin pre-register-domains-by-site-admins | |
| Counting objects: 86, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (61/61), done. | |
| Writing objects: 100% (61/61), 7.41 KiB, done. | |
| Total 61 (delta 45), reused 0 (delta 0) | |
| error: insufficient permission for adding an object to repository database ./objects | |
| fatal: failed to write object | |
| error: unpack failed: unpack-objects abnormal exit |
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
| ------------- Top 20 slowest scenarios ------------- | |
| 2.32 features/admin_legacy_workflow.feature::approve submitted legacy IDP metadata | |
| 2.07 features/legacy_workflow.feature::add UI Info attributes only to an existing SP, then add attr consuming, and then delete attr consuming | |
| 1.95 features/legacy_workflow.feature::update valid SP metadata | |
| 1.67 features/legacy_workflow.feature::try to submit SP with Signing Only x509 certs | |
| 1.66 features/password_resets.feature::Generate one time pin | |
| 1.61 features/admin_legacy_workflow.feature::approved updated legacy SP metadata | |
| 1.55 features/admin_legacy_workflow.feature::approve submitted legacy SP metadata | |
| 1.54 features/password_resets.feature::User has used max attempts to verify one time pin | |
| 1.47 features/legacy_workflow.feature::update key use for x509 certs |
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
| class ActiveRecord::Base | |
| mattr_accessor :shared_connection | |
| @@shared_connection = nil | |
| def self.connection | |
| @@shared_connection || retrieve_connection | |
| end | |
| end | |
| ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection |
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
| Before do | |
| response = {"response" => {"pin" => "abc1234c", "txid" => "hello"}} | |
| DuoVerify.should_receive(:generate_call).and_return(response) | |
| DuoVerify.stub(:call_status).and_return("COMPLETED") | |
| end |