-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1638 from usdoj/release-7.15.0
Release 7.15.0
- Loading branch information
Showing
14 changed files
with
2,735 additions
and
1,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
start=$SECONDS | ||
set -B | ||
declare -a agencies=(abmc doj achp acus afrh asc ceq cfa cfpb cftc cia cigie cncs co cppbsd cpsc csb csosa dc dfc dhs dnfsb doc dod doe doi dol dos dot eac ed eeoc epa fca fcc fcsic fdic fec ferc ffiec fhfa flra fmc fmcs fmshrc fomc frb frtib ftc gcerc gsa ha hhs hstsf hud iaf imls ipec fpisc jmmff lsc mcc mkuf mmc mspb nara nasa ncd ncpc ncua nea neh nigc nlrb nmb nrc nrpc nsf ntsb nw nwtrb odni oge omb ondcp onhir opm osc oshrc ostp pbgc pc pclob prc pt usrrb sba sec sigar ssa ssab sss stb treasury tva usab usadf usagm usaid usccr usda usibwc usich usip usitc usps ustda ustr va) | ||
agencies+=("exim%20bank") | ||
|
||
YEAR=$1 | ||
API_KEY=$2 | ||
|
||
# if there aren't two arguments | ||
if [ $# != 2 ] | ||
then | ||
echo "Please supply the year and api key.\nUSAGE: bash xml-dataset-download.sh <year> <api_key>" | ||
exit; | ||
fi | ||
|
||
echo "This script will output a zip file in the public directory: www.foia.gov/$YEAR-FOIASetFull.zip" | ||
|
||
for AGENCY in "${agencies[@]}" | ||
do | ||
: | ||
echo -e "Getting XML data for ${AGENCY}... \n" | ||
sleep 1 | ||
CLEAN=${AGENCY//%20/-} | ||
FILE=${CLEAN}-${YEAR}'.xml' | ||
curl -H "X-API-Key: $API_KEY" 'https://api.foia.gov/api/annual-report-xml/'$AGENCY'/'$YEAR -o $FILE | ||
done | ||
|
||
echo -e "Zipping all XML files for the year ${YEAR}... \n" | ||
sleep 1 | ||
zip -r -j ../www.foia.gov/$YEAR-FOIASetFull.zip *.xml | ||
echo -e "Removing all XML files from this directory... \n" | ||
rm -r *.xml | ||
duration=$(( SECONDS - start )) | ||
echo -e "Finished in ${duration} seconds" | ||
echo -e "**********\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@extlink | ||
Feature: External Link Package | ||
|
||
As site visitor | ||
I want to make sure that the external link package is installed and working correctly | ||
So that an icon will appear on external links unless they are on the exclusion list | ||
|
||
Background: | ||
Given I am on "/" | ||
And I wait 3 seconds | ||
|
||
Scenario: The Hero image credit link has an icon | ||
Then the "the external link script" element should exist | ||
And I should see "_blank" in the "the Hero image credit" element | ||
And I should see an "the justice.gov link" element | ||
And I should not see "svg-icon" in the "the justice.gov link" element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.