Skip to main content

πŸ§ͺ test-data.json

  • ID: /ce/ca/aws/glue/job-spark-graviton-and-version/test-data.json

Used In​

LogicPolicyFlags
🧠 prod.logic.yamlπŸŸ’πŸ›‘οΈ AWS Glue Spark Job uses a non-Graviton worker on a Glue version below 6.1🟒🟒 x3

Content​

Open File

[
{
"Id": "batch-graviton-on-6-0",
"expectedResult": {
"conditionIndex": 699,
"status": "COMPLIANT",
"conditionText": "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "G.1X.GRAVITON"
},
{
"Id": "streaming-graviton-on-6-0",
"expectedResult": {
"conditionIndex": 699,
"status": "COMPLIANT",
"conditionText": "extract('CA10__glueVersion__c') == '6.0' && (setOfText(['g.1x.graviton', 'g.2x.graviton']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x.graviton', 'g.8x.graviton', 'g.12x.graviton', 'g.16x.graviton', 'r.1x.graviton', 'r.2x.graviton', 'r.4x.graviton', 'r.8x.graviton']).contains(extract('CA10__workerType__c'))))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "gluestreaming",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "G.2X.GRAVITON"
},
{
"Id": "batch-graviton-on-6-1",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.1",
"CA10__workerType__c": "R.4X.GRAVITON"
},
{
"Id": "streaming-graviton-on-6-1",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "gluestreaming",
"CA10__glueVersion__c": "6.1",
"CA10__workerType__c": "G.2X.GRAVITON"
},
{
"Id": "batch-graviton-on-future-major",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "10.0",
"CA10__workerType__c": "G.16X.GRAVITON"
},
{
"Id": "batch-graviton-on-future-minor",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.9",
"CA10__workerType__c": "G.1X.GRAVITON"
},
{
"Id": "batch-non-graviton-on-6-0",
"expectedResult": {
"conditionIndex": 799,
"status": "INCOMPLIANT",
"conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "G.1X"
},
{
"Id": "non-graviton-on-6-1",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.1",
"CA10__workerType__c": "G.1X"
},
{
"Id": "non-graviton-on-future-release",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "10.0",
"CA10__workerType__c": "R.4X"
},
{
"Id": "non-graviton-on-legacy-release",
"expectedResult": {
"conditionIndex": 799,
"status": "INCOMPLIANT",
"conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "5.1",
"CA10__workerType__c": "G.8X"
},
{
"Id": "streaming-small-non-graviton",
"expectedResult": {
"conditionIndex": 799,
"status": "INCOMPLIANT",
"conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "gluestreaming",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "G.025X"
},
{
"Id": "standard-non-graviton",
"expectedResult": {
"conditionIndex": 799,
"status": "INCOMPLIANT",
"conditionText": "setOfText(['standard', 'g.1x', 'g.2x']).contains(extract('CA10__workerType__c')) || (extract('CA10__commandName__c') == 'glueetl' && setOfText(['g.4x', 'g.8x', 'g.12x', 'g.16x', 'r.1x', 'r.2x', 'r.4x', 'r.8x']).contains(extract('CA10__workerType__c'))) || (extract('CA10__commandName__c') == 'gluestreaming' && extract('CA10__workerType__c') == 'g.025x')",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "3.0",
"CA10__workerType__c": "Standard"
},
{
"Id": "non-graviton-on-auto",
"expectedResult": {
"conditionIndex": 399,
"status": "INAPPLICABLE",
"conditionText": "extract('CA10__glueVersion__c') == 'auto'",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "auto",
"CA10__workerType__c": "G.1X"
},
{
"Id": "non-graviton-without-version",
"expectedResult": {
"conditionIndex": 301,
"status": "UNDETERMINED",
"conditionText": "CA10__glueVersion__c.isEmpty()",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": null,
"CA10__workerType__c": "G.2X"
},
{
"Id": "old-version-without-worker",
"expectedResult": {
"conditionIndex": 800,
"status": "UNDETERMINED",
"conditionText": "otherwise",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "5.1",
"CA10__workerType__c": null
},
{
"Id": "retired-version-without-worker",
"expectedResult": {
"conditionIndex": 800,
"status": "UNDETERMINED",
"conditionText": "otherwise",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "0.9",
"CA10__workerType__c": null
},
{
"Id": "graviton-on-pre-graviton-release",
"expectedResult": {
"conditionIndex": 800,
"status": "UNDETERMINED",
"conditionText": "otherwise",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "5.1",
"CA10__workerType__c": "G.1X.GRAVITON"
},
{
"Id": "graviton-on-auto",
"expectedResult": {
"conditionIndex": 399,
"status": "INAPPLICABLE",
"conditionText": "extract('CA10__glueVersion__c') == 'auto'",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "auto",
"CA10__workerType__c": "G.1X.GRAVITON"
},
{
"Id": "auto-without-worker",
"expectedResult": {
"conditionIndex": 399,
"status": "INAPPLICABLE",
"conditionText": "extract('CA10__glueVersion__c') == 'auto'",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "auto",
"CA10__workerType__c": null
},
{
"Id": "graviton-without-version",
"expectedResult": {
"conditionIndex": 301,
"status": "UNDETERMINED",
"conditionText": "CA10__glueVersion__c.isEmpty()",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": null,
"CA10__workerType__c": "G.1X.GRAVITON"
},
{
"Id": "graviton-with-malformed-version",
"expectedResult": {
"conditionIndex": 499,
"status": "UNDETERMINED",
"conditionText": "not(extract('CA10__glueVersion__c').contains('.'))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "unexpected",
"CA10__workerType__c": "G.1X.GRAVITON"
},
{
"Id": "glue-6-1-without-worker",
"expectedResult": {
"conditionIndex": 599,
"status": "COMPLIANT",
"conditionText": "not(setOfText(['0.9', '1.0', '2.0', '3.0', '4.0', '5.0', '5.1', '6.0']).contains(extract('CA10__glueVersion__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.1",
"CA10__workerType__c": null
},
{
"Id": "streaming-with-batch-graviton-worker",
"expectedResult": {
"conditionIndex": 800,
"status": "UNDETERMINED",
"conditionText": "otherwise",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "gluestreaming",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "R.1X.GRAVITON"
},
{
"Id": "unknown-graviton-worker",
"expectedResult": {
"conditionIndex": 800,
"status": "UNDETERMINED",
"conditionText": "otherwise",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "G.32X.GRAVITON"
},
{
"Id": "ray-worker-on-spark-job",
"expectedResult": {
"conditionIndex": 800,
"status": "UNDETERMINED",
"conditionText": "otherwise",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "6.0",
"CA10__workerType__c": "Z.2X"
},
{
"Id": "python-shell",
"expectedResult": {
"conditionIndex": 199,
"status": "INAPPLICABLE",
"conditionText": "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "pythonshell",
"CA10__glueVersion__c": null,
"CA10__workerType__c": null
},
{
"Id": "ray",
"expectedResult": {
"conditionIndex": 199,
"status": "INAPPLICABLE",
"conditionText": "setOfText(['pythonshell', 'glueray']).contains(extract('CA10__commandName__c'))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "glueray",
"CA10__glueVersion__c": null,
"CA10__workerType__c": "Z.2X"
},
{
"Id": "unknown-command",
"expectedResult": {
"conditionIndex": 299,
"status": "UNDETERMINED",
"conditionText": "not(setOfText(['glueetl', 'gluestreaming']).contains(extract('CA10__commandName__c')))",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": "other",
"CA10__glueVersion__c": null,
"CA10__workerType__c": null
},
{
"Id": "missing-command",
"expectedResult": {
"conditionIndex": 101,
"status": "UNDETERMINED",
"conditionText": "CA10__commandName__c.isEmpty()",
"runtimeError": null
},
"CA10__disappearanceTime__c": null,
"CA10__commandName__c": null,
"CA10__glueVersion__c": null,
"CA10__workerType__c": null
},
{
"Id": "disappeared-job",
"expectedResult": {
"conditionIndex": 99,
"status": "DISAPPEARED",
"conditionText": "isDisappeared(CA10__disappearanceTime__c)",
"runtimeError": null
},
"CA10__disappearanceTime__c": "2026-11-30T12:00:00Z",
"CA10__commandName__c": "glueetl",
"CA10__glueVersion__c": "5.1",
"CA10__workerType__c": "G.1X"
}
]