Skip to content

Commit

Permalink
bump up to 3.3.37 zafira and 3.2 jenkins-master
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelendik committed Oct 27, 2018
1 parent 276f3d0 commit 0a18558
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 135 deletions.
268 changes: 135 additions & 133 deletions database/sql/db-app-data.sql
Original file line number Diff line number Diff line change
@@ -1,139 +1,141 @@
SET SCHEMA 'zafira';

INSERT INTO SETTINGS (NAME, VALUE, TOOL) VALUES
('GOOGLE_CLIENT_SECRET_ORIGIN', '', 'GOOGLE'),
('GOOGLE_ENABLED', false, 'GOOGLE'),
('LDAP_DN', '', 'LDAP'),
('LDAP_SEARCH_FILTER', '', 'LDAP'),
('LDAP_URL', '', 'LDAP'),
('LDAP_MANAGER_USER', '', 'LDAP'),
('LDAP_MANAGER_PASSWORD', '', 'LDAP'),
('LDAP_ENABLED', false, 'LDAP'),
('JIRA_CLOSED_STATUS', 'CLOSED', 'JIRA'),
('JIRA_URL', '', 'JIRA'),
('JIRA_USER', '', 'JIRA'),
('JIRA_PASSWORD', '', 'JIRA'),
('JIRA_ENABLED', false, 'JIRA'),
('JENKINS_URL', '', 'JENKINS'),
('JENKINS_USER', '', 'JENKINS'),
('JENKINS_API_TOKEN_OR_PASSWORD', '', 'JENKINS'),
('JENKINS_ENABLED', false, 'JENKINS'),
('SLACK_WEB_HOOK_URL', '', 'SLACK'),
('SLACK_ENABLED', false, 'SLACK'),
('EMAIL_HOST', '', 'EMAIL'),
('EMAIL_PORT', '', 'EMAIL'),
('EMAIL_USER', '', 'EMAIL'),
('EMAIL_FROM_ADDRESS', '', 'EMAIL'),
('EMAIL_PASSWORD', '', 'EMAIL'),
('EMAIL_ENABLED', false, 'EMAIL'),
('AMAZON_ACCESS_KEY', '', 'AMAZON'),
SET SCHEMA 'zafira';

INSERT INTO SETTINGS (NAME, VALUE, TOOL) VALUES
('GOOGLE_CLIENT_SECRET_ORIGIN', '', 'GOOGLE'),
('GOOGLE_ENABLED', false, 'GOOGLE'),
('LDAP_DN', '', 'LDAP'),
('LDAP_SEARCH_FILTER', '', 'LDAP'),
('LDAP_URL', '', 'LDAP'),
('LDAP_MANAGER_USER', '', 'LDAP'),
('LDAP_MANAGER_PASSWORD', '', 'LDAP'),
('LDAP_ENABLED', false, 'LDAP'),
('JIRA_CLOSED_STATUS', 'CLOSED', 'JIRA'),
('JIRA_URL', '', 'JIRA'),
('JIRA_USER', '', 'JIRA'),
('JIRA_PASSWORD', '', 'JIRA'),
('JIRA_ENABLED', false, 'JIRA'),
('JENKINS_URL', '', 'JENKINS'),
('JENKINS_USER', '', 'JENKINS'),
('JENKINS_API_TOKEN_OR_PASSWORD', '', 'JENKINS'),
('JENKINS_ENABLED', false, 'JENKINS'),
('SLACK_WEB_HOOK_URL', '', 'SLACK'),
('SLACK_ENABLED', false, 'SLACK'),
('EMAIL_HOST', '', 'EMAIL'),
('EMAIL_PORT', '', 'EMAIL'),
('EMAIL_USER', '', 'EMAIL'),
('EMAIL_FROM_ADDRESS', '', 'EMAIL'),
('EMAIL_PASSWORD', '', 'EMAIL'),
('EMAIL_ENABLED', false, 'EMAIL'),
('AMAZON_ACCESS_KEY', '', 'AMAZON'),
('AMAZON_SECRET_KEY', '', 'AMAZON'),
('AMAZON_REGION', '', 'AMAZON'),
('AMAZON_REGION', '', 'AMAZON'),
('AMAZON_BUCKET', '', 'AMAZON'),
('AMAZON_DISTRIBUTION_DOMAIN', '', 'AMAZON'),
('AMAZON_KEY_PAIR_ID', '', 'AMAZON'),
('AMAZON_ENABLED', false, 'AMAZON'),
('HIPCHAT_ACCESS_TOKEN', '', 'HIPCHAT'),
('HIPCHAT_ENABLED', false, 'HIPCHAT'),
('KEY', '', 'CRYPTO'),
('CRYPTO_KEY_SIZE', '128', 'CRYPTO'),
('CRYPTO_KEY_TYPE', 'AES', 'CRYPTO'),
('RABBITMQ_HOST', '', 'RABBITMQ'),
('RABBITMQ_PORT', '', 'RABBITMQ'),
('RABBITMQ_USER', '', 'RABBITMQ'),
('RABBITMQ_PASSWORD', '', 'RABBITMQ'),
('RABBITMQ_ENABLED', false, 'RABBITMQ'),
('COMPANY_LOGO_URL', null, null),
('LAST_ALTER_VERSION', '99', null);

