From 8806957b969bf0f906272668722a86d0b83dbdef Mon Sep 17 00:00:00 2001 From: Ryan Hofschneider Date: Tue, 23 Apr 2019 13:30:26 -0700 Subject: [PATCH] Encode "I don't know" clearance level Update test6 so it contains an "I don't know" clearance level. Successfully validated by e-QIP. --- api/templates/legal-investigations-investigated.xml | 5 ++++- api/testdata/complete-scenarios/test6.json | 4 ++-- api/testdata/complete-scenarios/test6.xml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api/templates/legal-investigations-investigated.xml b/api/templates/legal-investigations-investigated.xml index d02ae6978..74bff2faa 100644 --- a/api/templates/legal-investigations-investigated.xml +++ b/api/templates/legal-investigations-investigated.xml @@ -13,8 +13,11 @@ {{text $Item.AgencyExplanation}} {{end}} {{end}} - + {{if notApplicable $Item.ClearanceLevelNotApplicable | eq "True"}} + Unknown + {{else}} {{radio $Item.ClearanceLevel.props.Level | clearanceType}} + {{end}} {{monthYearOptional $Item.Granted $Item.GrantedNotApplicable}} diff --git a/api/testdata/complete-scenarios/test6.json b/api/testdata/complete-scenarios/test6.json index 4f89f78d7..fa2dbfe2c 100644 --- a/api/testdata/complete-scenarios/test6.json +++ b/api/testdata/complete-scenarios/test6.json @@ -2635,7 +2635,7 @@ "Level": { "type": "radio", "props": { - "value": "None" + "value": "" } }, "Explanation": { @@ -2649,7 +2649,7 @@ "ClearanceLevelNotApplicable": { "type": "notapplicable", "props": { - "applicable": true + "applicable": false } }, "Completed": { diff --git a/api/testdata/complete-scenarios/test6.xml b/api/testdata/complete-scenarios/test6.xml index c695ff378..c333d2b83 100644 --- a/api/testdata/complete-scenarios/test6.xml +++ b/api/testdata/complete-scenarios/test6.xml @@ -992,7 +992,7 @@ Unknown - None + Unknown