- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
describe('XHR form submission test', () => { | |
before(() => { | |
cy.server() | |
cy.visit('/testurl') | |
}) | |
it('successfully submits an XHR on form submission', () => { | |
cy.get('[data-test="form"]').within(() => { | |
cy.get('#test-input').type('spyfu.com') | |
cy.route('POST', '/sumbit/here').as('postForm') // note that the route needs to match trailing slashes | |
cy.get('button[type="submit"]').click() |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt