diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2023-03-25 01:38:38 +0100 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2023-04-17 23:38:29 +0200 |
commit | ff02b072ae35de6d5757461a1a2ebb51f5bb4d9e (patch) | |
tree | 0b69bd70b81095a9583a4807a056178dfd24e109 /core | |
parent | e3f1fae715e7787e516df4a8aa6fcedf6c0e531d (diff) | |
download | nextcloud-server-ff02b072ae35de6d5757461a1a2ebb51f5bb4d9e.tar.gz nextcloud-server-ff02b072ae35de6d5757461a1a2ebb51f5bb4d9e.zip |
Drop broken unit test
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tests/specs/setupchecksSpec.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js index 57536c59569..1d7badf495e 100644 --- a/core/js/tests/specs/setupchecksSpec.js +++ b/core/js/tests/specs/setupchecksSpec.js @@ -1954,30 +1954,6 @@ describe('OC.SetupChecks tests', function() { }); }); - it('should return a SSL warning if HTTPS is not used', function(done) { - protocolStub.returns('http'); - var async = OC.SetupChecks.checkGeneric(); - - suite.server.requests[0].respond(200, - { - 'X-XSS-Protection': '1; mode=block', - 'X-Content-Type-Options': 'nosniff', - 'X-Robots-Tag': 'noindex, nofollow', - 'X-Frame-Options': 'SAMEORIGIN', - 'X-Permitted-Cross-Domain-Policies': 'none', - 'Referrer-Policy': 'no-referrer', - } - ); - - async.done(function( data, s, x ){ - expect(data).toEqual([{ - msg: 'Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead, as described in the <a target="_blank" rel="noreferrer noopener" class="external" href="https://docs.example.org/admin-security">security tips ↗</a>.', - type: OC.SetupChecks.MESSAGE_TYPE_WARNING - }]); - done(); - }); - }); - it('should return an error if the response has no statuscode 200', function(done) { var async = OC.SetupChecks.checkGeneric(); |