Skip to content

Commit 68e024d

Browse files
committed
update README.md and minor fixes
1 parent 02c7696 commit 68e024d

3 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/openid_plugin_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
CYPRESS_DBPASSWORD: ojs-ci
5050
CYPRESS_DBHOST: 127.0.0.1
5151
CYPRESS_FILESDIR: files
52-
CYPRESS_OPENIDID: ${{ secrets.CYPRESS_OPENID_CUSTOM_ID }}
53-
CYPRESS_OPENIDIMG: ${{ secrets.CYPRESS_OPENID_CUSTOM_IMG }}
54-
CYPRESS_OPENIDSECRET: ${{ secrets.CYPRESS_OPENID_CUSTOM_SECRET }}
55-
CYPRESS_OPENIDTXT: ${{ secrets.CYPRESS_OPENID_CUSTOM_TXT }}
56-
CYPRESS_OPENIDURL: ${{ secrets.CYPRESS_OPENID_CUSTOM_URL }}
52+
CYPRESS_OPENID_CUSTOM_ID: ${{ secrets.CYPRESS_OPENID_CUSTOM_ID }}
53+
CYPRESS_OPENID_CUSTOM_IMG: ${{ secrets.CYPRESS_OPENID_CUSTOM_IMG }}
54+
CYPRESS_OPENID_CUSTOM_SECRET: ${{ secrets.CYPRESS_OPENID_CUSTOM_SECRET }}
55+
CYPRESS_OPENID_CUSTOM_TXT: ${{ secrets.CYPRESS_OPENID_CUSTOM_TXT }}
56+
CYPRESS_OPENID_CUSTOM_URL: ${{ secrets.CYPRESS_OPENID_CUSTOM_URL }}
5757
steps:
5858
- name: Setup PHP, extensions and composer
5959
uses: shivammathur/setup-php@v2

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# OJS Plugin for OpenID integration
2-
[![Build Status](https://travis-ci.org/leibniz-psychology/pkp-openid.svg?branch=master)](https://travis-ci.org/leibniz-psychology/pkp-openid)
2+
3+
![CI Test](https://github.com/leibniz-psychology/pkp-openid/workflows/CI%20Test/badge.svg?branch=master)
4+
35
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/leibniz-psychology/pkp-openid?include_prereleases&label=latest%20release)
46
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/leibniz-psychology/pkp-openid)
57
![GitHub](https://img.shields.io/github/license/leibniz-psychology/pkp-openid)
6-
[![OJS-Version](https://img.shields.io/badge/pkp--ojs-3.2.1-brightgreen)](https://github.com/pkp/ojs/tree/stable-3_2_1)
8+
[![OJS-Version](https://img.shields.io/badge/pkp--ojs-3.3-brightgreen)](https://github.com/pkp/ojs/tree/master)
79
![GitHub All Releases](https://img.shields.io/github/downloads/leibniz-psychology/pkp-openid/total)
810

911
## Description:

cypress/tests/functional/OpenID.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ describe('OpenID plugin tests', function () {
1717
});
1818

1919
it('Enable OpenID Authentication Plugin', function () {
20-
/* cy.server();
21-
cy.route('POST', Cypress.env("baseUrl") + '/index.php/' + Cypress.env("context") + '/$$$call$$$/grid/settings/plugins/settings-plugin-grid/manage?category=generic&plugin=openidplugin&verb=settings&save=1').as('saveSettings');*/
20+
/* cy.server();
21+
cy.route('POST', Cypress.env("baseUrl") + '/index.php/' + Cypress.env("context") + '/$$$call$$$/grid/settings/plugins/settings-plugin-grid/manage?category=generic&plugin=openidplugin&verb=settings&save=1').as('saveSettings');*/
2222
cy.login('admin', 'admin', 'publicknowledge');
2323
cy.get('nav[class="app__nav"] a:contains("Website")').click();
2424
cy.get('button[id="plugins-button"]').click();
@@ -31,11 +31,11 @@ describe('OpenID plugin tests', function () {
3131
// Fill out settings form
3232
cy.get('form[id="openIDSettings"] input[name="provider[custom][active]"]').check({force: true});
3333
cy.waitJQuery();
34-
cy.get('form[id="openIDSettings"] input[name="provider[custom][configUrl]"]').clear().type(Cypress.env("OPENIDURL"));
35-
cy.get('form[id="openIDSettings"] input[name="provider[custom][btnImg]"]').clear().type(Cypress.env("OPENIDIMG"));
36-
cy.get('form[id="openIDSettings"] input[name="provider[custom][btnTxt][en_US]"]').clear().type(Cypress.env("OPENIDTXT"));
37-
cy.get('form[id="openIDSettings"] input[name="provider[custom][clientId]"]').clear().type(Cypress.env("OPENIDID"));
38-
cy.get('form[id="openIDSettings"] input[name="provider[custom][clientSecret]"]').clear().type(Cypress.env("OOPENIDSECRET"));
34+
cy.get('form[id="openIDSettings"] input[name="provider[custom][configUrl]"]').clear().type(Cypress.env("OPENID_CUSTOM_URL"));
35+
cy.get('form[id="openIDSettings"] input[name="provider[custom][btnImg]"]').clear().type(Cypress.env("OPENID_CUSTOM_IMG"));
36+
cy.get('form[id="openIDSettings"] input[name="provider[custom][btnTxt][en_US]"]').clear().type(Cypress.env("OPENID_CUSTOM_TXT"));
37+
cy.get('form[id="openIDSettings"] input[name="provider[custom][clientId]"]').clear().type(Cypress.env("OPENID_CUSTOM_ID"));
38+
cy.get('form[id="openIDSettings"] input[name="provider[custom][clientSecret]"]').clear().type(Cypress.env("OPENID_CUSTOM_SECRET"));
3939
cy.get('form[id="openIDSettings"] input[name="legacyLogin"]').check({force: true});
4040
cy.get('form[id="openIDSettings"] div[id="generateSecret"]').click();
4141
cy.get('form[id="openIDSettings"] input[name="generateAPIKey"]').check({force: true});
@@ -49,6 +49,6 @@ describe('OpenID plugin tests', function () {
4949

5050
it('Check OpenID Authentication Plugin Login Page', function () {
5151
cy.visit('/index.php/publicknowledge/login');
52-
cy.get('a[id="openid-provider-custom"]').contains(Cypress.env("OPENIDTXT"));
52+
cy.get('a[id="openid-provider-custom"]').contains(Cypress.env("OPENID_CUSTOM_TXT"));
5353
});
5454
});

0 commit comments

Comments
 (0)