Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

maven plugin deploys test catalog with or without a galasa.token #113

Merged
merged 4 commits into from
Mar 8, 2024

Conversation

techcobweb
Copy link
Contributor

  • empty to force a build to run
  • galasa-token is optional. It gets used if it is supplied

@galasa-team
Copy link

Build successful

@galasa-team
Copy link

Build successful

@techcobweb techcobweb changed the title mcobbett auth conditional on bootstrap prop maven works with or without a galasa.token Mar 8, 2024
@techcobweb techcobweb changed the title maven works with or without a galasa.token maven plugin deploys test catalog with or without a galasa.token Mar 8, 2024
public boolean skipDeployTestCatalog;

// A protected variable so we can inject a mock factory if needed during unit testing.
protected AuthenticationServiceFactory authFactory = new AuthenticationServiceFactoryImpl();

protected BootstrapLoader bootstrapLoader = new BootstrapLoaderImpl();

public static final boolean DEFAULT_ASSUMPTION_AUTHENTICATION_ENABLED = false ;

public static final String BOOTSTRAP_PROPERTY_NAME_IS_AUTH_ENABLED = "framework.auth.isEnabled";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this constant is no longer required

Signed-off-by: Mike Cobbett <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the tests in here should test if when a token is not supplied it makes a connection without the authorization header and with it if the token is present

@galasa-team
Copy link

Build successful

Signed-off-by: Mike Cobbett <[email protected]>
@galasa-team
Copy link

Build successful

@techcobweb techcobweb merged commit 86b6c88 into main Mar 8, 2024
5 checks passed
@techcobweb techcobweb deleted the mcobbett-auth-conditional-on-bootstrap-prop branch March 8, 2024 13:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants