Skip to content

Commit

Permalink
fix graph ql tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaythapa committed Nov 9, 2024
1 parent 9f5426b commit 0561992
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Resources:
AppIdClientRegex: myregex
AwsRegion: na-east-1
# This default action will exist post transform since this is our default authentication.
DefaultAction: something
DefaultAction: ALLOW
UserPoolId: myid
Tags:
key1: value1
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/input/graphqlapi_function_by_id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Resources:
DataSourceName: some-cool-datasource
Name: MyFunction
Runtime:
Name: some-runtime
Name: APPSYNC_JS
RuntimeVersion: 1.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ Resources:
CodeUri: my-code-uri
DataSource: NONE
Runtime:
Name: some-runtime
Name: APPSYNC_JS
Version: 1.2.3
AnotherFunction:
CodeUri: my-code-uri
DataSource: None
Runtime:
Name: some-runtime
Name: APPSYNC_JS
Version: 1.2.3
SimilarFunction:
CodeUri: my-code-uri
DataSource: none
Runtime:
Name: some-runtime
Name: APPSYNC_JS
Version: 1.2.3
GoodFunction:
CodeUri: my-code-uri
DataSource: nOnE
Runtime:
Name: some-runtime
Name: APPSYNC_JS
Version: 1.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Resources:
Functions:
MyFunction:
Runtime:
Name: some-runtime
Name: APPSYNC_JS
Version: 1.2.3
InlineCode: this is my epic code
DataSource: MyDataSource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"UserPoolConfig": {
"AppIdClientRegex": "myregex",
"AwsRegion": "na-east-1",
"DefaultAction": "something",
"DefaultAction": "ALLOW",
"UserPoolId": "myid"
},
"XrayEnabled": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"DataSourceName": "some-cool-datasource",
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"Name": "AnotherFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down Expand Up @@ -88,7 +88,7 @@
},
"Name": "GoodFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand All @@ -111,7 +111,7 @@
},
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down Expand Up @@ -159,7 +159,7 @@
},
"Name": "SimilarFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"MaxBatchSize": 10,
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"UserPoolConfig": {
"AppIdClientRegex": "myregex",
"AwsRegion": "na-east-1",
"DefaultAction": "something",
"DefaultAction": "ALLOW",
"UserPoolId": "myid"
},
"XrayEnabled": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"DataSourceName": "some-cool-datasource",
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"Name": "AnotherFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down Expand Up @@ -88,7 +88,7 @@
},
"Name": "GoodFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand All @@ -111,7 +111,7 @@
},
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down Expand Up @@ -159,7 +159,7 @@
},
"Name": "SimilarFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"MaxBatchSize": 10,
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"UserPoolConfig": {
"AppIdClientRegex": "myregex",
"AwsRegion": "na-east-1",
"DefaultAction": "something",
"DefaultAction": "ALLOW",
"UserPoolId": "myid"
},
"XrayEnabled": true
Expand Down
2 changes: 1 addition & 1 deletion tests/translator/output/graphqlapi_function_by_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"DataSourceName": "some-cool-datasource",
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"Name": "AnotherFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down Expand Up @@ -88,7 +88,7 @@
},
"Name": "GoodFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand All @@ -111,7 +111,7 @@
},
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down Expand Up @@ -159,7 +159,7 @@
},
"Name": "SimilarFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"MaxBatchSize": 10,
"Name": "MyFunction",
"Runtime": {
"Name": "some-runtime",
"Name": "APPSYNC_JS",
"RuntimeVersion": "1.2.3"
}
},
Expand Down

0 comments on commit 0561992

Please sign in to comment.