Skip to content

Commit

Permalink
Draft commit
Browse files Browse the repository at this point in the history
  • Loading branch information
antowaddle committed Dec 12, 2024
1 parent 27f6ada commit 2ce985b
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import path from 'path';

describe('Verify that all the URLs referenced in the Manifest directory are operational', () => {
it('Reads the manifest directory, filters out unwanted URLs, and validates the remaining URLs', () => {
cy.step('Read the Manifest directory');
//const baseDir = process.env.BASE_DIR || '/Users/acoughli';
//const manifestsDir: string = path.resolve(baseDir, 'forked-odh-dashboard/odh-dashboard/manifests');
// Use `__dirname` to determine the path relative to the current test file
const manifestsDir = path.resolve(__dirname, '../../../../../odh-dashboard/manifests');

// Specify the directory containing your YAML files
const manifestsDir = '/Users/acoughli/forked-odh-dashboard/odh-dashboard/manifests';
cy.log('Resolved manifests directory:', manifestsDir);

// Extract URLs from the manifests directory using the registered task
cy.task<string[]>('extractHttpsUrls', manifestsDir).then((urls) => {
// Filter out any URLs that contain 'git' or 'github'
// Filter out any URLs that contain unwanted strings
const filteredUrls = urls.filter(
(url) =>
!url.includes('my-project-s2i-python-service') &&
Expand Down

0 comments on commit 2ce985b

Please sign in to comment.