mirror of
https://github.com/bitnami/charts.git
synced 2026-08-09 12:55:41 +08:00
[bitnami/harbor] Update test to make them work in airgapped environments (#17963)
* [bitnami/*] Verify internet connectivy before test execution Signed-off-by: Jota Martos <jotamartos@vmware.com> * [bitnami/*] Update harbor tests Signed-off-by: Jota Martos <jotamartos@vmware.com> * [bitnami/*] Use AIRGAPPED_ENVIRONMENT env var Signed-off-by: Jota Martos <jotamartos@vmware.com> * [bitnami/*] Update harbor tests Signed-off-by: Jota Martos <jotamartos@vmware.com> * Run tests Signed-off-by: Jota Martos <jotamartos@vmware.com> * Revert "Run tests" This reverts commit b9ef8b996e4c1ebb005094bda8bd113bf40062b0. Signed-off-by: Jota Martos <jotamartos@vmware.com> --------- Signed-off-by: Jota Martos <jotamartos@vmware.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"newRegistry": {
|
||||
"provider": "docker-hub",
|
||||
"name": "dockerhub"
|
||||
"provider": "harbor",
|
||||
"name": "harbor",
|
||||
"url": "http://harbor-registry:5000"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ it('allows creating a registry', () => {
|
||||
cy.contains('New Endpoint').click();
|
||||
cy.get('#adapter').select(`${registry.newRegistry.provider}`);
|
||||
cy.get('#destination_name').type(`${registry.newRegistry.name}-${random}`);
|
||||
cy.get('#destination_url').type(`${registry.newRegistry.url}`);
|
||||
cy.contains('Test Connection').should('not.be.disabled').click();
|
||||
cy.contains('Connection tested successfully');
|
||||
cy.contains('button', 'OK').should('not.be.disabled').click();
|
||||
|
||||
Reference in New Issue
Block a user