Skip to content

Commit e9dd176

Browse files
committed
test(bats): remove the unused arguments to create_partitioned_table
Signed-off-by: Daniel Vérité <dverite@gmail.com>
1 parent ee856c3 commit e9dd176

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

scripts/bats/30_provisioning.bats

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ setup() {
1818
local PREPROVISIONED=1
1919

2020
# Create partitioned table
21-
create_partitioned_table ${TABLE} ${INTERVAL} ${RETENTION} ${PREPROVISIONED}
21+
create_partitioned_table ${TABLE}
2222

2323
local CONFIGURATION=$(cat << EOF
2424
partitions:
@@ -50,7 +50,7 @@ EOF
5050
local PREPROVISIONED=1
5151

5252
# Create partitioned table
53-
create_partitioned_table ${TABLE} ${INTERVAL} ${RETENTION} ${PREPROVISIONED}
53+
create_partitioned_table ${TABLE}
5454

5555
local CONFIGURATION=$(cat << EOF
5656
partitions:
@@ -98,7 +98,7 @@ EOF
9898
local EXPECTED_NEXT_TABLE="${TABLE}_$(get_current_date_adjusted_by_month +1)"
9999

100100
# Create partitioned table
101-
create_partitioned_table ${TABLE} ${INTERVAL} ${RETENTION} ${PREPROVISIONED}
101+
create_partitioned_table ${TABLE}
102102

103103
local CONFIGURATION=$(cat << EOF
104104
partitions:
@@ -135,7 +135,7 @@ EOF
135135
local EXPECTED_NEXT_TABLE="${TABLE}_$(get_current_date_adjusted_by_quarter +1)"
136136

137137
# Create partitioned table
138-
create_partitioned_table ${TABLE} ${INTERVAL} ${RETENTION} ${PREPROVISIONED}
138+
create_partitioned_table ${TABLE}
139139

140140
local CONFIGURATION=$(cat << EOF
141141
partitions:
@@ -171,7 +171,7 @@ EOF
171171
local EXPECTED_NEXT_TABLE="${TABLE}_$(get_current_date_adjusted_by_year +1)"
172172

173173
# Create partitioned table
174-
create_partitioned_table ${TABLE} ${INTERVAL} ${RETENTION} ${PREPROVISIONED}
174+
create_partitioned_table ${TABLE}
175175

176176
local CONFIGURATION=$(cat << EOF
177177
partitions:
@@ -204,7 +204,7 @@ EOF
204204
local PREPROVISIONED=1
205205

206206
# Create partitioned table
207-
create_partitioned_table ${TABLE} ${INTERVAL} ${RETENTION} ${PREPROVISIONED}
207+
create_partitioned_table ${TABLE}
208208

209209
local CONFIGURATION=$(cat << EOF
210210
partitions:

scripts/bats/test/libs/partitions.bash

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
create_partitioned_table() {
2-
local TABLE=$1
3-
local INTERVAL=$2
4-
local RETENTION=$3
5-
local PREPROVISIONED=$4
6-
7-
create_table_from_template ${TABLE}
2+
create_table_from_template "$1"
83
}
94

105
create_daily_partitioned_table() {

0 commit comments

Comments
 (0)