Skip to content

Commit

Permalink
Merge branch 'main' into fix-snyk-more
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia authored Jan 18, 2024
2 parents 199ddbc + 2a77249 commit 1b15c10
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y \
openssl libssl-dev libffi-dev pkg-config libxml2-dev \
libxmlsec1-dev libxmlsec1-openssl libgeos-dev proj-bin
libxmlsec1-dev libxmlsec1-openssl libgeos-dev proj-bin \
libpq-dev
pip3 install -r requirements.txt
- name: Run Snyk Scan
run: |
Expand Down
18 changes: 16 additions & 2 deletions ckan/.snyk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ignore:
reason: >-
No remediation available yet; Issue tracked in github:
https://github.com/GSA/data.gov/issues/4532
expires: 2024-02-8T00:00:00.000Z
expires: 2024-02-08T00:00:00.000Z
created: 2023-11-16T20:31:20.590Z
SNYK-PYTHON-CKAN-6124881:
- '*':
Expand All @@ -64,5 +64,19 @@ ignore:
No remediation available yet; Issue tracked in github:
https://github.com/GSA/data.gov/issues/4532
expires: 2024-03-14T00:00:00.000Z
created: 2023-12-14T00:00:00.000Z
created: 2023-12-14T00:00:00.000Z
SNYK-PYTHON-CRYPTOGRAPHY-6149518:
- '*':
reason: >-
No remediation available yet; Issue tracked in github:
https://github.com/GSA/data.gov/issues/4532
expires: 2024-04-10T19:28:50.100Z
created: 2024-01-11T19:28:50.103Z
SNYK-PYTHON-PYOPENSSL-6149520:
- '*':
reason: >-
No remediation available yet; Issue tracked in github:
https://github.com/GSA/data.gov/issues/4532
expires: 2024-04-10T19:29:54.032Z
created: 2024-01-11T19:29:54.039Z
patch: {}
15 changes: 15 additions & 0 deletions e2e/cypress/integration/dataset.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,19 @@ describe('Dataset', () => {
cy.get('a[class="heading"]').contains('NCEI Contact Information').click();
cy.get('ul[class="list-unstyled nav nav-simple"] li').eq(1).click();
});

it("Can click on feedback button", () => {
cy.visit('/dataset/ek500-water-column-sonar-data-collected-during-al0001');
// sleep for 1 second to allow touchpoint js to load
cy.wait(1000);
cy.hide_debug_toolbar();
// the button is visible
cy.get('#contact-btn').should('be.visible').click();
// the modal is invisible
cy.get('#fba-modal-dialog').should('be.visible');
cy.get('#fba_location_code').should('have.value', 'ek500-water-column-sonar-data-collected-during-al0001');
// can hide the modal
cy.get('a[class="fba-modal-close"]').click();
cy.get('#fba-modal-dialog').should('not.be.visible');
});
});
2 changes: 1 addition & 1 deletion proxy/nginx-botbegone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ if ($http_user_agent ~ 'Googlebot/|Y!J|Yeti|Bytespider|Applebot|HeadlessChrome')
}

if ($botstracking = 11) {
return 200;
return 202;
}

0 comments on commit 1b15c10

Please sign in to comment.