Skip to content

Commit

Permalink
pf5
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Sep 6, 2024
1 parent c0a810a commit 31359e3
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@module-federation/utilities": "^1.7.0",
"@patternfly/patternfly": "^5.1.0",
"@patternfly/react-charts": "^5.3.22",
"@patternfly/react-charts": "^7.3.0",
"@patternfly/react-core": "^5.1.1",
"@patternfly/react-icons": "^5.1.1",
"@patternfly/react-styles": "^5.1.1",
Expand Down Expand Up @@ -64,7 +64,7 @@
"style-loader": "^1.3.0",
"stylelint": "^9.3.0",
"stylelint-config-standard": "^18.0.0",
"tabbable": "~5.2.0",
"tabbable": "^6.2.0",
"victory-core": "~36.8.6",
"victory-pie": "~36.8.6",
"webpack": "^5.75.0",
Expand Down
Binary file added red_hat_inventory/uploads/report_for_1.tar.xz
Binary file not shown.
Binary file added red_hat_inventory/uploads/report_for_3.tar.xz
Binary file not shown.
49 changes: 49 additions & 0 deletions red_hat_inventory/uploads/uploader.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#! /bin/bash

DEST=https://cert.cloud.redhat.com/api/ingress/v1/upload
RH_USERNAME=

if [ -z "$FILES" ]
then
FILES=./*.tar.gz
fi

if [ -n "$CER_PATH" ]
then
AUTH_KEY="--cert"
AUTH_VAL="$CER_PATH"
else
if [ -z "$RH_USERNAME" ]
then
IFS= read -rp "Enter username: " RH_USERNAME
fi

if [ -z "$RH_PASSWORD" ]
then
IFS= read -rsp "Enter password: " RH_PASSWORD
fi

AUTH_KEY="-u"
AUTH_VAL="\"$RH_USERNAME\":\"$RH_PASSWORD\""
fi

# /tmp/a b/x.pem
# curl --cert /tmp/a\ b/x.pem

SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE:-0}")")
DONE_DIR="$SCRIPT_DIR/done/"
mkdir -p $DONE_DIR

for f in $FILES
do
curl -k -vvv -# --fail -F "file=@$f;type=application/vnd.redhat.qpc.tar+tgz" $DEST "$AUTH_KEY" "$AUTH_VAL"
status=$?
if [ $status -eq 0 ]; then
mv $f $DONE_DIR
echo "Done: $f"
fi
done
echo "Uploaded files moved to done/ folder"

# return the error code from the curl command
exit $status
2 changes: 1 addition & 1 deletion webpack/assets/javascripts/react_app/common/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $pf-gold-400: #f0ab00;
$pf-green-400: #3f9c35;
$pf-green-600: #1e4f18;
$pf-blue-400: #0088ce;
$pf-v5-color-white: #fff;
$pf-color-white: #fff;
$pf-border-gray: #d1d1d1;

$nav-pf-vertical-active-bg-color: #026991;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Added flexbox functionality to resize the drawer if the window gets resized.
position: -o-sticky;
bottom: 0;
z-index: 10;
background-color: $pf-v5-color-white;
background-color: $pf-color-white;
border-top: 1px solid $pf-border-gray;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ describe('Personal access token modal', () => {
});
});

screen.getByText('Cannot be in the past');
expect(screen.queryAllByText('Cannot be in the past')).toHaveLength(1);

await act(async () => {
Expand Down

0 comments on commit 31359e3

Please sign in to comment.