INSERT INTO PROJECTS (NAME, DESCRIPTION) VALUES ('UNKNOWN', '');


DO $$
DECLARE GROUP_ID GROUP_PERMISSIONS.id%TYPE;
DECLARE USER_ID USER_PREFERENCES.id%TYPE;

BEGIN

INSERT INTO PERMISSIONS (NAME, BLOCK) VALUES
('VIEW_HIDDEN_DASHBOARDS', 'DASHBOARDS'),
('MODIFY_DASHBOARDS', 'DASHBOARDS'),
('MODIFY_WIDGETS', 'DASHBOARDS'),
('MODIFY_TEST_RUN_VIEWS', 'TEST_RUNS'),
('MODIFY_TEST_RUNS', 'TEST_RUNS'),
('TEST_RUNS_CI', 'TEST_RUNS'),
('MODIFY_TESTS', 'TEST_RUNS'),
('MODIFY_USERS', 'USERS'),
('MODIFY_USER_GROUPS', 'USERS'),
('VIEW_USERS', 'USERS'),
('MODIFY_SETTINGS', 'SETTINGS'),
('VIEW_SETTINGS', 'SETTINGS'),
('MODIFY_MONITORS', 'MONITORS'),
('VIEW_MONITORS', 'MONITORS'),
('MODIFY_PROJECTS', 'PROJECTS'),
('MODIFY_INTEGRATIONS', 'INTEGRATIONS'),
('AMAZON_ENABLED', false, 'AMAZON'),
('CLOUD_FRONT_DISTRIBUTION_DOMAIN', '', 'CLOUD_FRONT'),
('CLOUD_FRONT_PAIR_ID', '', 'CLOUD_FRONT'),
('CLOUD_FRONT_PRIVATE_KEY', '', 'CLOUD_FRONT'),
('CLOUD_FRONT_ENABLED', false, 'CLOUD_FRONT'),
('HIPCHAT_ACCESS_TOKEN', '', 'HIPCHAT'),
('HIPCHAT_ENABLED', false, 'HIPCHAT'),
('KEY', '', 'CRYPTO'),
('CRYPTO_KEY_SIZE', '128', 'CRYPTO'),
('CRYPTO_KEY_TYPE', 'AES', 'CRYPTO'),
('RABBITMQ_HOST', '', 'RABBITMQ'),
('RABBITMQ_PORT', '', 'RABBITMQ'),
('RABBITMQ_USER', '', 'RABBITMQ'),
('RABBITMQ_PASSWORD', '', 'RABBITMQ'),
('RABBITMQ_ENABLED', false, 'RABBITMQ'),
('COMPANY_LOGO_URL', null, null),
('LAST_ALTER_VERSION', '99', null);

INSERT INTO PROJECTS (NAME, DESCRIPTION) VALUES ('UNKNOWN', '');


DO $$
DECLARE GROUP_ID GROUP_PERMISSIONS.id%TYPE;
DECLARE USER_ID USER_PREFERENCES.id%TYPE;

BEGIN

INSERT INTO PERMISSIONS (NAME, BLOCK) VALUES
('VIEW_HIDDEN_DASHBOARDS', 'DASHBOARDS'),
('MODIFY_DASHBOARDS', 'DASHBOARDS'),
('MODIFY_WIDGETS', 'DASHBOARDS'),
('MODIFY_TEST_RUN_VIEWS', 'TEST_RUNS'),
('MODIFY_TEST_RUNS', 'TEST_RUNS'),
('TEST_RUNS_CI', 'TEST_RUNS'),
('MODIFY_TESTS', 'TEST_RUNS'),
('MODIFY_USERS', 'USERS'),
('MODIFY_USER_GROUPS', 'USERS'),
('VIEW_USERS', 'USERS'),
('MODIFY_SETTINGS', 'SETTINGS'),
('VIEW_SETTINGS', 'SETTINGS'),
('MODIFY_MONITORS', 'MONITORS'),
('VIEW_MONITORS', 'MONITORS'),
('MODIFY_PROJECTS', 'PROJECTS'),
('MODIFY_INTEGRATIONS', 'INTEGRATIONS'),
('VIEW_INTEGRATIONS', 'INTEGRATIONS'),
('INVITE_USERS', 'INVITATIONS'),
('MODIFY_INVITATIONS', 'INVITATIONS');

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Super users', 'ROLE_USER') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 4);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 5);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 12);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Users', 'ROLE_USER') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Super admins', 'ROLE_ADMIN') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 1);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 2);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 3);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 4);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 5);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 8);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 9);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 10);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 11);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 12);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 13);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 15);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 16);
('MODIFY_INVITATIONS', 'INVITATIONS');

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Super users', 'ROLE_USER') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 4);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 5);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 12);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Users', 'ROLE_USER') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Super admins', 'ROLE_ADMIN') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 1);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 2);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 3);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 4);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 5);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 8);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 9);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 10);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 11);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 12);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 13);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 15);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 16);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 17);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 18);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 19);

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Admins', 'ROLE_ADMIN') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 1);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 2);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 3);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 4);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 5);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 8);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 10);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 12);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 13);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 15);

INSERT INTO users (USERNAME) VALUES ('anonymous') RETURNING id INTO USER_ID;

INSERT INTO user_preferences (NAME, VALUE, USER_ID) VALUES
('REFRESH_INTERVAL', '0', USER_ID),
('DEFAULT_DASHBOARD', 'General', USER_ID),
('THEME', '32', USER_ID);

END$$;
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 19);

INSERT INTO GROUPS (NAME, ROLE) VALUES ('Admins', 'ROLE_ADMIN') RETURNING id INTO GROUP_ID;

INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 1);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 2);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 3);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 4);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 5);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 6);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 7);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 8);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 10);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 12);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 13);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 14);
INSERT INTO GROUP_PERMISSIONS (GROUP_ID, PERMISSION_ID) VALUES (GROUP_ID, 15);

INSERT INTO users (USERNAME) VALUES ('anonymous') RETURNING id INTO USER_ID;

INSERT INTO user_preferences (NAME, VALUE, USER_ID) VALUES
('REFRESH_INTERVAL', '0', USER_ID),
('DEFAULT_DASHBOARD', 'General', USER_ID),
('THEME', '32', USER_ID);

END$$;
1 change: 1 addition & 0 deletions database/sql/db-app-structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ CREATE TABLE IF NOT EXISTS SETTINGS (
VALUE TEXT NULL,
IS_ENCRYPTED BOOLEAN NULL DEFAULT FALSE,
TOOL VARCHAR(255) NULL,
FILE BYTEA NULL,
MODIFIED_AT TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
CREATED_AT TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (ID));
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
- /dev/shm:/dev/shm
restart: always
zafira:
image: qaprosoft/zafira:3.3.36
image: qaprosoft/zafira:3.3.37
env_file:
- variables.env
#Uncomment only for debugging Zafira
Expand All @@ -46,7 +46,7 @@ services:
- "redis"
restart: always
jenkins-master:
image: qaprosoft/jenkins-master:3.1
image: qaprosoft/jenkins-master:3.2
env_file:
- variables.env
volumes:
Expand Down

0 comments on commit 0a18558

Please sign in to comment.