|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- autogenerated 2021-12-14T16:02:57.305-05:00 following model in example-set.xspec--> |
| 3 | +<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" |
| 4 | + xmlns:opr="http://csrc.nist.gov/ns/oscal/profile-resolution" |
| 5 | + xmlns:o="http://csrc.nist.gov/ns/oscal/1.0" |
| 6 | + stylesheet="../../utils/util/resolver-pipeline/oscal-profile-RESOLVE.xsl" |
| 7 | + run-as="external" |
| 8 | + xmlns:ov="http://csrc.nist.gov/ns/oscal/test/variable"> |
| 9 | + <x:helper stylesheet="lib/oscal-profile-test-helper.xsl"/> |
| 10 | + <!-- old tests are out of whack need update to current functionality /spec --> |
| 11 | + <!-- but the XSpec provides a functional model --> |
| 12 | + <x:scenario label="Base test"> |
| 13 | + <!-- Alternative model for test scrubbing both the result and the expected |
| 14 | + result for comparison --> |
| 15 | + <x:context href="profile-resolution-examples/base-test_profile.xml"/> |
| 16 | + <x:variable name="ov:expected-output" |
| 17 | + href="profile-resolution-examples/output-expected/base-test_profile_RESOLVED.xml"/> |
| 18 | + <x:expect label="Base test - fully resolved" |
| 19 | + test="opr:scrub($x:result)" select="opr:scrub($ov:expected-output)"/> |
| 20 | + </x:scenario> |
| 21 | + |
| 22 | + <x:scenario label="Testing base-test_profile.xml"> |
| 23 | + |
| 24 | + <x:context href="profile-resolution-examples/base-test_profile.xml"/> |
| 25 | + <x:expect label="Resolution of base-test_profile.xml" |
| 26 | + select="opr:scrub(.)" |
| 27 | + href="profile-resolution-examples/output-expected/base-test_profile_RESOLVED.xml"/> |
| 28 | + </x:scenario> |
| 29 | + <x:scenario label="Testing base2-test_profile.xml"> |
| 30 | + <x:context href="profile-resolution-examples/base2-test_profile.xml"/> |
| 31 | + <x:expect label="Resolution of base2-test_profile.xml" |
| 32 | + select="opr:scrub(.)" |
| 33 | + href="profile-resolution-examples/output-expected/base2-test_profile_RESOLVED.xml"/> |
| 34 | + </x:scenario> |
| 35 | + <x:scenario label="Testing broken_profile.xml" pending="galtm"> |
| 36 | + <x:context href="profile-resolution-examples/broken_profile.xml"/> |
| 37 | + <x:expect label="Resolution of broken_profile.xml" |
| 38 | + select="opr:scrub(.)" |
| 39 | + href="profile-resolution-examples/output-expected/broken_profile_RESOLVED.xml"/> |
| 40 | + </x:scenario> |
| 41 | + <x:scenario label="Testing circular_profile.xml"> |
| 42 | + <x:context href="profile-resolution-examples/circular_profile.xml"/> |
| 43 | + <x:expect label="Resolution of circular_profile.xml" |
| 44 | + select="opr:scrub(.)" |
| 45 | + href="profile-resolution-examples/output-expected/circular_profile_RESOLVED.xml"/> |
| 46 | + </x:scenario> |
| 47 | + <x:scenario label="Testing exclude-call-test_profile.xml"> |
| 48 | + <x:context href="profile-resolution-examples/exclude-call-test_profile.xml"/> |
| 49 | + <x:expect label="Resolution of exclude-call-test_profile.xml" |
| 50 | + select="opr:scrub(.)" |
| 51 | + href="profile-resolution-examples/output-expected/exclude-call-test_profile_RESOLVED.xml"/> |
| 52 | + </x:scenario> |
| 53 | + <x:scenario label="Testing full-test_profile.xml"> |
| 54 | + <x:context href="profile-resolution-examples/full-test_profile.xml"/> |
| 55 | + <x:expect label="Resolution of full-test_profile.xml" |
| 56 | + select="opr:scrub(.)" |
| 57 | + href="profile-resolution-examples/output-expected/full-test_profile_RESOLVED.xml"/> |
| 58 | + </x:scenario> |
| 59 | + <x:scenario label="Testing home_profile.xml"> |
| 60 | + <x:context href="profile-resolution-examples/home_profile.xml"/> |
| 61 | + <x:expect label="Resolution of home_profile.xml" |
| 62 | + select="opr:scrub(.)" |
| 63 | + href="profile-resolution-examples/output-expected/home_profile_RESOLVED.xml"/> |
| 64 | + </x:scenario> |
| 65 | + <x:scenario label="Testing import-twice_profile.xml"> |
| 66 | + <x:context href="profile-resolution-examples/import-twice_profile.xml"/> |
| 67 | + <x:expect label="Resolution of import-twice_profile.xml" |
| 68 | + select="opr:scrub(.)" |
| 69 | + href="profile-resolution-examples/output-expected/import-twice_profile_RESOLVED.xml"/> |
| 70 | + </x:scenario> |
| 71 | + <x:scenario label="Testing include-all-no-children-test_profile.xml"> |
| 72 | + <x:context href="profile-resolution-examples/include-all-no-children-test_profile.xml"/> |
| 73 | + <x:expect label="Resolution of include-all-no-children-test_profile.xml" |
| 74 | + select="opr:scrub(.)" |
| 75 | + href="profile-resolution-examples/output-expected/include-all-no-children-test_profile_RESOLVED.xml"/> |
| 76 | + </x:scenario> |
| 77 | + <x:scenario label="Testing include-all-test_profile.xml"> |
| 78 | + <x:context href="profile-resolution-examples/include-all-test_profile.xml"/> |
| 79 | + <x:expect label="Resolution of include-all-test_profile.xml" |
| 80 | + select="opr:scrub(.)" |
| 81 | + href="profile-resolution-examples/output-expected/include-all-test_profile_RESOLVED.xml"/> |
| 82 | + </x:scenario> |
| 83 | + <x:scenario label="Testing include-call-with-children-test_profile.xml"> |
| 84 | + <x:context href="profile-resolution-examples/include-call-with-children-test_profile.xml"/> |
| 85 | + <x:expect label="Resolution of include-call-with-children-test_profile.xml" |
| 86 | + select="opr:scrub(.)" |
| 87 | + href="profile-resolution-examples/output-expected/include-call-with-children-test_profile_RESOLVED.xml"/> |
| 88 | + <x:expect label="Includes grandparent in result" test="$x:result//o:control/@id = 'c3'"/> |
| 89 | + <x:expect label="Includes grandchild in result" test="$x:result//o:control/@id = 'c3.a-1'"/> |
| 90 | + <x:expect label="Is missing a control not included" test="not( $x:result//o:control/@id = 'c2' )"/> |
| 91 | + </x:scenario> |
| 92 | + <x:scenario label="Testing include-loose-param-test_profile.xml"> |
| 93 | + <x:context href="profile-resolution-examples/include-loose-param-test_profile.xml"/> |
| 94 | + <x:expect label="Resolution of include-loose-param-test_profile.xml" |
| 95 | + select="opr:scrub(.)" |
| 96 | + href="profile-resolution-examples/output-expected/include-loose-param-test_profile_RESOLVED.xml"/> |
| 97 | + </x:scenario> |
| 98 | + <x:scenario label="Testing include-match-test_profile.xml"> |
| 99 | + <x:context href="profile-resolution-examples/include-match-test_profile.xml"/> |
| 100 | + <x:expect label="Resolution of include-match-test_profile.xml" |
| 101 | + select="opr:scrub(.)" |
| 102 | + href="profile-resolution-examples/output-expected/include-match-test_profile_RESOLVED.xml"/> |
| 103 | + </x:scenario> |
| 104 | + <x:scenario label="Testing merge-implicit-keep_profile.xml"> |
| 105 | + <x:context href="profile-resolution-examples/merge-implicit-keep_profile.xml"/> |
| 106 | + <x:expect label="Resolution of merge-implicit-keep_profile.xml" |
| 107 | + select="opr:scrub(.)" |
| 108 | + href="profile-resolution-examples/output-expected/merge-implicit-keep_profile_RESOLVED.xml"/> |
| 109 | + </x:scenario> |
| 110 | + <x:scenario label="Testing merge-keep-resources_profile.xml"> |
| 111 | + <x:context href="profile-resolution-examples/merge-keep-resources_profile.xml"/> |
| 112 | + <x:expect label="Resolution of merge-keep-resources_profile.xml" |
| 113 | + select="opr:scrub(.)" |
| 114 | + href="profile-resolution-examples/output-expected/merge-keep-resources_profile_RESOLVED.xml"/> |
| 115 | + </x:scenario> |
| 116 | + <x:scenario label="Testing merge-keep_profile.xml"> |
| 117 | + <x:context href="profile-resolution-examples/merge-keep_profile.xml"/> |
| 118 | + <x:expect label="Resolution of merge-keep_profile.xml" |
| 119 | + select="opr:scrub(.)" |
| 120 | + href="profile-resolution-examples/output-expected/merge-keep_profile_RESOLVED.xml"/> |
| 121 | + </x:scenario> |
| 122 | + <x:scenario label="Testing modify-adds_profile.xml"> |
| 123 | + <x:context href="profile-resolution-examples/modify-adds_profile.xml"/> |
| 124 | + <x:expect label="Resolution of modify-adds_profile.xml" |
| 125 | + select="opr:scrub(.)" |
| 126 | + href="profile-resolution-examples/output-expected/modify-adds_profile_RESOLVED.xml"/> |
| 127 | + </x:scenario> |
| 128 | +</x:description> |
0 commit comments