From a5f11b085b4cd050dc83c77b6eeaa06f765bd734 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Tue, 30 Jun 2020 17:11:43 +0300 Subject: [PATCH] postgresql_idx: add CI tests (#603) --- .../tasks/postgresql_idx_initial.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/integration/targets/postgresql_idx/tasks/postgresql_idx_initial.yml b/tests/integration/targets/postgresql_idx/tasks/postgresql_idx_initial.yml index 095165c59b..31d16627bd 100644 --- a/tests/integration/targets/postgresql_idx/tasks/postgresql_idx_initial.yml +++ b/tests/integration/targets/postgresql_idx/tasks/postgresql_idx_initial.yml @@ -53,7 +53,7 @@ login_user: '{{ pg_user }}' table: test_table columns: id, story - idxname: test0_idx + idxname: Test0_idx check_mode: true register: result ignore_errors: true @@ -62,7 +62,7 @@ that: - result is changed - result.tblname == '' - - result.name == 'test0_idx' + - result.name == 'Test0_idx' - result.state == 'absent' - result.valid != '' - result.tblspace == '' @@ -76,7 +76,7 @@ postgresql_query: db: postgres login_user: '{{ pg_user }}' - query: SELECT 1 FROM pg_indexes WHERE indexname = 'test0_idx' + query: SELECT 1 FROM pg_indexes WHERE indexname = 'Test0_idx' register: result - assert: @@ -91,7 +91,7 @@ login_user: '{{ pg_user }}' table: test_table columns: id, story - idxname: test0_idx + idxname: Test0_idx trust_input: no register: result ignore_errors: true @@ -100,13 +100,13 @@ that: - result is changed - result.tblname == 'test_table' - - result.name == 'test0_idx' + - result.name == 'Test0_idx' - result.state == 'present' - result.valid != '' - result.tblspace == '' - result.storage_params == [] - result.schema == 'public' - - result.query == 'CREATE INDEX CONCURRENTLY "test0_idx" ON "public"."test_table" USING BTREE (id, story)' + - result.query == 'CREATE INDEX CONCURRENTLY "Test0_idx" ON "public"."test_table" USING BTREE (id, story)' - name: postgresql_idx - check the index exists after the previous step become_user: '{{ pg_user }}' @@ -114,7 +114,7 @@ postgresql_query: db: postgres login_user: '{{ pg_user }}' - query: SELECT 1 FROM pg_indexes WHERE indexname = 'test0_idx' + query: SELECT 1 FROM pg_indexes WHERE indexname = 'Test0_idx' register: result - assert: @@ -129,7 +129,7 @@ login_user: '{{ pg_user }}' table: test_table columns: id, story - idxname: test0_idx + idxname: Test0_idx register: result ignore_errors: true @@ -137,7 +137,7 @@ that: - result is not changed - result.tblname == 'test_table' - - result.name == 'test0_idx' + - result.name == 'Test0_idx' - result.state == 'present' - result.valid != '' - result.tblspace == ''