mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-25 05:23:58 -07:00 
			
		
		
		
	Examples syntax batch6 (#5623)
* Change example syntax on os_auth module * Change example syntax on os_client_config module * Change example syntax on os_image_facts module * Change example syntax on os_networks_facts module * Change example syntax on os_nova_flavor module * Change example syntax on os_object module * Change example syntax on os_server module * Change example syntax on os_subnet_facts module * Change example syntax on rax_files module * Change example syntax on rax_files_objects module * Change example syntax on mysql_db module * Change example syntax on file module * Change example syntax on uri module * Change example syntax on cl_bond module * Change example syntax on cl_bridge module * Change example syntax on cl_img_install module * Change example syntax on cl_interface module * Change example syntax on cl_license module * Change example syntax on cl_ports module * Remove trailing colon
This commit is contained in:
		
					parent
					
						
							
								4c3f8cbd92
							
						
					
				
			
			
				commit
				
					
						895179929c
					
				
			
		
					 19 changed files with 456 additions and 318 deletions
				
			
		|  | @ -102,28 +102,50 @@ EXAMPLES = ''' | |||
|   gather_facts: False | ||||
|   tasks: | ||||
|     - name: "Get objects from test container" | ||||
|       rax_files_objects: container=testcont dest=~/Downloads/testcont | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         dest: ~/Downloads/testcont | ||||
| 
 | ||||
|     - name: "Get single object from test container" | ||||
|       rax_files_objects: container=testcont src=file1 dest=~/Downloads/testcont | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         src: file1 | ||||
|         dest: ~/Downloads/testcont | ||||
| 
 | ||||
|     - name: "Get several objects from test container" | ||||
|       rax_files_objects: container=testcont src=file1,file2,file3 dest=~/Downloads/testcont | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         src: file1,file2,file3 | ||||
|         dest: ~/Downloads/testcont | ||||
| 
 | ||||
|     - name: "Delete one object in test container" | ||||
|       rax_files_objects: container=testcont method=delete dest=file1 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: delete | ||||
|         dest: file1 | ||||
| 
 | ||||
|     - name: "Delete several objects in test container" | ||||
|       rax_files_objects: container=testcont method=delete dest=file2,file3,file4 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: delete | ||||
|         dest: file2,file3,file4 | ||||
| 
 | ||||
|     - name: "Delete all objects in test container" | ||||
|       rax_files_objects: container=testcont method=delete | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: delete | ||||
| 
 | ||||
|     - name: "Upload all files to test container" | ||||
|       rax_files_objects: container=testcont method=put src=~/Downloads/onehundred | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: put | ||||
|         src: ~/Downloads/onehundred | ||||
| 
 | ||||
|     - name: "Upload one file to test container" | ||||
|       rax_files_objects: container=testcont method=put src=~/Downloads/testcont/file1 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: put | ||||
|         src: ~/Downloads/testcont/file1 | ||||
| 
 | ||||
|     - name: "Upload one file to test container with metadata" | ||||
|       rax_files_objects: | ||||
|  | @ -135,14 +157,25 @@ EXAMPLES = ''' | |||
|           who_uploaded_this: someuser@example.com | ||||
| 
 | ||||
|     - name: "Upload one file to test container with TTL of 60 seconds" | ||||
|       rax_files_objects: container=testcont method=put src=~/Downloads/testcont/file3 expires=60 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: put | ||||
|         src: ~/Downloads/testcont/file3 | ||||
|         expires: 60 | ||||
| 
 | ||||
|     - name: "Attempt to get remote object that does not exist" | ||||
|       rax_files_objects: container=testcont method=get src=FileThatDoesNotExist.jpg dest=~/Downloads/testcont | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: get | ||||
|         src: FileThatDoesNotExist.jpg | ||||
|         dest: ~/Downloads/testcont | ||||
|       ignore_errors: yes | ||||
| 
 | ||||
|     - name: "Attempt to delete remote object that does not exist" | ||||
|       rax_files_objects: container=testcont method=delete dest=FileThatDoesNotExist.jpg | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         method: delete | ||||
|         dest: FileThatDoesNotExist.jpg | ||||
|       ignore_errors: yes | ||||
| 
 | ||||
| - name: "Test Cloud Files Objects Metadata" | ||||
|  | @ -150,10 +183,16 @@ EXAMPLES = ''' | |||
|   gather_facts: false | ||||
|   tasks: | ||||
|     - name: "Get metadata on one object" | ||||
|       rax_files_objects:  container=testcont type=meta dest=file2 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         type: meta | ||||
|         dest: file2 | ||||
| 
 | ||||
|     - name: "Get metadata on several objects" | ||||
|       rax_files_objects:  container=testcont type=meta src=file2,file1 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         type: meta | ||||
|         src: file2,file1 | ||||
| 
 | ||||
|     - name: "Set metadata on an object" | ||||
|       rax_files_objects: | ||||
|  | @ -167,7 +206,10 @@ EXAMPLES = ''' | |||
|         clear_meta: true | ||||
| 
 | ||||
|     - name: "Verify metadata is set" | ||||
|       rax_files_objects:  container=testcont type=meta src=file17 | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         type: meta | ||||
|         src: file17 | ||||
| 
 | ||||
|     - name: "Delete metadata" | ||||
|       rax_files_objects: | ||||
|  | @ -180,7 +222,9 @@ EXAMPLES = ''' | |||
|           key2: '' | ||||
| 
 | ||||
|     - name: "Get metadata on all objects" | ||||
|       rax_files_objects:  container=testcont type=meta | ||||
|       rax_files_objects: | ||||
|         container: testcont | ||||
|         type: meta | ||||
| ''' | ||||
| 
 | ||||
| try: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue