Skip to content

Commit e784109

Browse files
Merge branch 'finos:main' into Search
2 parents 8d12a5a + 39dd45c commit e784109

File tree

21 files changed

+244
-91
lines changed

21 files changed

+244
-91
lines changed

.env.development

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
VITE_API_URI=http://localhost:8080
2-
VITE_SERVER_URI=http://localhost:8000

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
mongodb-version: [4.4]
2424

2525
steps:
26-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2727
with:
2828
fetch-depth: 0
2929

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
node-version: ${{ env.NODE_VERSION }}
1717

1818
- name: Code Checkout
19-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2020
with:
2121
fetch-depth: 0
2222

.github/workflows/npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
9+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1010
# Setup .npmrc file to publish to npm
1111
- uses: actions/setup-node@v4
1212
with:

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
egress-policy: audit
3838

3939
- name: "Checkout code"
40-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
40+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4141
with:
4242
persist-credentials: false
4343

@@ -64,7 +64,7 @@ jobs:
6464
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6565
# format to the repository Actions tab.
6666
- name: "Upload artifact"
67-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
67+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
6868
with:
6969
name: SARIF file
7070
path: results.sarif

config.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"description": "Customisable questions to add to attestation form",
2121
"type": "object"
2222
},
23+
"domains": {
24+
"description": "Provide domains to use alternative to the defaults",
25+
"type": "object"
26+
},
2327
"privateOrganizations": {
2428
"description": "Pattern searches for listed private organizations are disabled",
2529
"type": "array"

cypress/e2e/repo.cy.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
describe('Repo', () => {
2+
beforeEach(() => {
3+
cy.visit('/admin/repo');
4+
5+
// prevent failures on 404 request and uncaught promises
6+
cy.on('uncaught:exception', () => false);
7+
});
8+
9+
describe('Code button for repo row', () => {
10+
it('Opens tooltip with correct content and can copy', () => {
11+
const cloneURL = 'http://localhost:8000/finos/test-repo.git';
12+
const tooltipQuery = 'div[role="tooltip"]';
13+
14+
cy
15+
// tooltip isn't open to start with
16+
.get(tooltipQuery)
17+
.should('not.exist');
18+
19+
cy
20+
// find the entry for finos/test-repo
21+
.get('a[href="/admin/repo/test-repo"]')
22+
// take it's parent row
23+
.closest('tr')
24+
// find the nearby span containing Code we can click to open the tooltip
25+
.find('span')
26+
.contains('Code')
27+
.should('exist')
28+
.click();
29+
30+
cy
31+
// find the newly opened tooltip
32+
.get(tooltipQuery)
33+
.should('exist')
34+
.find('span')
35+
// check it contains the url we expect
36+
.contains(cloneURL)
37+
.should('exist')
38+
.parent()
39+
// find the adjacent span that contains the svg
40+
.find('span')
41+
.next()
42+
// check it has the copy icon first and click it
43+
.get('svg.octicon-copy')
44+
.should('exist')
45+
.click()
46+
// check the icon has changed to the check icon
47+
.get('svg.octicon-copy')
48+
.should('not.exist')
49+
.get('svg.octicon-check')
50+
.should('exist');
51+
52+
// failed to successfully check the clipboard
53+
});
54+
});
55+
});

cypress/support/commands.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@
2222
//
2323
//
2424
// -- This will overwrite an existing command --
25-
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
25+
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
26+
27+
// start of a login command with sessions
28+
// TODO: resolve issues with the CSRF token
29+
Cypress.Commands.add('login', (username, password) => {
30+
cy.session([username, password], () => {
31+
cy.visit('/login');
32+
cy.get('[data-test=username]').type(username);
33+
cy.get('[data-test=password]').type(password);
34+
cy.get('[data-test=login]').click();
35+
cy.url().should('contain', '/admin/profile');
36+
});
37+
});

package-lock.json

Lines changed: 27 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@finos/git-proxy",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "Deploy custom push protections and policies on top of Git.",
55
"scripts": {
66
"cli": "node ./packages/git-proxy-cli/index.js",

0 commit comments

Comments
 (0)