Merge pull request #4759 from dolthub/aaron/go-sql-server-tests-better-ports

integration-tests/go-sql-server-driver: Use 385{1,2} instead of 5005{1,2} for cluster remotesapi ports.
This commit is contained in:
Aaron Son
2022-11-10 17:49:06 -08:00
committed by GitHub
2 changed files with 102 additions and 102 deletions

View File

@@ -12,11 +12,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50052/{database}
remote_url_template: https://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -40,11 +40,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50051/{database}
remote_url_template: https://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -79,11 +79,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50052/{database}
remote_url_template: https://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -107,11 +107,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50051/{database}
remote_url_template: https://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -146,11 +146,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50052/{database}
remote_url_template: https://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -175,11 +175,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50051/{database}
remote_url_template: https://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -214,11 +214,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50052/{database}
remote_url_template: https://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -243,11 +243,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50051/{database}
remote_url_template: https://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -282,11 +282,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50052/{database}
remote_url_template: https://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -310,11 +310,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50051/{database}
remote_url_template: https://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -389,11 +389,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50052/{database}
remote_url_template: https://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem
@@ -419,11 +419,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: https://localhost:50051/{database}
remote_url_template: https://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
tls_key: key.pem
tls_cert: cert.pem
tls_ca: root.pem

View File

@@ -6,11 +6,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: standby_server.yaml
contents: |
@@ -21,11 +21,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: standby
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
- name: primary_server.yaml
contents: |
log_level: trace
@@ -35,11 +35,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 15
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "standby_server.yaml"]
port: 3309
@@ -74,11 +74,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -89,11 +89,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: standby
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -151,11 +151,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -166,11 +166,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -182,7 +182,7 @@ tests:
- query: "select name, url from dolt_remotes"
result:
columns: ["name","url"]
rows: [["standby","http://localhost:50052/a_new_database"]]
rows: [["standby","http://localhost:3852/a_new_database"]]
- name: fails to start if a configured remote is missing
multi_repos:
- name: server1
@@ -190,7 +190,7 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
with_files:
@@ -203,11 +203,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -220,11 +220,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -235,11 +235,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--port", "3309"]
port: 3309
@@ -248,11 +248,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50051/repo1
url: http://localhost:3851/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50051/repo2
url: http://localhost:3851/repo2
with_files:
- name: server.yaml
contents: |
@@ -263,11 +263,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50051/{database}
remote_url_template: http://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 10
remotesapi:
port: 50052
port: 3852
server:
args: ["--config", "server.yaml"]
port: 3310
@@ -303,11 +303,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: standby_server.yaml
contents: |
@@ -318,11 +318,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: standby
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "standby_server.yaml"]
port: 3309
@@ -339,11 +339,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -354,11 +354,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -374,11 +374,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: standby_server.yaml
contents: |
@@ -389,11 +389,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: standby
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "standby_server.yaml"]
port: 3309
@@ -422,11 +422,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -437,11 +437,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -450,11 +450,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50051/repo1
url: http://localhost:3851/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50051/repo2
url: http://localhost:3851/repo2
with_files:
- name: server.yaml
contents: |
@@ -465,11 +465,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50051/{database}
remote_url_template: http://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 10
remotesapi:
port: 50052
port: 3852
server:
args: ["--config", "server.yaml"]
port: 3310
@@ -499,11 +499,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -514,11 +514,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -527,11 +527,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50051/repo1
url: http://localhost:3851/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50051/repo2
url: http://localhost:3851/repo2
with_files:
- name: server.yaml
contents: |
@@ -542,11 +542,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50051/{database}
remote_url_template: http://localhost:3851/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50052
port: 3852
server:
args: ["--config", "server.yaml"]
port: 3310
@@ -577,11 +577,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: preserver.yaml
contents: |
@@ -598,11 +598,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 15
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "preserver.yaml"]
port: 3309
@@ -611,11 +611,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50051/repo1
url: http://localhost:3851/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50051/repo2
url: http://localhost:3851/repo2
with_files:
- name: preserver.yaml
contents: |
@@ -632,11 +632,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50051/{database}
remote_url_template: http://localhost:3851/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50052
port: 3852
server:
args: ["--config", "preserver.yaml"]
port: 3310
@@ -688,11 +688,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: preserver.yaml
contents: |
@@ -709,11 +709,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "preserver.yaml"]
port: 3309
@@ -722,11 +722,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50051/repo1
url: http://localhost:3851/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50051/repo2
url: http://localhost:3851/repo2
with_files:
- name: preserver.yaml
contents: |
@@ -743,11 +743,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50051/{database}
remote_url_template: http://localhost:3851/{database}
bootstrap_role: primary
bootstrap_epoch: 15
remotesapi:
port: 50052
port: 3852
server:
args: ["--config", "preserver.yaml"]
port: 3310
@@ -804,11 +804,11 @@ tests:
- name: repo1
with_remotes:
- name: standby
url: http://localhost:50052/repo1
url: http://localhost:3852/repo1
- name: repo2
with_remotes:
- name: standby
url: http://localhost:50052/repo2
url: http://localhost:3852/repo2
with_files:
- name: server.yaml
contents: |
@@ -819,11 +819,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 10
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -848,11 +848,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50052/{database}
remote_url_template: http://localhost:3852/{database}
bootstrap_role: primary
bootstrap_epoch: 1
remotesapi:
port: 50051
port: 3851
server:
args: ["--config", "server.yaml"]
port: 3309
@@ -867,11 +867,11 @@ tests:
cluster:
standby_remotes:
- name: standby
remote_url_template: http://localhost:50051/{database}
remote_url_template: http://localhost:3851/{database}
bootstrap_role: standby
bootstrap_epoch: 1
remotesapi:
port: 50052
port: 3852
server:
args: ["--config", "server.yaml"]
port: 3310