mirror of
				https://github.com/docker/compose.git
				synced 2025-11-04 05:34:09 +01:00 
			
		
		
		
	Check that AZURE creds are defined when running E2E tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
		
							parent
							
								
									c9158a7c37
								
							
						
					
					
						commit
						64dd7a5674
					
				@ -590,6 +590,9 @@ func azureLogin(t *testing.T, c *E2eCLI) {
 | 
				
			|||||||
	clientID := os.Getenv("AZURE_CLIENT_ID")
 | 
						clientID := os.Getenv("AZURE_CLIENT_ID")
 | 
				
			||||||
	clientSecret := os.Getenv("AZURE_CLIENT_SECRET")
 | 
						clientSecret := os.Getenv("AZURE_CLIENT_SECRET")
 | 
				
			||||||
	tenantID := os.Getenv("AZURE_TENANT_ID")
 | 
						tenantID := os.Getenv("AZURE_TENANT_ID")
 | 
				
			||||||
 | 
						assert.Check(t, clientID != "", "AZURE_CLIENT_ID must not be empty")
 | 
				
			||||||
 | 
						assert.Check(t, clientSecret != "", "AZURE_CLIENT_SECRET must not be empty")
 | 
				
			||||||
 | 
						assert.Check(t, tenantID != "", "AZURE_TENANT_ID must not be empty")
 | 
				
			||||||
	res := c.RunDockerCmd("login", "azure", "--client-id", clientID, "--client-secret", clientSecret, "--tenant-id", tenantID)
 | 
						res := c.RunDockerCmd("login", "azure", "--client-id", clientID, "--client-secret", clientSecret, "--tenant-id", tenantID)
 | 
				
			||||||
	res.Assert(t, icmd.Success)
 | 
						res.Assert(t, icmd.Success)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user