Solved versions integration test in z_versions_it_test.go

This commit is contained in:
nickolasdaniel
2021-08-16 15:33:27 +03:00
committed by Dan Christian Bogos
parent 9d2823e88f
commit d2f2b73350
2 changed files with 1 additions and 48 deletions

View File

@@ -1,47 +0,0 @@
#Installing NFS Server
- hosts: nfs-server
become: 'yes'
vars:
export_path: /home/nick/shared_resources
tasks:
- name: Install NFS Server
become: 'yes'
apt:
name: nfs-kernel-server
state: latest
- name: Install portmap
become: 'yes'
apt:
name: portmap
state: latest
- name: Allow connection
shell: 'echo "portmap: 192.168.58.1" >> /etc/hosts.allow'
- name: Restart portmap
become: 'yes'
shell: 'sudo systemctl restart portmap'
- name: Create export directory
shell: 'mkdir {{ export_path }}'
- name: Give permisions
become: 'yes'
shell: 'sudo chown nobody: {{ export_path }} && sudo chmod 777 {{ export_path }}'
- name: Create content in export directory
shell: 'cd {{ export_path }} && touch test1.txt test2.txt test3.txt'
- name: Add the export directories
become: 'yes'
shell: 'echo "{{ export_path }} 192.168.58.1(rw,sync,no_subtree_check,no_root_squash,no_all_squash)" >> /etc/exports'
- name: Run the export command
become: yes
shell: 'sudo exportfs -a'
- name: Reload the NFS Server
become: yes
shell: '/etc/init.d/nfs-kernel-server reload'

View File

@@ -79,7 +79,7 @@ func TestVersionsIT(t *testing.T) {
case utils.MetaMongo:
versionsConfigDIR = "tutmongo"
case utils.MetaPostgres:
versionsConfigDIR = "storage/postgres"
versionsConfigDIR = "tutpostgres"
default:
t.Fatal("Unknown Database type")
}