mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-22 20:13:59 -07:00 
			
		
		
		
	fix for nxos_ospf_vrf invalid cmd and ntp errors (#27977)
* fix for nxos_ospf_vrf invalid cmd * fix for nxos_ntp issues
This commit is contained in:
		
					parent
					
						
							
								19a6000d97
							
						
					
				
			
			
				commit
				
					
						9d84a4e530
					
				
			
		
					 20 changed files with 271 additions and 13 deletions
				
			
		
							
								
								
									
										15
									
								
								test/integration/targets/nxos_ospf_vrf/tasks/cli.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								test/integration/targets/nxos_ospf_vrf/tasks/cli.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| --- | ||||
| - name: collect all cli test cases | ||||
|   find: | ||||
|     paths: "{{ role_path }}/tests/cli" | ||||
|     patterns: "{{ testcase }}.yaml" | ||||
|   register: test_cases | ||||
| 
 | ||||
| - name: set test_items | ||||
|   set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" | ||||
| 
 | ||||
| - name: run test case | ||||
|   include: "{{ test_case_to_run }}" | ||||
|   with_items: "{{ test_items }}" | ||||
|   loop_control: | ||||
|     loop_var: test_case_to_run | ||||
							
								
								
									
										7
									
								
								test/integration/targets/nxos_ospf_vrf/tasks/main.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								test/integration/targets/nxos_ospf_vrf/tasks/main.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| --- | ||||
| # Use block to ensure that both cli and nxapi tests | ||||
| # will run even if there are failures or errors. | ||||
| - block: | ||||
|   - { include: cli.yaml, tags: ['cli'] } | ||||
|   always: | ||||
|   - { include: nxapi.yaml, tags: ['nxapi'] } | ||||
							
								
								
									
										28
									
								
								test/integration/targets/nxos_ospf_vrf/tasks/nxapi.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								test/integration/targets/nxos_ospf_vrf/tasks/nxapi.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| --- | ||||
| - name: collect all nxapi test cases | ||||
|   find: | ||||
|     paths: "{{ role_path }}/tests/nxapi" | ||||
|     patterns: "{{ testcase }}.yaml" | ||||
|   register: test_cases | ||||
| 
 | ||||
| - name: set test_items | ||||
|   set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" | ||||
| 
 | ||||
| - name: enable nxapi | ||||
|   nxos_config: | ||||
|     lines: | ||||
|       - feature nxapi | ||||
|       - nxapi http port 80 | ||||
|     provider: "{{ cli }}" | ||||
| 
 | ||||
| - name: run test case | ||||
|   include: "{{ test_case_to_run }}" | ||||
|   with_items: "{{ test_items }}" | ||||
|   loop_control: | ||||
|     loop_var: test_case_to_run | ||||
| 
 | ||||
| - name: disable nxapi | ||||
|   nxos_config: | ||||
|     lines: | ||||
|       - no feature nxapi | ||||
|     provider: "{{ cli }}" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue