Skip to content

Commit ee426f4

Browse files
authored
Add base_config and partial_config files under restricted_destination testdata (#1106)
* Expose public methods to convert function and variable decl to v1 Decl * Break up restricted destinations test config file into base_config and partial_config files to be used for test runner
1 parent 43bc483 commit ee426f4

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "labels"
16+
extensions:
17+
- name: "lists"
18+
- name: "sets"
19+
variables:
20+
- name: "destination.ip"
21+
type:
22+
type_name: "string"
23+
- name: "origin.ip"
24+
type:
25+
type_name: "string"
26+
- name: "spec.restricted_destinations"
27+
type:
28+
type_name: "list"
29+
params:
30+
- type_name: "string"
31+
- name: "spec.origin"
32+
type:
33+
type_name: "string"
34+
- name: "request"
35+
type:
36+
type_name: "map"
37+
params:
38+
- type_name: "string"
39+
- type_name: "dyn"
40+
- name: "resource"
41+
type:
42+
type_name: "map"
43+
params:
44+
- type_name: "string"
45+
- type_name: "dyn"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: "labels"
16+
functions:
17+
- name: "locationCode"
18+
overloads:
19+
- id: "locationCode_string"
20+
args:
21+
- type_name: "string"
22+
return:
23+
type_name: "string"

0 commit comments

Comments
 (0)