Skip to content

Commit e1557a6

Browse files
UbuntuNikolayS
Ubuntu
authored andcommitted
added test clone creation and connection to it
1 parent edfe642 commit e1557a6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

test/1.synthetic.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ sed -ri 's/^(\s*)(host:.*$)/\1host: ""/' ~/.dblab/server_test.yml
4040
sed -ri 's/^(\s*)(port: 2345$)/\1port: 12345/' ~/.dblab/server_test.yml
4141
sed -ri 's/^(\s*)(debug:.*$)/\1debug: true/' ~/.dblab/server_test.yml
4242
sed -ri 's/^(\s*)(pool:.*$)/\1pool: "test_pool"/' ~/.dblab/server_test.yml
43-
sed -ri 's/^(\s*)(pool:.*$)/\1pool: "test_pool"/' ~/.dblab/server_test.yml
43+
#sed -ri 's/^(\s*)(pool:.*$)/\1pool: "test_pool"/' ~/.dblab/server_test.yml
44+
sed -ri 's/^(\s*)(pgDataSubdir:.*$)/\1pgDataSubdir: "\/"/' ~/.dblab/server_test.yml
4445

4546
sudo docker run \
4647
--detach \
@@ -65,3 +66,9 @@ dblab --version
6566
dblab init --url http://localhost:12345 --token secret_token --environment-id test
6667
dblab instance status
6768

69+
### Step ?. Create clone and connect to it
70+
dblab clone create --username testuser --password testuser --id testclone
71+
dblab clone list
72+
export PGPASSWORD=testuser
73+
psql "host=localhost port=6000 user=testuser dbname=test" -c '\l'
74+

test/_prerequisites.ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ curl --version || sudo apt-get update && sudo apt-get install -y \
77
curl \
88
gnupg-agent \
99
software-properties-common \
10-
curl
10+
curl \
11+
postgresql-client
1112

1213
# ZFS
1314
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

0 commit comments

Comments
 (0)