tests: fix flaky tests (#7676) * tests: fix flaky tests * make test-from-stable use actual latest version * fix checkout * remove hardcoded seed * ignore tests for now i guess idk --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L <jens@goauthentik.io>
This commit is contained in:
		![98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) gcp-cherry-pick-bot[bot]
					gcp-cherry-pick-bot[bot]
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							29a6530742
						
					
				
				
					commit
					fe828ef993
				
			| @ -97,7 +97,7 @@ const-rgx = "[a-zA-Z0-9_]{1,40}$" | |||||||
|  |  | ||||||
| ignored-modules = ["binascii", "socket", "zlib"] | ignored-modules = ["binascii", "socket", "zlib"] | ||||||
| generated-members = ["xmlsec.constants.*", "xmlsec.tree.*", "xmlsec.template.*"] | generated-members = ["xmlsec.constants.*", "xmlsec.tree.*", "xmlsec.template.*"] | ||||||
| ignore = "migrations" | ignore = ["migrations", "tests"] | ||||||
| max-attributes = 12 | max-attributes = 12 | ||||||
| max-branches = 20 | max-branches = 20 | ||||||
|  |  | ||||||
|  | |||||||
| @ -36,8 +36,8 @@ class TestProviderOAuth2Github(SeleniumTestCase): | |||||||
|             "auto_remove": True, |             "auto_remove": True, | ||||||
|             "healthcheck": Healthcheck( |             "healthcheck": Healthcheck( | ||||||
|                 test=["CMD", "wget", "--spider", "http://localhost:3000"], |                 test=["CMD", "wget", "--spider", "http://localhost:3000"], | ||||||
|                 interval=5 * 100 * 1000000, |                 interval=5 * 1_000 * 1_000_000, | ||||||
|                 start_period=1 * 100 * 1000000, |                 start_period=1 * 1_000 * 1_000_000, | ||||||
|             ), |             ), | ||||||
|             "environment": { |             "environment": { | ||||||
|                 "GF_AUTH_GITHUB_ENABLED": "true", |                 "GF_AUTH_GITHUB_ENABLED": "true", | ||||||
|  | |||||||
| @ -42,8 +42,8 @@ class TestProviderOAuth2OAuth(SeleniumTestCase): | |||||||
|             "auto_remove": True, |             "auto_remove": True, | ||||||
|             "healthcheck": Healthcheck( |             "healthcheck": Healthcheck( | ||||||
|                 test=["CMD", "wget", "--spider", "http://localhost:3000"], |                 test=["CMD", "wget", "--spider", "http://localhost:3000"], | ||||||
|                 interval=5 * 100 * 1000000, |                 interval=5 * 1_000 * 1_000_000, | ||||||
|                 start_period=1 * 100 * 1000000, |                 start_period=1 * 1_000 * 1_000_000, | ||||||
|             ), |             ), | ||||||
|             "environment": { |             "environment": { | ||||||
|                 "GF_AUTH_GENERIC_OAUTH_ENABLED": "true", |                 "GF_AUTH_GENERIC_OAUTH_ENABLED": "true", | ||||||
|  | |||||||
| @ -113,8 +113,8 @@ class TestSourceOAuth2(SeleniumTestCase): | |||||||
|             "command": "dex serve /config.yml", |             "command": "dex serve /config.yml", | ||||||
|             "healthcheck": Healthcheck( |             "healthcheck": Healthcheck( | ||||||
|                 test=["CMD", "wget", "--spider", "http://localhost:5556/dex/healthz"], |                 test=["CMD", "wget", "--spider", "http://localhost:5556/dex/healthz"], | ||||||
|                 interval=5 * 100 * 1000000, |                 interval=5 * 1_000 * 1_000_000, | ||||||
|                 start_period=1 * 100 * 1000000, |                 start_period=1 * 1_000 * 1_000_000, | ||||||
|             ), |             ), | ||||||
|             "volumes": {str(Path(CONFIG_PATH).absolute()): {"bind": "/config.yml", "mode": "ro"}}, |             "volumes": {str(Path(CONFIG_PATH).absolute()): {"bind": "/config.yml", "mode": "ro"}}, | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -83,8 +83,8 @@ class TestSourceSAML(SeleniumTestCase): | |||||||
|             "auto_remove": True, |             "auto_remove": True, | ||||||
|             "healthcheck": Healthcheck( |             "healthcheck": Healthcheck( | ||||||
|                 test=["CMD", "curl", "http://localhost:8080"], |                 test=["CMD", "curl", "http://localhost:8080"], | ||||||
|                 interval=5 * 100 * 1000000, |                 interval=5 * 1_000 * 1_000_000, | ||||||
|                 start_period=1 * 100 * 1000000, |                 start_period=1 * 1_000 * 1_000_000, | ||||||
|             ), |             ), | ||||||
|             "environment": { |             "environment": { | ||||||
|                 "SIMPLESAMLPHP_SP_ENTITY_ID": "entity-id", |                 "SIMPLESAMLPHP_SP_ENTITY_ID": "entity-id", | ||||||
|  | |||||||
| @ -34,8 +34,8 @@ class OutpostDockerTests(DockerTestCase, ChannelsLiveServerTestCase): | |||||||
|             privileged=True, |             privileged=True, | ||||||
|             healthcheck=Healthcheck( |             healthcheck=Healthcheck( | ||||||
|                 test=["CMD", "docker", "info"], |                 test=["CMD", "docker", "info"], | ||||||
|                 interval=5 * 100 * 1000000, |                 interval=5 * 1_000 * 1_000_000, | ||||||
|                 start_period=5 * 100 * 1000000, |                 start_period=5 * 1_000 * 1_000_000, | ||||||
|             ), |             ), | ||||||
|             environment={"DOCKER_TLS_CERTDIR": "/ssl"}, |             environment={"DOCKER_TLS_CERTDIR": "/ssl"}, | ||||||
|             volumes={ |             volumes={ | ||||||
|  | |||||||
| @ -34,8 +34,8 @@ class TestProxyDocker(DockerTestCase, ChannelsLiveServerTestCase): | |||||||
|             privileged=True, |             privileged=True, | ||||||
|             healthcheck=Healthcheck( |             healthcheck=Healthcheck( | ||||||
|                 test=["CMD", "docker", "info"], |                 test=["CMD", "docker", "info"], | ||||||
|                 interval=5 * 100 * 1000000, |                 interval=5 * 1_000 * 1_000_000, | ||||||
|                 start_period=5 * 100 * 1000000, |                 start_period=5 * 1_000 * 1_000_000, | ||||||
|             ), |             ), | ||||||
|             environment={"DOCKER_TLS_CERTDIR": "/ssl"}, |             environment={"DOCKER_TLS_CERTDIR": "/ssl"}, | ||||||
|             volumes={ |             volumes={ | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user